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 |
Is it possible to have more then one foreign key in a single table? if possible, is this the good way to design the table?
How do I trace a query in sql server?
How to test values returned by a subquery with the in operator?
Explain the architecture of SQL Server?
Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?
What's the maximum size of a row?
What is database dimension? : sql server analysis services, ssas
What are the pros and cons of creating extended stored procedures?
What is the exact numeric data type in sql?
1. SELECT SUM(sal) as “Gross Salary” from EMPLOYEES; 2. SELECT MAX(sal) as “Highest Salary” from EMPLOYEES; ouput should be in table format
How to delete particular value in the column of a table.Is it possible or not?if possible give it as in query.
how would you troubleshoot blocking? : Sql server database administration