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

What is server-level principal?

122


How do I find query history in sql server?

946


Create and insert into temp table in sql server?

1036


What is triggers and its types?

1009


Explain what is use of dbcc commands?

1060


How can you check the level of fragmentation on a table?

1046


List the ways in which dynamic sql can be executed?

1016


What is the default schema of your login session in ms sql server?

1050


How to change the data type of an existing column with "alter table" statements in ms sql server?

988


Can you explain what are commit and rollback in sql?

944


if no size is defined while creating the database, what size will the database have? : Sql server administration

1010


How can i Relate Tables in SSIS

1082


application server is slow what may be the problem

2227


Tell me what is the significance of null value and why should we avoid permitting null values?

991


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

995