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.
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 created2 Select name from sysobjects where xtype='u' -- User tablesSelect name from sysobjects where xtype='s' -- system tablesMadhivananFailing to plan is Planning to fail |
 |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-01-10 : 02:19:50
|
use Capital U or S if your database is case sensitiveselect name from sysobjects where xtype='U' -- User tablesselect name from sysobjects where xtype='S' -- system tables -----------------'KH' |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-01-10 : 03:29:38
|
orSelect name from sysobjects where lower(xtype)='u'MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|