Use Master
Go
sp_configure ’allow updates’,1
reconfigure with override
Go
update sysdatabases set status=32768 where name=’AAA’
Sp_dboption ’AAA’, ’single user’, ’true’
DBCC CHECKDB(’AAA’)
go
update sysdatabases set status=28 where name=’AAA’
sp_configure ’allow updates’,0
reconfigure with override
Go
解决方案 »
- sql查询性能问题
- sql查询的问题
- eclipse连接SQL2008时出错
- 高分请教一个简单的问题
- 我又来了,关于通过备份初始化SQL2005的复制
- 触发器,把1,3,5,7这个几个数分配的写到一个表的inserted中
- SQLSERVER2005突然连接不上服务器了,苦恼两天了,没法解决
- 紧急求助,关于SQL的查询
- 安装SQL Server我选择混合模式,当我修改了操作系统密码后,SQL无法启动??请问是什么原因
- 问一下,exec 在VB中怎么用是不是先用ado连接上数据库再在ado.command中用呀谁能说的详细点呀!!
- 求教了!怎么用UNION查询2200多个表~~~~
- 如何设置sqlserver访问权限?
Go
sp_configure 'allow updates',1
reconfigure with override
Go update sysdatabases set status=32768 where name='cs'
exec Sp_dboption 'cs', 'single user', 'true'
DBCC CHECKDB('cs',REPAIR_ALLOW_DATA_LOSS)
go
update sysdatabases set status=28 where name='cs'
goexec sp_configure 'allow updates',0
reconfigure with override
Go
将MDF和LDF放到相应文件夹下后,
附加数据库看看~~~