FIX: Unable to Use GOTO in an Execute SQL Task of a DTS Package (287401)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 7.0
This article was previously published under Q287401
BUG #: 350933 (SHILOH_bug)
Bug #: 100831 (SPHINX)
SYMPTOMS
In an Execute SQL task for a Data Transformation Services (DTS) package, a GOTO statement may fail with the following syntax error when you try to parse the query or run the package:
Incorrect syntax near the keyword 'to'.
CAUSE
The token fetch incorrectly reads "go" instead of "goto", which ends the batch and triggers the syntax error.
RESOLUTIONTo 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
Move the query to a stored procedure and execute the stored procedure from the Execute SQL task.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in SQL Server 2000 Service Pack 1.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB287401 |
---|
|