select name from sysobjects
where OBJECTPROPERTY(id,'IsMSShipped')=1
and OBJECTPROPERTY(id,'IsUserTable')=1
dtproperties是系统表还是用户表?
dtproperties表符合OBJECTPROPERTY(id,'IsUserTable')=1说明dtproperties是用户表,所以一般的查询用户表的语句能查到它。
dtproperties表符合OBJECTPROPERTY(id,'IsMSShipped')=1说明dtproperties是安装过程中创建的对象。所以企业管理器的用户表里没有它。