What command is used to rename the database?



What command is used to rename the database?..

Answer / Deep Prakash Agrawal

In SQL Server, you can use the ALTER DATABASE command to rename a database. Here's an example: ALTER DATABASE oldDatabaseName MODIFY NAME = newDatabaseName

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Can select statements be used on views in ms sql server?

1 Answers  


What are the differences between union, intersect, and minus operators?

1 Answers  


What is awe?

1 Answers  


How to end a stored procedure properly in ms sql server?

1 Answers  


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1 Answers   United Healthcare,


Can we call future method from queueable?

1 Answers  


Can a database be shrunk with users active?

1 Answers  


What are “unrepeatable reads”?

1 Answers  


What is function of ROLLUP ?

1 Answers   HCL,


Do you know what is difference between stored procedure and user defined function?

1 Answers  


Explain trigger classes i.e. Instead of and after trigger?

1 Answers  


How to create function with parameter in sql server?

1 Answers  


Categories