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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.