Microsoft KB Archive/320406

= FIX: Procedure Names That Begin with &quot;sp_&quot; Can Fail with an Access Violation =

Article ID: 320406

Article Last Modified on 9/27/2005

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q320406



BUG #: 101142 (SQLBUG_70)



SYMPTOMS
An access violation may occur if a user runs a user-defined procedure (not system procedures such as sp_who) that begins with the characters &quot;sp_&quot;. The access violation (AV) can cause SQL Server to become unresponsive to existing and to new user connections.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

301511 INF: How to Obtain the Latest SQL Server 7.0 Service Pack

NOTE: The following hotfix was created prior to Microsoft SQL Server 7.0 Service Pack 4.

The English version of this fix should have the following file attributes or later:   Version      File name --

7.00.1028   Sqlservr.exe NOTE: Because of file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.



WORKAROUND
To work around this behavior, rename the user-defined procedure to a name that does not being with &quot;sp_&quot;.



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 Microsoft SQL Server 7.0 Service Pack 4.



MORE INFORMATION
SQL Server will write one (or both) of the following stack dumps to the SQL Server error log file when it experiences this access violation: Short Stack Dump 0x00420b45 Module(sqlservr+20b45) (CCache::PcoLookupName+ce) 0x00420a28 Module(sqlservr+20a28) (CSQLObject::FTransform+112) 0x00413923 Module(sqlservr+13923) (CSQLSource::Execute+11c) 0x00518c3b Module(sqlservr+118c3b) (CStmtExec::XretLocalExec+126) 0x00518afa Module(sqlservr+118afa) (CStmtExec::XretExecute+253) 0x004145f1 Module(sqlservr+145f1) (CMsqlExecContext::ExecuteStmts+11a) 0x0041409f Module(sqlservr+1409f) (CMsqlExecContext::Execute+16a) Short Stack Dump 0x0046859d Module(sqlservr+6859d) (CCache::PcoLookupId+ab) 0x004681b2 Module(sqlservr+681b2) (CSQLObject::FGetFromDisk+260) 0x00420a8a Module(sqlservr+20a8a) (CSQLObject::FTransform+219) 0x00413923 Module(sqlservr+13923) (CSQLSource::Execute+11c) 0x00518c3b Module(sqlservr+118c3b) (CStmtExec::XretLocalExec+126) 0x00518afa Module(sqlservr+118afa) (CStmtExec::XretExecute+253) 0x004145f1 Module(sqlservr+145f1) (CMsqlExecContext::ExecuteStmts+11a) 0x0041409f Module(sqlservr+1409f) (CMsqlExecContext::Execute+16a)

Keywords: kbbug kbfix kbsqlserv700presp4fix kbqfe kbhotfixserver KB320406

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.