What command do we use to rename a db?

Answer Posted / babuli

To rename a SQL database follow the these seps:

1. Alter database to single user mode. So that all the
active connection will be terminated. (Database properties
-> options > single usermode)
2. Then rename the database using sp_renamedb oldname, newname

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between function and stored procedure?

681


What is data set in report?

112


Explain transaction server isolation?

740


What is primary key index?

704


What is PROJECTION Operation?

767






What is cross join in sql server joins?

799


What is identity?

761


How does normalization work?

689


Explain what are commit and rollback in sql?

675


What is hot add cpu in sql server 2008?

699


List the different types of joins?

751


Tell me what are the advantages of using stored procedures?

743


What is the size of transaction log file?

657


in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it

1267


what is blocking? : Sql server database administration

715