Well sometimes sp_reanmedb may not work you know because if
some one is using the db it will not accept this command so
what do you think you can do in such cases?
Answers were Sorted based on User's Feedback
Answer / kumar
In This case you take following action
1. Alter DataBase <dbname> set single_user with rollback
immediate
2. Sp_renamedb 'olddb','newdb'
3. Alter DataBase <dbname> set multi_user
By
Kumar.T
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / guest
In such cases we can first bring to db to single user using
sp_dboptions and then we can rename that db and then we can
rerun the sp_dboptions command to remove the single user mode.
Is This Answer Correct ? | 2 Yes | 0 No |
What are the differences between stored procedure and the dynamic sql?
Define Foreign Key?
3 Answers ADP, College School Exams Tests,
What is field in algebra?
What is SQL Server?
What is Dedicated Administrator Connection in sql server 2005?
What is the difference between IN and EXISTS operators in SQL Server?
9 Answers ASD Lab, CSC, Intelligroup,
What is the difference between ‘having’ clause and a ‘where’ clause?
What are the different types of sql server replication? : sql server replication
Explian different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
Explain the ways to controlling cursor behavior?
Questions on identity?
What are the different sql server versions?