DBA > Job Interview Questions > Microsoft SQL Server Database Administrator Exam

What is a simple way to rename a database in MS

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

What is a simple way to rename a database in MS SQL Server?

The simple way to rename a database is to run the following T-SQL command: "EXEC sp_renamedb 'old_name', 'new_name'". You may want to set the database in single user mode before running this command.

(Continued on next question...)

Other Job Interview Questions