Re: Truncate log file
From: lurc (lurchot_at_hotmail.com)
Date: 08/05/04
- Next message: mark baekdal: "Changing Column Names"
- Previous message: Mark Broadbent: "Re: How to import Data strcture from .mdf and .ldf, not Data."
- In reply to: Hari Prasad: "Re: Truncate log file"
- Next in thread: Hari Prasad: "Re: Truncate log file"
- Reply: Hari Prasad: "Re: Truncate log file"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 17:56:48 +0800
Hi Hari,
Thanks.
Under SQL Query Analyzer, I run following statement,
sp_attach_single_file_db 'backoff_0801', 'E:\data\backoff_data.mdf'
But get error messages like,
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'backoff_0801'. CREATE DATABASE is aborted.
Device activation error. The physical file name 'd:\tmxdb\backoff_log.ldf'
may be incorrect.
-- Best regards, Lurc "Hari Prasad" <hari_prasad_k@hotmail.com> wrote in message news:OvS3j5seEHA.2396@TK2MSFTNGP11.phx.gbl... > Hi, > > If it is a development environment you could just attach only the MDF file. > It seems client has not shrink the LDF file. > How to attach the MDF file only. > > sp_attach_single_file_db 'dbname' , 'physical_mdf_name_with_path' > > This command will build a new LDF file. > > Thanks > Hari > MCDBA > > "lurc" <lurchot@hotmail.com> wrote in message > news:ul$RprseEHA.2352@TK2MSFTNGP09.phx.gbl... > > Hi all, > > > > Get one sql server 2000 database from one of our clients for analysis, the > > size of mdf is 850MB, but ldf is 3.5GB, is there any way to truncate the > log > > file? > > > > -- > > Best regards, > > Lurc > > > > > >
- Next message: mark baekdal: "Changing Column Names"
- Previous message: Mark Broadbent: "Re: How to import Data strcture from .mdf and .ldf, not Data."
- In reply to: Hari Prasad: "Re: Truncate log file"
- Next in thread: Hari Prasad: "Re: Truncate log file"
- Reply: Hari Prasad: "Re: Truncate log file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|