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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In what sequence sql statement is processed?

761


What are parameterized reports? What are cascading parameters in ssrs reports?

129


What is the difference between primary key and unique constraints?

667


How to find the list of fixed hard drive and free space on server?

782


What is the Difference Between Primary and Foreign Key?

751






How to create new tables with "create table" statements in ms sql server?

756


How raid can influence database performance?

753


What is the parse query button used for?

791


How adventureworkslt tables are related?

680


What do you mean by an execution plan? How would you view it?

687


What are system databases into sql server (2005/2008)?

757


What are the different types of Indexes available in SQL Server?

691


Write a SQL query to make a column as unique?

777


How you can get a list of all the table constraints in a database?

677


What do mean by xml datatype?

770