Schema Information for Ado.Net 2.0

G

Guest

In Ado.Net 2.0 how should you get get schema information?
I want to know the list of databases for a server and then iterate over that
list to show the tables and schema data in the table.

Thanks,

Marc
 
G

Guest

Hello:
In Ado.Net 2.0 how should you get get schema information?
I want to know the list of databases for a server and then iterate over that
list to show the tables and schema data in the table.


Look the DbConnection.GetSchema method ( or int the specific
connection class of the provider you are using for example
SqlConnection.GetSchema )


To know what schema collections are supported by the provider you
can use:

xxxx.GetSchema("MetaDataCollections");


And check if the information you want to get is directly supported by
the provider.
 
G

Guest

Thanks,

Marc

Carlos Guzmán Ãlvarez said:
Hello:



Look the DbConnection.GetSchema method ( or int the specific
connection class of the provider you are using for example
SqlConnection.GetSchema )


To know what schema collections are supported by the provider you
can use:

xxxx.GetSchema("MetaDataCollections");


And check if the information you want to get is directly supported by
the provider.


--
Best regards

Carlos Guzmán Ãlvarez
Vigo-Spain
 

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