Schema Information for Ado.Net 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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

Similar Threads

Schemas in ADO.Net 2.0 2
definining currency in ADO.NET 2.0 4
Schema? 1
How to get meta data info in ADO.NET 2
Modify Schema 2
User default schema 1
schema compare problem 4
Creating Schema 3

Back
Top