ex.1
select * from sys.objects where type = 'U' and name = 'Table1'
ex.2
select Object_ID('Table1','U&#39 -- จะ 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&#39 and
o.id = object_id( 'tempdb..' + '#TblTemp&#39 -- ใช้สำหรับ Temp Table