EXEC sp_dboption 'oldDbName', 'Single User', 'TRUE'
EXEC sp_renamedb 'oldDbName', 'NewDbName'
EXEC sp_dboption 'NewDbName', 'Single User', 'FALSE'
转载于:https://www.cnblogs.com/umlzhang/archive/2009/11/03/1595290.html
转载于:https://www.cnblogs.com/umlzhang/archive/2009/11/03/1595290.html