FIX: SELECT from Computed Column That References UDF Causes SQL Server to Terminate (313005)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q313005
BUG #: 356034 (SHILOH_BUGS)

SYMPTOMS

A SELECT statement may generate an exception that causes the SQL Server instance to terminate unexpectedly if all of the following conditions are true:
  • The SELECT statement retrieves a computed column.
  • The computed column references a user defined function (UDF).
  • The UDF accesses table data.
  • An implicit data type conversion is necessary for one of the UDF parameters.
No stack dump or other message related to the exception is written to the SQL Server error log.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft 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

NOTE: The following hotfix was created before the release of Microsoft SQL Server 2000 Service Pack 3.

The English version of this fix should have the following file attributes or later:

SQL Server 2000 Service Pack 1

This hotfix build is designed to be applied on a server that is running SQL Server 2000 Service Pack 1:
   Version       File name        Description
   ------------------------------------------------

   8.00.0469     Sqlservr.exe     SP1-based hotfix
				
SQL Server 2000 Service Pack 2

This hotfix build is designed to be applied on a server running SQL Server 2000 Service Pack 2:
   Version       File name       Description
   ------------------------------------------------

   8.00.0552     Sqlservr.exe    SP2-based hotfix
				
NOTE: Because of file dependencies, the most recent hotfix or feature that contains the files may also contain additional files.


STATUS

Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000.
This problem was first corrected in Microsoft SQL Server 2000 Service Pack 3.


Modification Type:MinorLast Reviewed:9/26/2005
Keywords:kbHotfixServer kbQFE kbSQLServ2000sp3fix kbbug kbfix kbSQLServ2000preSP3fix KB313005