Yeah I have seen that script and the example shows moving both the database and the transaction log. The question is how do you move the transaction logs to a different drive not the database. Or does it mean that you would still have to detach the database and the move the transaction log then run the reattach script with the database pointing to the original drive and the transaction log pointing to the new drive?
Iain did you figure it out how to move just the transaction logs or did you have to move both?
You just specify the correct location for @filename2. You don't need to copy the ldf if it does not exist SQLserver creates a new one - a good way to shrink the log back to the default size. Remember to delete the old one in this case.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.