Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What command do we use to rename a db?

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


Please Help Members By Posting Answers For Below Questions

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

1033


What is the server name in sql server?

959


If a table does not have a unique index, can a cursor be opened on it?

874


What are the advantages of user defined function?

921


What is a partition key?

889


How to search for a string in all stored procedure in sql server?

951


What is the purpose of update statistics and scope_identity() function?

1052


How can sql server instances be hidden?

896


How to sort query output in descending order in ms sql server?

902


How to join two tables in a single query in ms sql server?

943


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

1042


Explain how to send email from sql database?

974


What is identity?

950


What is dynamic cursor in SQL SERVER?

1003


Define outer join in sql server joins?

892