Re: Placing Log on another drive
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 06/11/04
- Next message: John Dempsey: "Loading of SQL and fileserver server?"
- Previous message: Keith Kratochvil: "Re: Placing Log on another drive"
- In reply to: Jack A: "Placing Log on another drive"
- Next in thread: Jaxon: "Re: Placing Log on another drive"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Jun 2004 22:01:39 +0530
Hi,
Steps to move LDF file to new drive
1. Execute detach database (SP_DETACH_DB <dbname>
2. Copy the LDF file to new drive
3. Attach the database (SP_DETACH_DB <dbname>,'MDF file with path','LDF file
with path'
Before doing the above steps , make the database single user
alter database <dbname> set single_user with rollback immediate
After the activity turn the databse to multi user by executing
alter database <dbname> set multi_user
Thanks
Hari
MCDBA
"Jack A" <anonymous@discussions.microsoft.com> wrote in message
news:1b06e01c44fce$eadf5a60$a601280a@phx.gbl...
>
> We have a database that uses the same drive for logs and
> data. After a new disk has been installed what is the
> easiest way (and reliable) way to move the logs to the new
> disk.
>
> I'm thinking of dumping and restoring the database using
> the log on clause of restore. Any other ideas ?
>
> TIA,
> Jack
- Next message: John Dempsey: "Loading of SQL and fileserver server?"
- Previous message: Keith Kratochvil: "Re: Placing Log on another drive"
- In reply to: Jack A: "Placing Log on another drive"
- Next in thread: Jaxon: "Re: Placing Log on another drive"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|