Discussion Locked

Usercontrol

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I wan to Create My usercontrol acting as Data Source(like ADO)
How can i display list of all tables(as done in ADO)Listbox type fashion) in my usercontrol, when a user sets database

1 reply

by gbworld

This really depends on how you are getting to the database. In SQL Server, I would recommend using either SQL-NS or SQL-DSO. Wrox has a good book on this, and you can download their sample code on the Wrox.com website.

If you mean DSNs, like the applet, I am not 100% sure how to access these. I do not recommend DSNs for serious work anyway, as they add another layer to your data access. DSNs use ODBC (the OLE DB driver for ODBC), so they are using both OLE DB and ODBC. Without a DSN, you areusing OLE DB only.

Gregory A. Beamer
MCP: +I, SE, SD, DBA

This discussion is closed to new replies.