3 replies
by pvp
First, I have to strongly recommend that you take a course in SQL Server administration. Otherwise, you're going to be very dangerous.
The log file is on a "device" that was created at 438 MB and the filename in question was created at that time, at that size (so it's not possible for the file system not to have that much space later, if the file were treated conventionally and growing). According to your figures, so far only 13.7 MB has been used of 438, so 414.1 remains. (Small change goes to rounding errors.)
If you need a smaller logfile, the easiest thing to do is to create new devices and create a new database, re-create all the tables, defaults, rules, stored procs, whatever you have. Then delete the old db, rename the newone to the old name, and delete the old devices as well. Hopefully you have enough disk to do this.
Otherwise, moving a log file is possible but not real easy. Again, create a new, smaller device.
Rule of thumb: your log should be a minimum of 25% of your database size; bigger if you have a lot of activity, especially large, long-running transactions.
by papa smurf
by papa smurf
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending