Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Information_Schema

Status
Not open for further replies.

collierd

MIS
Dec 19, 2001
509
DE
Hello

Using SQL Server 2000

Does anybody know where Information_Schema resides and what it contains?

Thanks

Damian.
 
INFORMATION_SCHEMA views are designed to present data from the system tables.

For instance, to view all of the column information for a table, you can issue

SELECT * FROM INFORMATION_SCHEMA.columns where table_name = 'MyTableName'

Microsoft recommends that you query the INFORMATION_SCHEMA instead of the tables directly, since the schema may change and they have promised to maintain the integrity of the views across server versions.

Read BOL for more info about the views.

HTH,

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top