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

What is the difference between commit and rollback?

590


what is the difference between delete table and truncate table commands? : Sql server database administration

607


How to execute stored procedure in select statement sql server?

618


How to use copy and concatenate commands in SQL?

693


How to store and query spatial data?

641






Define tool Manage Statistics in SQL Server 2000 query ?

609


How to get a list of all tables with "sys.tables" view in ms sql server?

670


Do you know what are the reporting services components?

620


What does null mean?

676


What are examples of triggers?

708


What is standby servers? Explain types of standby servers.

594


What is the maximum size per database for sql server express?

634


Where are stored procedures in sql server?

646


List the different types of joins?

652


How many replicas are maintained for each sql azure db?

116