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 |
How to download and install sql server 2005 books online?
What are the different types of join?
how to find the particular row in table?(means suppose one table contain 10 rows , in these 10 rows how to find the particular row(example in 10 rows i want 5 row how)?
16 Answers Accenture, IBM, Marlabs,
What are the advantages of user defined function?
What is RAID and what are different types of RAID configurations?
What are the difference between primary keys and foreign keys?
What are different types of replication in sql server?
Do you know sql server 2008 introduces automatic auditing?
Which autogrowth database setting is good?
What is sql server management studio? : sql server management studio
How to join two tables in a single query in ms sql server?
What are acid properties of transaction?