Re: sp_attach_single_file_db
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 06/17/04
- Next message: ch: "Re: logging of activity on database"
- Previous message: John Peterson: "Comparing two TEXT fields for equality?"
- In reply to: Rob: "sp_attach_single_file_db"
- Next in thread: Rob: "Re: sp_attach_single_file_db"
- Reply: Rob: "Re: sp_attach_single_file_db"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 09:38:31 -0400
Rob,
You can put the MDF and LDF files wherever you want and attach them with
sp_attach_db. If you have the LDF file, you should not use
sp_attach_single_file_db (which is for MDF file only).
Just place the files in whatever directory you'd like, on whatever drive
you'd like, and run:
sp_attach_db 'DatabaseName', 'path_to_mdf_file', 'path_to_ldf_file'
"Rob" <anonymous@discussions.microsoft.com> wrote in message
news:1d83001c4546e$a5261a50$a301280a@phx.gbl...
> Hello:
>
> Is there a way to specify NEW file locations when using
>
> sp_attach_single_file_db
>
> You see the issue I have here is that, on one of my server
> where the DB was detached, the file locations for
> both .mdf and .ldf file exists on a drive letter that
> doesn't exists on the other server where I'd like to have
> this DB attached.
>
> I tried reassinging the proper drive letter and had also
> created the correct dir path, but to no avail.
>
> Any help would be appreciated. Thanks.
- Next message: ch: "Re: logging of activity on database"
- Previous message: John Peterson: "Comparing two TEXT fields for equality?"
- In reply to: Rob: "sp_attach_single_file_db"
- Next in thread: Rob: "Re: sp_attach_single_file_db"
- Reply: Rob: "Re: sp_attach_single_file_db"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|