Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Need to shrink huge log file

$
0
0

Hi, 

Have a database which is published using transactional replication.  The replication was broken yesterday due to a restore.  In order to try and fix this I issued  the "EXEC sp_replrestart" command and left it running, unfortunately it has now filled up the disk the log sits creating a 250GB file. 

Getting this error: 

Msg 9002, Level 17, State 6, Procedure sp_replincrementlsn_internal, Line 1 The transaction log for database 'RKHIS_Live' is full. To find out why space in the log

cannot be reused, see the log_reuse_wait_desc column in sys.databases


I really need to free up space on this disk and shrink the log, however I can't backup the database. 

I've not tried shrinking the files yet as I can't do a full backup.

Any ideas? 

I don't care about replication at this point and will happily ditch it if it gets me out of this situation. 

Thanks 

 


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>