Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to copy some SQL Server Agent Jobs from one server to another (both using SQL Server 2000).

I found out how to create a script that creates them all, but these jobs seem to have dependencies, such as DTS packages, and I need to copy everything (and don't really know what I'm doing, let's be honest).

So I tried the built in Database Copy Wizard (in Enterprise Manager, remember that?). But as you can see in the screenshots linked below, it claims the destination .mdf and .ldf files already exist (they don't), or there is not enough disk space (there is).

Screenshot 1

See how next to both rows, there is a green tick in status? But then, further down, there is a red cross. The screen is confusing: is there an error or not?

If you click on Modify (sorry, silly rules about links when you have low rep):


Once again, I have all green ticks, but then those nasty red crosses down the bottom. Which is it saying? Or is it saying both?

So I continued anyway... and after it's done, the following failures are reported on screen:

CDW Logins Task Step: fails, but this is OK - it just couldn't transfer the administrator login (I think that's not a problem, becasue it's that machine's local windows admin logon).

CDW MSDB Task Step: fails, objects scripted OK, but can't be transferred, e.g.:

Transfer MSBD  Update_Daily_Person_Set (SQL SERVER AGENT JOB)

 Step Error Source: Microsoft Data Transformation Services (DTS) Package
 Step Error Description:Unspecified error

 Step Error code: 80004005
 Step Error Help File:sqldts80.hlp
 Step Error Help Context ID:1100

I'm not sure where to find sqldts80.hlp (anyone know?) and googling for the 80004005 SQL Server error reveals that it could be any one of about a hundred different things (literally) depending on the rest of the error message (none was given in this case).

CDW Databases Task Step:

The actual copying of the .mdf files failed. One DB wouldn't attempt to copy because it had active connections - I assume I can just disconnect those to solve that part.

Thanks for reading this far!

I tried allowing "Everyone" write permissions on the destination folder, no change. Any other ideas?

share|improve this question

I've never used the copy database wizard to copy a system database, but it's possible that it won't work for that. I know that task has been flaky for me and I've rarely used it.

Are you moving servers? msdb has system information, and if you don't intend to replace all that info on the new server, I wouldn't necessarily transfer it.

Moving DTS packages is a pain, but you can open them and save them to a new server (save as), or you can use something like this

For jobs, those are simple script files, and there aren't likely many dependencies on logins for them. If there are, sp_help_revlogin will move those to a new server through a script.

I know it seems complicated, but it's not that bad, and the manual time is probably lost here in researching the issue.

The the transfer, you have a destination folder, but there is a path stored in the logical files, and it's possible that it matches up with the new server. Are the installs default? Same paths for msdb.mdf on both serers?

share|improve this answer
Steve's right - you can't copy the system databases between servers. You'll need to copy each DTS manually then script the jobs. – Ed Leighton-Dick Jul 28 '09 at 21:11
Thanks Steve, I'll try just scripting up the DTS packages and Sql Server Agent Jobs as you've suggested. But I'm a bit confused - what made you think I was trying to transfer a system database? Is that where the DTS packages and Agent jobs actually live perhaps? I just used the wizard because it claimed it could copy not only my (normal, non-system) database but also the DTS packages and Agent jobs, which is what I actually need to copy (and dependencies, if such exist, so they actually work). – MGOwen Jul 29 '09 at 1:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.