ex.1
select * from sys.objects where type = 'U' and name = 'Table1'
ex.2
select Object_ID('Table1','U'-- จะ return เป็น id ของ table ที่อย่ database
ex.3
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'Table1'
ex.4
select * from tempdb.dbo.sysobjects o
where o.xtype in ('U'and
o.id = object_id( 'tempdb..' + '#TblTemp'-- ใช้สำหรับ Temp Table