QUOTE (kumar @ Aug 4 2008, 06:59 AM)

Hi All,
I have received "Disk Space Near Max" message from the network solutions,
so how can i truncate the database log file.
I user the simple recovery model and growth size=1024mb.
Please provide me the detail steps.
Thanks,
kumar.
To truncate your MS SQL log file you can run the query:
CODE
BACKUP LOG db_name WITH TRUNCATE_ONLY
within your SQL management program (replacing db_name with your database name). Alternatively you can use the same query within an ASP file by inserting the line:
CODE
msSQL="BACKUP LOG " & db_name & " WITH TRUNCATE_ONLY"
after initiating a database connection.