求高手,我现在维护一个有几百张数据表的数据库,我知道某个表的表名,要怎么样找得到此表?

解决方案 »

  1.   

    select name from sys.objects where type='U'
      

  2.   

    在SSMS里点击数据库,点击下面的表,则右侧的"对象资源管理器"中就将你这个数据库中所有用户表列出来了,还列出了架构及创建时间.
      

  3.   

    if object_id('表') is not  null
    print '存在'
    else 
    pring '不存在'
      

  4.   

    20、说明:列出数据库里所有的表名 
    select name from sysobjects where type='U' 21、说明:列出表里的所有的列 
    select name from syscolumns where id=object_id('TableName') 
      

  5.   

    if object_id('表') is not  null
    print '存在'
    else 
    print '不存在'难道是这个?
      

  6.   

    USE db
    GO
    IF OBJECT_ID('表名','U')IS NOT NULL
    PRINT '存在'
    ELSE 
    PRINT '不存在'
      

  7.   

    OBJECT_ID('表名','U')--加上U為用戶表類
      

  8.   

    求mssqlsever 内置函数下载地址?