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

can an order by clause be used in a creation of a view?

1237


What is the recursive stored procedure in sql server?

1078


Explain indexes disadvantages?

1142


Can you explain powershell included in sql server 2008?

991


What is exporting utility?

1086


How do you create type- insensitive operator?

1101


What are extended events in sql server?

1009


Explain following error properties?

1060


What is de-normalization and what are some of the examples of it?

1019


Differentiate between a primary key and a unique key.

1119


If a stored procedure is taking a table data type, how it looks?

6521


How to use subqueries with the in operators in ms sql server?

1125


What is the impact on other user sessions when creating indexes?

965


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

952


How to use values from other tables in update statements in ms sql server?

1185