Answer Posted / 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 |
Post New Answer View All Answers
What is server-level principal?
How do I find query history in sql server?
Create and insert into temp table in sql server?
What is triggers and its types?
Explain what is use of dbcc commands?
How can you check the level of fragmentation on a table?
List the ways in which dynamic sql can be executed?
What is the default schema of your login session in ms sql server?
How to change the data type of an existing column with "alter table" statements in ms sql server?
Can you explain what are commit and rollback in sql?
if no size is defined while creating the database, what size will the database have? : Sql server administration
How can i Relate Tables in SSIS
application server is slow what may be the problem
Tell me what is the significance of null value and why should we avoid permitting null values?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?