select * from sysobjects

解决方案 »

  1.   

    不懂,俺菜鸟一只,以前用MYSQL,用use databasename, show tables.
    就搞定,然后看哪个表使用describe tablename搞定,现在到了SQL SERVER
    啥都搞不定,希望详细些,谢谢!
      

  2.   

    sysobjects是系统表,从此表中可以查询处你建立的表的信息:)
    参考:
    select t1.tablename,t1.colname,descr=isnull(t2.value,''),t1.type,t1.length,t1.isnullable from 
    (select a.id,tablename=d.name,colname=a.name ,colid=a.colid,type=b.name ,a.length, a.isnullable from syscolumns a, systypes b,sysobjects d where a.xtype=b.xusertype and a.id=d.id and d.xtype='U' )t1 left join sysproperties t2 on t1.id=t2.id and t1.colid=t2.smallid