Select Name from sysobjects where xtype='U'Select name from  syscolumns where Name='tablename'

解决方案 »

  1.   

    Select Name from sysobjects where xtype='U'Select name from  syscolumns where Name='tablename'
    能解释一下吗,谢谢!NAME指的是什么名字,SYSOBJECTS指的是系统的什么对象,还有SYSCOLUMNS指的是什么列WHERE不是条件子句吗,这样的用法叫什么啊
      

  2.   

    Select Name from sysobjects where xtype='U'
    sp_tablesSelect name from  syscolumns where Name='tablename'
    sp_columns
      

  3.   

    如何列举数据库中的表?
    select * from sysobjects where xtype='U' and status>0如何列举表中的字段?
    select name 列 from syscolumns where id=object_id('Table2')
      

  4.   

    sp_tables 
    select name from sysobjects where xtype='u' and stauus>0sp_columns 'yourtable'
    select name  from syscolumns where id=object_id('yourtable')
      

  5.   

    sp_tables 
    select name from sysobjects where xtype='u' and stauus>0sp_columns 'yourtable'
    select name  from syscolumns where id=object_id('yourtable')
      

  6.   

    不需要管这些系统表拷贝你的data目录下的数据库文件,步骤:
        停止sql服务或脱机-->拷贝你的data目录下的数据库文件
    粘贴你的数据库文件到目标机上,步骤:
        右键数据库-->所有任务-->附加数据库
    企业管理器-->右键你的数据库-->所有任务-->生成SQL脚本-->选项-->所有对象-->OK都可以.