Copying a database

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: DeeJay Puar (deejaypuar_at_yahoo.com)
Date: 08/24/04


Date: Tue, 24 Aug 2004 12:04:33 -0700

Sounds like you have a plan. This should work just fine.

DeeJay
>-----Original Message-----
>I want to copy a database, say d:\aa.mdf and d:\aa.ldf,
to
>the same server but with a different name. Of course, I
>can't use the Copy Database Wizard. Will the following
>work?
>
>1. Detach the database.
>2. Go into Win Explorer and make copies of the files,
say
>d:\aa1.mdf and d:\aa1.ldf.
>3. Re-attach the original database using d:\aa.mdf and
>d:\aa.ldf.
>4. Attach the copied files, d:\aa1.mdf and d:\aa1.ldf,
>with a different database name.
>
>I'm just wondering if the server or system tables will
get
>confused for some obscure reason. Thanks for the help.
>.
>



Relevant Pages

  • Re: Maintenance Plan Caused System To Hang
    ... ran DBCC CHECKDB) I was connected to the server through Terminal Services. ... Even though the server has 2 GB of RAM and is used exclusively for SQL 2005, ... maintenance plan in SQL 2005 and ran it. ... Back up the database and transaction log ...
    (comp.databases.ms-sqlserver)
  • windows 2000 server secedit.sdb(?) problem
    ... We have a windows 2000 server that is the PDC of our domain. ... I attempted to recover the secedit.sdb database with the following ... Running esentutl /r on the %windir%\Security folder. ... The next plan is to replace secedit.sdb with the one on our ...
    (microsoft.public.windows.server.general)
  • Re: "Attempt to repair any minor problems." What is the point?
    ... The message indicates that the *database* needs to be in single-user mode. ... This should not be confused with the *server* being in single-user mode. ... > What is the point of having this checkbox on the Database Mainenance Plan ... > For SqlAgent to be running, it requires NOT Single User Mode. ...
    (microsoft.public.sqlserver.server)
  • How Do I Restore A Warm Backup If My Primary Server Fails?
    ... In SQL 2000 I have been using Log Shipping to keep a warm backup copy ... up my Maintenance Plan to implement log shipping, ... same database. ... my secondary server. ...
    (comp.databases.ms-sqlserver)
  • SQL 2005 64 bits / 32 bits - Merge Replication
    ... We are thinking on moving the publisher to a 64 Bit box. ... The plan is just to ... call the new server the same way the old server and take a backups of the ... database and restore it in ...
    (microsoft.public.sqlserver.replication)