Microsoft KB Archive/287401

From BetaArchive Wiki
Knowledge Base


Article ID: 287401

Article Last Modified on 10/30/2003



APPLIES TO

  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition



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.

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

Move the query to a stored procedure and execute the stored procedure from the Execute SQL task.

STATUS

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.

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB287401