BUG: Stored Procedure Names Starting with 'go' Cause Syntax Errors (201545)
The information in this article applies to:
This article was previously published under Q201545
BUG #: 53819 (SQLBUG_70)
SYMPTOMS
Stored Procedure names that start with the letters 'go' are treated by the Query Analyzer (ISQLW.EXE) utility as an action statement. Execution of such stored procedures may fail with the following error message:
Server: Msg 2812, Level 16, State 62, Line 1
Could not find stored procedure 'XXX'.
The stored procedure name listed in the message will be the name of the procedure without the first two letters 'go'.
CAUSE
SQL Server query utilities use the keyword 'go' as the default delimiter for a batch of TSQL commands. The utility submits incorrect commands to the SQL Server. In the example, when calling a procedure name 'got_entries' from Query Analyzer, the query submitted to SQL Server is 't_entries' not 'got_entries'.
The GUI query utility sees the 'go' pattern as the standard action in a Transact-SQL (TSQL) sequence.
WORKAROUND
To workaround this problem, you can either:
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0.
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbBug KB201545 |
---|
|