Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to change the database name

Author  Topic 

reddymade
Posting Yak Master

165 Posts

Posted - 2006-05-11 : 10:08:54
we have qa server and development server both.

And the database name is ppsnet, which is same on development server and qa server both.

And now the problem is we don't have qa server all the files which used to be on qa server need to be put on the development server.

and i tried to attach the database which is ppsnet.mdf and .ldf, because i already have a database with the same name on the server.

How can i change the name. i just renamed the file saying ppsnet_data_qa.mdf and ppsnet_log_qa.ldf, SQL server is complaingin saying i already have a database pps_data.mdf.

But i renamed it to a different name. how can i fix this problem, Please help.

Thank you very much for the information.

rahul8346
Starting Member

21 Posts

Posted - 2006-05-12 : 08:36:44
hi,
Can you Please eloborate what is ur problem as I am not much familiar to it, but if you can specify the Exact Error and the problrm . I might be able to help you..
Go to Top of Page

mr_mist
Grunnio

1870 Posts

Posted - 2006-05-12 : 09:01:05
use sp_renamedb

-------
Moo. :)
Go to Top of Page
   

- Advertisement -