PC Review


Reply
 
 
jkhome@f2s.com
Guest
Posts: n/a
 
      5th Oct 2005
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.

 
Reply With Quote
 
 
 
 
Frans Bouma [C# MVP]
Guest
Posts: n/a
 
      6th Oct 2005
(E-Mail Removed) wrote:

> 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

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't create schema using .adp (or transfertext method renderred useless without schema) kreplech@gmail.com Microsoft Access 1 23rd Jun 2006 09:49 PM
Schema Library - Update Schema Button =?Utf-8?B?R29vd2E=?= Microsoft Word Document Management 4 24th Jan 2006 08:10 PM
VS Project XML Schema (.csproj schema) Rizaan Jappie via DotNetMonster.com Microsoft C# .NET 1 4th Jan 2005 03:43 PM
DataSet ReadXmlSchema fails on a schema with (xsd:)imported schema Eric van Wijk Microsoft ADO .NET 0 27th Jul 2004 05:14 PM
2000 Schema - 2003 Schema >> Sunday Ryan Rinehart Microsoft Windows 2000 Active Directory 0 15th Aug 2003 07:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.