我用drop table 表名  删除数据库里的表时
总是提示“无法除去表,因为它在系统目录中不存在”
很郁闷,那位达人给指点下

解决方案 »

  1.   

    用户表 dbo.tbgoods5007
    命令  drop table tbgoods5007 
    这有误吗?
      

  2.   

    运行select * from sys.tables where type='U' and name='tbgoods5007'看看你找的表是否存在
      

  3.   

    select * from sys.tables where type='U' and name='tbgoods5007'运行它看看 你的表是否存在
      

  4.   

    select * from sys.tables where type='U' and name='tbgoods5007'先找找看有没有吧!
      

  5.   

    use 数据库名
    godrop table 表名;
      

  6.   


    IF EXISTS(SELECT * FROM sys.tables WHERE type='U' and [Name]='tbgoods5007')
    DROP TABLE [tbgoods5007]