Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/172012

From BetaArchive Wiki
Knowledge Base


INF: How Scheduled Data Transfer Works

Article ID: 172012

Article Last Modified on 2/14/2005



APPLIES TO

  • Microsoft SQL Server 6.5 Standard Edition



This article was previously published under Q172012

SUMMARY

SQL Enterprise Manager includes a transfer management interface that you can use to transfer some or all objects from one database to another. You can start the transfer immediately, or you can schedule it to occur either once or on a recurring basis.

Scheduled data transfer is a two-step process:

Step 1: A CmdExec task is inserted into destination server's msdb..systasks table. This task invokes SQL Server Transfer Agent, Xfragent.exe.

The task also contains information about the directory path where all transfer scripts are stored. This path is specified in the "Save Transfer Files in Directory" entry, and it refers to a location on the destination server.

Step 2: When the task executes on the destination server at the scheduled time, it reads transfer scripts that were stored on the destination server's local directory, and completes the actual data transfer.


MORE INFORMATION

The corresponding task will always be inserted into the destination server's msdb..systasks table, whether the transfer is administered using SQL Enterprise Manager from the source server or destination server.

The "Save Transfer Files In Directory" refers to location on the destination server, even if the transfer is initiated on the source server. Normally, if the directory does not already exist, SQL Enterprise Manager creates it. However, if the specified drive cannot be found on the destination server, the task will fail to run, and the task history will indicate a "Process Exit Code 1, Invalid Transfer Log Director" error.


Additional query words: debug task execute

Keywords: kbhowto kbinfo kbprogramming kbusage KB172012