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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to detach and reattach dbs w/ new location

Status
Not open for further replies.

web4fun

MIS
Oct 2, 2002
127
0
0
US
SCENARIO:

SQL 2005

DB files are currently located on D: drive
LOG files are currently located on E: drive

Need to move DB files from D: drive to F: drive on the same server.

I understand that simply detaching and reattaching the DBs would work just fine however I was hoping to run a script that could take care of all of the user dbs. I've found a few via Google search but does anyone have any they've used for such a scenario?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top