Article ID: 318819 - Last Review: October 30, 2003 - Revision: 3.2 PRB: A DTS Package Raises Exceptions or Stops Responding When You Run It as a Scheduled Job
This article was previously published under Q318819 SYMPTOMS
A Data Transformation Services (DTS) package may raise exceptions or stop responding (hang) when you run it as a SQL Server Agent scheduled job if the package is using third-party drivers or Dynamic Link Libraries (DLLs) that do not support free threading. You can use DLLs in a custom task, an ActiveX Script task, or a Transform Data task. The packages may run successfully from Enterprise Manager or they may not experience errors upon each scheduled run; however, if the package never completes, and dtsrun is still running in Task Manager, the package has stopped responding. You may also see this behavior when you run the dtsrun command prompt utility. CAUSE
This behavior occurs because the package is using providers, drivers, or DLLs that are apartment threaded or that are not thread-safe.
WORKAROUND
To work around this behavior, on the Workflow Property tab, click the Execute on main package thread option for the Transform Data task, or ActiveX Script task step that uses apartment-threaded third-party drivers or DLLs. Turn on DTS package logging to determine at which step the failure occurs. If the package log indicates that all steps have succeeded, turn on Execute on main package thread for each Transform Data task or ActiveX Script task that uses apartment-threaded drivers, providers, or DLLs.
MORE INFORMATION
DTS uses the free-threading model to allow the steps to execute in parallel on different threads. If you try to use parallel execution on a provider that does not support it, exceptions may occur. A data provider that is used with DTS Designer that does not support parallel execution is the OLE DB Provider for Microsoft Jet, which accesses data from Paradox, dBASE, Microsoft Excel, and HTML source files. For more information about supported drivers see:
242391
(http://support.microsoft.com/kb/242391/EN-US/
)
INF: DTS Package Development, Deployment, and Performance
290077
(http://support.microsoft.com/kb/290077/EN-US/
)
FIX: DTS Scheduled Job Does Not Complete After First Run
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
