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 / karthick.r

sp_rename olddatabasename newdatabasename
for eg
sp_rename prodetails empdetails;


in this eg the name of the prodetails is changed into
empdetails using above command

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How retrieve field names from the table in SQL through JAVA code?

1905


If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security

1033


What is primary key and example?

948


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

1063


How to retrieve error messages using mssql_get_last_message()?

1052


what is the difference between delete table and truncate table commands? : Sql server database administration

1033


What are the essential components of sql server service broker?

1018


How many columns can we include on clustered index ?

987


How to make a remote connection in a database?

974


What is CTE in SQL

945


What is reference section?

999


Where the sql logs gets stored?

984


How to handle error or exception in sql?

982


Tell me what is difference between clustered and non clustered index?

944


How to get the definition of a user defined function back?

1044