–列出当前库中的所有用户表
select 表名=name
from sysobjects
where xtype=’U’ and status>=0
–列出当前库中的所有系统表
select 表名=name
from sysobjects
where xtype=’S’
–列出当前库中的所有视图
select 表名=name
from sysobjects
where xtype=’V’
–列出当前库中的所有用户视图
select 表名=name
from sysobjects
where xtype=’V’ and status>=0
xtype=’U’
xtype=’S’
–调用你说的那个存...

