Re: Truncate log file
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 08/05/04
- Next message: AQ Mahomed: "Suspect DataBase"
- Previous message: Hari Prasad: "Re: on nt4"
- In reply to: lurc: "Re: Truncate log file"
- Next in thread: lurc: "Re: Truncate log file"
- Reply: lurc: "Re: Truncate log file"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 16:15:54 +0530
Hi,
It seems that the source database was not detached properly. Could you
please ask the client side to use SP_DETACH_DB to detach the database and
ask them to resend the MDF and LDF file back again.
Thanks
Hari
MCDBA
"lurc" <lurchot@hotmail.com> wrote in message
news:uasKOLteEHA.3148@TK2MSFTNGP10.phx.gbl...
> 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: AQ Mahomed: "Suspect DataBase"
- Previous message: Hari Prasad: "Re: on nt4"
- In reply to: lurc: "Re: Truncate log file"
- Next in thread: lurc: "Re: Truncate log file"
- Reply: lurc: "Re: Truncate log file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|