Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Path of data and log files

Status
Not open for further replies.

JohnMeadows

IS-IT--Management
Mar 5, 2003
2
US
We need to change the path of the databases and log files; i.e.: eliminate some of the in-between directories, for backup automation purposes.

How can I do that without reinstalling SQL?
 
Why don't you detach the database, move the files to the new location, and then re-attach them?

Kevin
 
Niv3k;
Do you have the script or executes to do this?

Thanks.
 
see bol for attaching and detaching databases syntax and examples

but im sure if you could detach master db. i would think you can, but if its detached how would it know how to attach it back? Maybe someone else knows the answer to this.

If it is just user databases, it is not a problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top