Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7991281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:14:45+00:00 2026-06-04T13:14:45+00:00

I am trying to copy an MSSQL DB on the same MSSQL server as

  • 0

I am trying to copy an MSSQL DB on the same MSSQL server as the source DB to use as a test version.

I am using the Copy DB wizard in SQL Server Management Studio and the SQL server version is 2008.

However it fails on the last step with a totally vague error message that doesn’t give any info in the event log either:

Package “CDW_XXXXX-_XXXXX-_1” failed.

Has anyone got any experience of DB copy in MSSQL and can shed some light on where I might look to solve the issue. (It’s not a lot to go on I realise, but any hints may help!)

Thanks,
Ben

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:14:46+00:00Added an answer on June 4, 2026 at 1:14 pm

    I wouldn’t use the wizard.

    First find out the files you need to deal with:

    SELECT name, type_desc
      FROM [db].sys.database_files
      ORDER BY [type];
    

    In most cases this will yield two rows:

    name        type_desc
    ----------- ---------
    db          ROWS
    db_log      LOG
    

    You’ll need this information in a minute.

    Now, take a backup of the database:

    BACKUP DATABASE db TO DISK = 'C:\wherever\db.bak';
    

    Once that is finished, you can restore the database using a new name. But in order to prevent over-writing the files for the original database, you need to use the information above to specify the WITH MOVE parameters.

    RESTORE DATABASE db_copy FROM DISK = 'C:wherever\db.bak'
      WITH MOVE 'db' TO 'C:\wherever\db_copy_data.mdf', 
      MOVE 'db_log' TO 'C:\wherever\db_copy_log.ldf';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to copy data from my MYSQL table to SQL Server using
I'm trying to copy data from MySQL to SQL Server 2008. My SSIS is
I'm trying to create a copy of a database in SQL Management Studio (SQL
Took a copy of a database of SQL Server Express on a laptop using
I am trying to copy a file from my remote server to my local.
I am trying to copy the contents of certain folders to another folder using
I'm trying to copy a directory using the Ant copy task. I am a
I am trying to copy a MyIsam dataBase from my a remote server to
I'm getting an error while trying to copy 4 tables from a MySQL source
What I'm trying to do is run the same SQL select on many Oracle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.