DB Schema

  • Thread starter Thread starter jkhome
  • Start date Start date
J

jkhome

For a new application i would like to retrieve all database information
ie tables,fields, if they are a foreign key etc

A couple of ways i have looked into doing this is GetSchema and using
INFORMATION_SCHEMA in a select statemen. I have took at many examples
but nothing seems to explain them in enough depth. Could someone
explain them to me and which one is better to use. If anyone could give
me some examples of how to use them that would be great.
 
For a new application i would like to retrieve all database
information ie tables,fields, if they are a foreign key etc

A couple of ways i have looked into doing this is GetSchema and using
INFORMATION_SCHEMA in a select statemen. I have took at many examples
but nothing seems to explain them in enough depth. Could someone
explain them to me and which one is better to use. If anyone could
give me some examples of how to use them that would be great.

INFORMATION_SCHEMA suggests you're using SqlServer (as that database
is the only one implementing some of these ansi views). ?

You can get very far with INFORMATION_SCHEMA views, sometimes you have
to perform some joins with other INFORMATION_SCHEMA views to get the
real info you want. Which info wasn't retrievable for you?

FB

--
 

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

Back
Top