TranAct Knowledgebase
Search:     Advanced search

CREATE A NEW LOG FILE FROM A COMMAND LINE

Article ID: 73
Last updated: 11 Jan, 2016

If the log file is too large and you want to create a new log. Detach the database. Rename the old log file to something like jpegger_log1.ldf (or move it to another directory). Then from Management Studio, open a new query and enter the command:

create database [jpegger] on (FILENAME = ‘C:\jpegger.mdf‘) for attach_rebuild_log

where jpegger is the name of the database and ‘C:\jpegger.mdf‘ is the path for the mdf file surrounded by single quotes(‘).

Article ID: 73
Last updated: 11 Jan, 2016
Revision: 1
Views: 2
Comments: 0
Print Export to PDF Subscribe Email to friend Share Add comment
This article was:   Helpful | Not helpful
Also read
document HOW TO CREATE SCANSHELL LOG FILE
document STEPS ON CREATING A JPEGGER DATABASE

Prev   Next
SQL SERVER 2008 INSTALLATION     MOVING THE TEMPDB DATABASE