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

SQL2005 Can I move the transaction logs

Status
Not open for further replies.

dporrelli

Programmer
Dec 18, 2002
43
GB
Hi All,

I have acidentally installed SQL2005 with the data & logs writting to the same location, whereas I was wanting to put the transaction logs in a seperate folder. I have tried adding a new log file and removing the orginal through the properties window in the management console, but I get a message telling me that it cant remove primary file,but it is set to NA and not primary. I also tried downsizing it so that it's only 1 Mb and have the two log files there with the new one having a proper file size, but it will not let me shrink the file.
Hope someone can help, thanks in advance.

 
detach the database, copy the log to the new location and attach it again.

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top