SELECT *   FROM sp_tables
这样的句子是不通的,楼上能说的具体一些吗?

解决方案 »

  1.   

    1.
    直接运行 sp_tables
    2.
    select * from sysobjects
    where xtype='U'--查看用户表select * from sysobjects
    where xtype='S'--查看系统表
      

  2.   

    Select * from NorthWind.dbo.SysObjects Where Xtype='U'
      

  3.   

    1。
    sysobjects
    在数据库内创建的每个对象(约束、默认值、日志、规则、存储过程等)在表中占一行。只有在 tempdb 内,每个临时对象才在该表中占一行。2。你可以在sql server的联机帮助丛书中找到更多的信息。
      

  4.   


    Use NorthWind
    GO
    Sp_tables可以返回所有NorthWind下所有表
      

  5.   

    1.直接 sp_tables 即可2.select * from INFORMATION_SCHEMA.TABLES
      

  6.   

    Select * from NorthWind.dbo.SysObjects Where Xtype='U'
    OK了,谢谢。
      

  7.   

    use northwind
    go
    sp_help
      

  8.   

    select * from sysobjects where xtype='u'
    select * from sysobjects where xtype='s'