all groups > sql server new users > november 2005 >
You're in the

sql server new users

group:

backup / truncate transaction log


backup / truncate transaction log Loane Sharp
11/30/2005 1:42:52 AM
sql server new users:
Hi there

I use DTS to import data into a SQL Server database for archive purposes.
After I do a DTS import, it can happen that I have, say, a 1GB .MDF file and
a 4GB .LDF file. I then backup the database, selecting the option to remove
inactive entries from the transaction log, but this doesn't make any
difference to the size of either file. In the interests of storage, I need
to get rid of the 4GB .LDF file. If, after the backup completes, what would
happen if I detached the database, deleted the .LDF file, and then stored
only the .MDF file for archive purposes? Would I be losing something?

Best regards
Loane

Re: backup / truncate transaction log Andrew J. Kelly
11/30/2005 7:22:34 AM
If you are not using the capabilities of the log for restoration purposes
you should place the database into SIMPLE recovery mode and there will be no
need to worry about the log in regards to backups, just the db backup. you
can shrink the log file with DBCC SHRINKFILE to get it to a manageable size.
Then if it is in SIMPLE mode it will not continue to grow and grow as it is
now.

--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Re: backup / truncate transaction log Loane Sharp
12/6/2005 12:34:51 AM
thanks andrew, best regards Loane

[quoted text, click to view]

AddThis Social Bookmark Button