PRB: Access Violation Occurs with the Use of OpenXML in a User-Defined Function (279078)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q279078 SYMPTOMS
SQL Server 2000 reports an Access Violation if a user-defined function (UDF) contains a call to the OpenXML function. The following error message is reported:
ODBC: Msg 0, Level 19, State 1
SqlDumpExceptionHandler: Process 51 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
CAUSE
This error message is the result of a current limitation in SQL Server 2000 that prevents the intermediate rowset from OpenXML from being streamed as input to another SQL command.
RESOLUTION
To work around the problem, you can insert the intermediate rowset from the OpenXML call into a temporary table.
This resolution is illustrated in more detail in the "More Information" section of this article.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbprb KB279078 |
---|
|