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

Can you please explain the difference between primary keys and foreign keys?

1167


Does full backup break log chain?

1013


What is coalesce and check constraint in sql server?

1172


What is a cube? : sql server analysis services, ssas

1051


Explain what is meant by replication of database?

1103


Explain temporary table vs table variable by using cursor alternative?

1050


What is ems sql management studio? : sql server management studio

1162


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

1257


How can delete duplicate records in cte in sql server?

1012


What are the limitations/drawbacks or ssrs 2008 r2?

152


How do triggers work?

994


what method you can use to reduce the overhead of Reporting Services data sources?

268


Define indexes?

1094


What is nonclustered index on computed columns?

995


How do you check sql server is up and running?

1045