FIX: Problems Saving DTS Packages to Visual Basic Files Using the DTS User Interface (293223)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q293223
BUG #: 235884 (SHILOH_bugs)

SYMPTOMS

You can save Data Transformation Services (DTS) packages as Microsoft Visual Basic files using SQL Server 2000. Saving the package as a Visual Basic file codes the package and saves it with a .bas extension. You may encounter the following problems when you save a DTS package as a Visual Basic file:
  • If the destination drive where the file is being saved has insufficient space, errors may not be reported and a zero byte file may be created.
  • If the DTS package has an ActiveX script task that contains 50000 or more lines of code, when you try to save the package as a Visual Basic file the process may cause the SQL Enterprise Manager to stop responding (hang).
  • If a package has multiple steps, and an error occurs in any of the steps, the code may not display any errors to show why the step execution failed.

RESOLUTION

To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

WORKAROUND

  • To avoid the creation of a zero byte DTS file, make sure that the destination folder where the package is being saved has sufficient disk space.
  • To avoid having SQL Enterprise Manager stop responding while saving a package, save the ActiveX script to a text file and retrieve the text file during run-time.
  • To provide error reporting for each step of the package execution, invoke the GetExecutionErrorInfo function for each step that is executed within the package.

STATUS

Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Modification Type:MajorLast Reviewed:11/6/2003
Keywords:kbBug kbfix kbSQLServ2000sp1fix KB293223