You can detach the database, delete the transaction log file (ldf) and reattach the database using sp_attach_singlefile_db. This will create a new transaction log file that is very small.
If you have a lot of bulk transcations you might want to set your recover settings on the database to Bulked Log.
Quote:
quote:Originally posted by Walden
Can you shrink Transaction Logs? I thought one could only shrink database files? If so can anyone help me with how to shrink Transaction Logs, a scripts will be highly appreciated .
Regards,
CarlWalden
|