高手请答:有一天我的MSSQL中建新表时成了SYSTEM型表,如何删除它?

ly2099 2000-05-18 06:30:00
...全文
130 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Axiong 2000-06-02
  • 打赏
  • 举报
回复
我不知你一定要改type干嘛。有什么问题不能解决吗??
好象是不让改type的。
ly2099 2000-06-02
  • 打赏
  • 举报
回复
感谢Axiong的回复,但我用update sysobjects set type="U" where name="表名" and type="S" ,系统提示 type 列不能改,我用 set name="新表名" where name="表名" 可改表名,请继续帮忙!
Axiong 2000-05-30
  • 打赏
  • 举报
回复
sp_configure "allow updates",1
go
RECONFIGURE WITH OVERRIDE
go

;restart the database

drop table tablename


Axiong 2000-05-30
  • 打赏
  • 举报
回复
应该用 RECONFIGURE WITH OVERRIDE而不是reconfigure
tanghuan 2000-05-30
  • 打赏
  • 举报
回复
sp_configure "allow updates",1
go
reconfigure
go

;restart the database

update sysobjects set type ="U" where name="要修改的表名" and type ="S"
gosp_configure "allow updates",0
go
reconfigure
go

;restart the database

drop table ...
go

具体请查help
puzzle 2000-05-29
  • 打赏
  • 举报
回复
你等死吧!删不掉的!

34,588

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧