FIX: Alpha: Access Violations When Executing Query Plans the First Time

ID: Q214596


The information in this article applies to:

BUG #: 18403; 18404 (SQLBUG_65)

SYMPTOMS

Under very narrow circumstances, the first execution of a query plan (seen mostly with stored procedures, but may also apply to views, and so on) after a restart of SQL Server may cause a handled access violation (AV).

NOTE: This problem only occurs on the Alpha platform; it does not occur on Intel-based processor architectures.

Other items of note include the following:


CAUSE

This problem is caused by a bad memory alignment in the procedure cache under very narrow circumstances.


WORKAROUND

To work around this problem, do the following:

  1. Call the stored procedure with "safe" parameters in a startup procedure.


  2. Call the stored procedure with "safe" parameters on a scheduled basis to avoid the "good execution plan" being flushed from the procedure cache.



STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 5a for Microsoft SQL Server version 6.5. For information about downloading and installing the latest SQL Server Service Pack, see http://support.microsoft.com/support/sql/.

For more information, contact your primary support provider.

Additional query words: sp sp5 sp5a


Keywords          : SSrvGPF SSrvStProc kbbug6.50 kbfix6.50.SP5 
Version           : winnt:6.5
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: May 4, 1999