The solution is to use the relevent ALTER DATABASE syntax.
Old : EXEC
sp_dboption
'Adventureworks'
,
'single user'
,
'TRUE'
;
New : ALTER
DATABASE
Adventureworks
SET
SINGLE_USER
Old : EXEC
sp_dboption
'
Adventureworks
'
,
'single user'
,
'FALSE'
;
New :
ALTER
DATABASE
Adventureworks
SET
MULTI_USER
This post from Jacob Sebastian details the rest ...
Replacement for system stored procedure sp_dboption in SQL Server 2012 (Denali)
No comments:
Post a Comment