Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My database will full which is online then to do ??
database is MSSQL...
Posted
Updated 24-Aug-12 19:41pm
v2

Use the following sql commands (change the dbname to your datatbase name):
SQL
dbcc shrinkfile(dbname_log,1)

backup log dbname with truncate_only

dbcc shrinkfile(dbname_log,1)
 
Share this answer
 
If I may suggest, please read through the following article About transaction log and its truncation in SQL Server[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900