You are currently offline, waiting for your internet to reconnect

FIX: Unable to Use GOTO in an Execute SQL Task of a DTS Package

This article was previously published under Q287401
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 350933 (SHILOH_bug)
Bug #: 100831 (SPHINX)
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'.
The token fetch incorrectly reads "go" instead of "goto", which ends the batch and triggers the syntax error.
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 theMicrosoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
Move the query to a stored procedure and execute the stored procedure from the Execute SQL task.
Microsoft 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.

Article ID: 287401 - Last Review: 01/16/2015 21:32:34 - Revision: 3.2

Microsoft SQL Server 2000 Standard Edition, Microsoft SQL Server 7.0 Standard Edition

  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB287401