Chinaunix首页 | 论坛 | 博客
  • 博客访问: 124263
  • 博文数量: 31
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 355
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-16 17:21
文章分类

全部博文(31)

文章存档

2014年(1)

2012年(2)

2011年(15)

2010年(1)

2009年(8)

2008年(4)

分类: 数据库开发技术

2009-04-30 12:56:30

操作之前请备份好自己的数据:

Use Master
Go
sp_configure 'allow updates', 1
reconfigure with override
Go
begin tran
update sysdatabases set status = 32768 where name = '数据库名'
--Verify one row is updated before committing
commit tran
DBCC TRACEON(3604)
DBCC REBUILD_LOG('数据库名','c:\mssql7\data\数据库名_log.ldf')
Go
use master
update sysdatabases set status = 8 where name = '数据库名'
Go
sp_configure 'allow updates', 0
reconfigure with override
Go
dbcc checkdb(数据库名)
阅读(946) | 评论(0) | 转发(0) |
0

上一篇:更新至397集

下一篇:海贼王

给主人留下些什么吧!~~