use aa
select * from dbo.sysobjects where id = object_id(N'[dbo].[LLD]') and OBJECTPROPERTY(id, N'IsUserTable') = 1
select * from dbo.sysobjects where id = object_id(N'[dbo].[LLD]') and OBJECTPROPERTY(id, N'IsUserTable') = 1
print '存在'
else
print '不存在'
if exists(select 1 from AA..sysobjects where id=object_id(N'AA..LLD') and xtype='U')
print '存在'
else
print '不存在'