I am working on SQL SERVER 2008 & 2008 R2.
How can I rename a database in multi-user mode?
I am using sp_rename but it returns this error:
Msg 15225, Level 11, State 1, Procedure sp_rename, Line 338
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t rename a database while it is in use. Either wait for a maintenance window, or force the database to single user mode (which will kick everyone out):