Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Table Properties

Author  Topic 

mikebird
Aged Yak Warrior

529 Posts

Posted - 2008-03-05 : 09:26:43
How can I check properties of tables, not using just Enterprise Manager 2k but in queries & looking at statistics, such as user table sizes, column numbers and sys tables - master, tempdb, model and msdb? I liked

select * from sys.<object types> in 2005
I know procedures, tables, views, objects, colums, triggers, and many others. Brilliant

but now in 2k I have select * from sysobjects, syscolumns and sysdatabases so I'm told but this last one doesn't work. Are there any others?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2008-03-05 : 09:41:23
Make use of INFORMATION_SCHEMA views.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

mikebird
Aged Yak Warrior

529 Posts

Posted - 2008-03-07 : 09:34:41
Where's that??

Only ever seen that in Crystal Reports connections... and never understood the reason behind that schema
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-03-07 : 09:49:59
Its in your SQ db. Just do a
select * from INFORMATION_SCHEMA.TABLES & see
Go to Top of Page
   

- Advertisement -