use master
go
sp_configure 'allow updates ',1
go
reconfigure with override
go
EXEC sp_dboption 'pubs ', 'read only ', 'FALSE '--关闭只读
go
sp_configure 'allow updates ',1
go
reconfigure with override
go
EXEC sp_dboption 'pubs ', 'read only ', 'FALSE '--关闭只读