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 Administration (2000)
 regarding system tables

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-01-09 : 08:32:23
vani writes "who will create system tables in user database?
how do we differentiate user table and system table?"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-01-09 : 08:36:55
1 By default system tables are created

2
Select name from sysobjects where xtype='u' -- User tables
Select name from sysobjects where xtype='s' -- system tables


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-01-10 : 02:19:50
use Capital U or S if your database is case sensitive
select name from sysobjects where xtype='U' -- User tables
select name from sysobjects where xtype='S' -- system tables


-----------------
'KH'

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-01-10 : 03:29:38
or

Select name from sysobjects where lower(xtype)='u'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -