Re: HELP on How to move database files

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mac Vazehgoo (mahmood.vazehgoo_at_unisys.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 10:45:07 -0700

Thank you Chris for the suggestion and John confirming the approach.

What do you mean by turn off SQL ? When I Detach a database, isn't it off
?

"John McLusky" <jmclusky@community.nospam> wrote in message
news:OOOGklFjEHA.3972@tk2msftngp13.phx.gbl...
> ChrisR wrote:
> > If Im not mistaken, you would:
> >
> > Detach.
> > Turn off SQL.
> > Delete log file.
> > Turn on SQL.
> > Attach single file with sp_attach_single_file_db.
> >
> > DO THIS IN TEST FIRST. IVE NEVER DONE IT!!!
>
> I've never had any problems doing this. I'd certainly make a copy of both
> the MDF and LDF files before doing it, though.
>
> John.
>
>



Relevant Pages

  • Re: SQL connection problem
    ... EXEC sp_defaultdb 'John', 'pubs' ... Detach the database and delete the LOG file. ... > I have sql 2000. ...
    (microsoft.public.sqlserver.programming)
  • Re: HELP on How to move database files
    ... I mean in order to delete the .ldf file after you detach ... the db I beleive your going to need to turn off the SQL ... >Thank you Chris for the suggestion and John confirming ...
    (microsoft.public.sqlserver.server)
  • Re: HELP on How to move database files
    ... ChrisR wrote: ... > Detach. ... > Turn off SQL. ... > Delete log file. ...
    (microsoft.public.sqlserver.server)
  • Re: HELP on How to move database files
    ... Detach. ... Turn off SQL. ... Delete log file. ... >> physical location of the ...
    (microsoft.public.sqlserver.server)
  • Re: PerfMon recording to SQL 2005
    ... I've been out of the SQL world for a couple years so dusting ... A System DSN, specifying windows authentication, and change to an ... Configuring the log file, choose the tested DSN as the System DSN ... The user account I created in SQL is an owner of the ...
    (microsoft.public.sqlserver.server)