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 - 2005-08-16 : 08:08:17
|
| Corbin writes "There is a SystemTable called dtproperties. SQL Server Enterprise Manager shows it as a system table.So why then when I use the SQL statement below does it show up? SELECT * FROM sysobjects o WHERE OBJECTPROPERTY(o.id, 'IsSystemTable') = 0 AND OBJECTPROPERTY(o.id, 'IsTable') = 1Is there something wrong with my IsSystemTable logic?" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2005-08-16 : 08:09:35
|
| Enterprise Manager uses a different method for identifying a system object than OBJECTPROPERTY does. See what results you get with this:SELECT *FROM sysobjects oWHERE OBJECTPROPERTY(o.id, 'IsMSShipped') = 1AND OBJECTPROPERTY(o.id, 'IsTable') = 1 |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-08-16 : 09:08:42
|
| Information_Schema.tables will have only non-system tables and viewsAs you can see dtproperties, it is a non-system tableselect table_name from information_Schema.tables where table_type='base table'MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|