FIX: Stored Procedure Continues to Use Parameter Value Passed During First Execution (288185)
The information in this article applies to:
This article was previously published under Q288185
BUG #: 101265 (SQLBUG_70)
SYMPTOMS
A stored procedure that accepts a parameter, which is used to determine how many columns to add to a temporary table that the stored procedure creates, might continue to use the value of the parameter passed the first time the procedure was executed, even though different values are passed for subsequent executions.
WORKAROUND
Create the procedure using a WITH RECOMPILE clause.
STATUS
Microsoft has confirmed this to be a problem in SQL Server
7.0. This problem has been corrected in U.S. Service Pack SP3
for Microsoft SQL Server 7.0. For information about
how to download and install the latest SQL Server Service Pack, see
the following Microsoft Web site:
For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 7/19/2006 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB288185 |
---|
|