Retrieving Schema info for connection

T

Terry Olsen

I'm building a program to navigate through a database. The user chooses
either ODBC or OleDb and provides a connection string. With OleDb I can get
the database names from the connection. Is there a way I can do this with an
ODBC connection? Programs like DTM Data Editor can do it. But there doesn't
seem to be a way in .NET 2.0.

Or can I get enough information from the ODBC connection to create an OleDb
connection?

Is there a way to get database names from an ODBC connection?
 
K

krishnen

Terry,

You can know the database name from the OdbcConnection object itself
from the property Database

Krishnen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top