dbTalk Databases Forums  

system tables in MS SQL server 5

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss system tables in MS SQL server 5 in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TGEAR
 
Posts: n/a

Default system tables in MS SQL server 5 - 03-06-2007 , 01:43 PM






I am using MS SQL Server management studio.
I treid to see some system tables which are sysobjects, syscolumns,
systypes, etc.., but i don't see the list under the system tables
folder. There is one table showing, sysdiagrams; however, I was able
to query sql stmts though.
where are they located? or Do I need to contact a dba to release those
tables? thanks.


Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: system tables in MS SQL server 5 - 03-06-2007 , 04:42 PM






TGEAR (ted_gear (AT) hotmail (DOT) com) writes:
Quote:
I am using MS SQL Server management studio.
I treid to see some system tables which are sysobjects, syscolumns,
systypes, etc.., but i don't see the list under the system tables
folder. There is one table showing, sysdiagrams; however, I was able
to query sql stmts though.
where are they located? or Do I need to contact a dba to release those
tables? thanks.
There are no such tables in SQL 2005. In SQL 2005 there is no access to
the system tables. Instead there are a number of views that exposes this
information. There are four sets of them:

o Catalog views. These are new views that are better structured, have less
funny reserved columns etc.
o Dynamic Management Views: Views corresponding to the old virtual tables
in SQL 2000, like sysprocesses. There is a whole bunch of them. There
is a *lot* more information exposed now.
o Compatibility views. These views have the same schema and contents as
the old system tables. Beware that columns that previously were
undocumented typically now only have NULL or 0.
o INFORMATION_SCHEMA. The same as in SQL 2000.

You need also to be aware of that there is a change in security policy for
SQL 2005, so that users no longer can see all object by default. Typically,
if you look in sysobjects, you would only see the object you have been
granted access to.

Books Onlione hss more information.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.