use dbname
select name from sysobjects where xtype='U'

解决方案 »

  1.   

    SELECT name FROM sysobjects WHERE xtype = 'U' AND name = 'MyTable'
      

  2.   

    SELECT name FROM sysobjects WHERE xtype = 'U'
      

  3.   

    SELECT name FROM sysobjects WHERE xtype = 'U'
      

  4.   

    SELECT name FROM sysobjects WHERE xtype = 'U' group by name
      

  5.   

    SELECT name FROM yourdb.dbo.sysobjects WHERE xtype = 'U' group by name
      

  6.   

    select table_name from INFORMATION_SCHEMA.TABLES where table_type = 'BASE TABLE' and table_name <> 'dtproperties'