What command do we use to rename a db?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much memory that we are using in Logshipping Concept?

1368


What is the exact numeric data type in sql?

551


Can sql server be linked with other servers like oracle?

527


What is the meaning of lock escalation and why/how to stop this? : sql server database administration

606


Do you know what is bit data type and whats the information that can be stored inside a bit column?

558






How to convert a table data in XML format in sql server?

2124


What is a virtual table in sql?

549


What do you know about system database? : SQL Server Architecture

496


How to get the definition of a stored procedure back?

530


Explain the use of containers in ssis?

536


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

681


Explain triggers?

565


Does a server store data?

504


What is the use of partition by in sql server?

515


What are information schema views?

557