What command do we use to rename a db?
Answers were Sorted based on User's Feedback
Answer / visala
sp_renamedb 'oldname','newname'
alter database <databasename>
modify name=<newdatabasename>
Is This Answer Correct ? | 17 Yes | 0 No |
Answer / swetha
sp_renamedb ?oldname? , ?newname?
alter database ?databasename?
modify name = ?newdatabasename?
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / karthick.r
sp_rename olddatabasename newdatabasename
for eg
sp_rename prodetails empdetails;
in this eg the name of the prodetails is changed into
empdetails using above command
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration
How to declare a cursor with "declare ... Cursor" in ms sql server?
what are triggers? : Sql server database administration
Can we hide the definition of a stored procedure from a use?
What are trace files?
Different Types of Functions ?
Why do you want to join software field as you have done your BE in Electronics?
Explain Normalization and DE normalization
What are the properties of the transactions?
What are the results of running this script?
what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?
Is it possible to create trigger on views?