FIX: You may receive an error message when you try to load data by using CLR functions in a Transact-SQL job in SQL Server 2005

Article translations Article translations
Article ID: 910414 - View products that this article applies to.
Bug #: 412358 (SQLBUDT)
Bug #: 406946 (SQLBUDT)
Expand all | Collapse all

On This Page

SUMMARY

This article describes the following about this hotfix release:
  • The issues that are fixed by this hotfix package.
  • The prerequisites for installing the hotfix package.
  • Information about whether you must restart the computer after you apply the hotfix package.
  • Information about whether the hotfix package is replaced by any other hotfix package.
  • Information about whether you must make any registry changes.
  • The files that are contained in the hotfix package.

SYMPTOMS

Consider the following scenario. In Microsoft SQL Server 2005, you try to use common language runtime (CLR) functions to load data. You do this by running a Transact-SQL job. This Transact-SQL job is started by SQL Server Agent. In this scenario, the job fails, and you receive the following error message:
Error 563. ETL Load: Error Number 6535, Severity 16, State {2), In Routine RoutineName, At Line 25, Full Message : .NET Framework execution was aborted. Another query caused the AppDomain framework.dbo[runtime].2 to be unloaded or an unhandled .NET exception happened. 54
Additionally, the following messages are written to the SQL Server error log:
DateTime spid1s AppDomain 2 (framework.dbo[runtime].1) doomed due to memory pressure.
DateTime spid1s AppDomain 2 (framework.dbo[runtime].1) unloaded.
DateTime Logon Error: 17830, Severity: 20, State: 2.
DateTime Logon A network error occurred while establishing a connection; the connection has been closed. This may have been caused by client or server login timeout expiration. Time spent during login: total 26 ms, enqueued 1 ms, network writes 1 ms, network reads 25 ms, establishing SSL 25 ms, negotiating SSPI 0 ms, validating login 0 ms. [CLIENT: 10.218.40.134]
DateTime spid83 AppDomain 3 (framework.dbo[runtime].2) created.

CAUSE

This problem occurs because CLR parallel threads are incorrectly shut down when you run parallel queries. Typically, this problem occurs when the following conditions are true:
  • A correct shutdown occurs in the main thread, and subthreads have not exited. In this scenario, the subthreads will stop the main thread, and the CLR thread is ended.
  • An exception is not managed when you try to enter an aborted CLR thread, and you are stopped on the stub.

RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have SQL Server 2005 installed to apply this hotfix.

Restart information

You do not have to restart the computer after you apply this hotfix.

Hotfix file information

This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

SQL Server 2005, 32-bit versions

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Dtspipeline.dll2005.90.1500.0600,28009-Nov-200504:19x86
Microsoft.datatransformationservices.vsintegration.dll9.0.1500.0330,45609-Nov-200504:19x86
Microsoft.reportingservices.excelrendering.dll9.0.1500.0326,36009-Nov-200504:19x86
Msmdlocal.dll9.0.1500.015,581,91209-Nov-200504:19x86
Msmdpp.dll9.0.1500.03,824,85609-Nov-200504:19x86
Msmdpump.dll9.0.1500.03,912,40809-Nov-200504:19x86
Msmdredir.dll9.0.1500.03,926,74409-Nov-200504:19x86
Msmdsrv.exe9.0.1500.014,559,44809-Nov-200504:19x86
Msmgdsrv.dll9.0.1500.05,935,32009-Nov-200504:19x86
Msolap90.dll9.0.1500.04,202,20009-Nov-200504:19x86
Nsservice.exe9.0.1500.018,64809-Nov-200504:19x86
Reportingservicesservice.exe9.0.1500.014,55209-Nov-200504:19x86
Sqlaccess.dll2005.90.1500.0349,40009-Nov-200504:19x86
Sqlca.dll2005.90.1500.03,207,38409-Nov-200504:19x86
Sqldiscoveryapi_s.dll2005.90.1500.0527,06409-Nov-200504:19x86
Sqlncli.dll2005.90.1500.02,208,52809-Nov-200504:19x86
Sqlservr.exe2005.90.1500.028,769,04009-Nov-200504:20x86

SQL Server 2005, 64-bit version

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Dtspipeline.dll2005.90.1500.01,054,93609-Nov-200518:50x64
Microsoft.reportingservices.excelrendering.dll9.0.1500.0326,36009-Nov-200518:50x86
Msmdlocal.dll9.0.1500.030,001,36809-Nov-200518:51x64
Msmdpp.dll9.0.1500.04,881,11209-Nov-200518:51x64
Msmdpump.dll9.0.1500.04,951,25609-Nov-200518:51x64
Msmdredir.dll9.0.1500.04,830,93609-Nov-200518:51x64
Msmdsrv.exe9.0.1500.029,326,04009-Nov-200518:51x64
Msmgdsrv.dll9.0.1500.08,907,99209-Nov-200518:51x64
Msolap90.dll9.0.1500.05,663,96009-Nov-200518:51x64
Nsservice.exe9.0.1500.018,64809-Nov-200518:50x86
Reportingservicesservice.exe9.0.1500.014,55209-Nov-200518:50x86
Sqlaccess.dll2005.90.1500.0356,56809-Nov-200518:50x86
Sqlca.dll2005.90.1500.04,278,48809-Nov-200518:50x64
Sqldiscoveryapi_s.dll2005.90.1500.0745,68809-Nov-200518:50x64
Sqlncli.dll2005.90.1500.03,151,63209-Nov-200518:50x64
Sqlservr.exe2005.90.1500.039,466,71209-Nov-200518:51x64

SQL Server 2005, IA 64-bit version

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Dtspipeline.dll2005.90.1500.01,915,60809-Nov-200517:17IA-64
Microsoft.reportingservices.excelrendering.dll9.0.1500.0326,36009-Nov-200517:17x86
Msmdlocal.dll9.0.1500.048,409,30409-Nov-200517:18IA-64
Msmdpp.dll9.0.1500.06,469,84809-Nov-200517:17IA-64
Msmdpump.dll9.0.1500.06,519,51209-Nov-200517:17IA-64
Msmdredir.dll9.0.1500.06,071,51209-Nov-200517:17IA-64
Msmdsrv.exe9.0.1500.047,369,94409-Nov-200517:18IA-64
Msmgdsrv.dll9.0.1500.012,840,15209-Nov-200517:18IA-64
Msolap90.dll9.0.1500.07,683,80009-Nov-200517:17IA-64
Nsservice.exe9.0.1500.018,64809-Nov-200517:17x86
Reportingservicesservice.exe9.0.1500.014,55209-Nov-200517:17x86
Sqlaccess.dll2005.90.1500.0351,44809-Nov-200517:17x86
Sqlca.dll2005.90.1500.010,563,28809-Nov-200517:18IA-64
Sqldiscoveryapi_s.dll2005.90.1500.01,924,31209-Nov-200517:17IA-64
Sqlncli.dll2005.90.1500.05,384,46409-Nov-200517:17IA-64
Sqlservr.exe2005.90.1500.072,186,58409-Nov-200517:18IA-64
Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft SQL Server 2005 Service Pack 1.

MORE INFORMATION

For more information about the naming schema for Microsoft SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499 New naming schema for Microsoft SQL Server software update packages
For more information about the terminology that Microsoft uses when Microsoft corrects software after the software is released, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 910414 - Last Review: October 9, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Workgroup Edition
Keywords: 
kbautohotfix kbsql2005sp1fix kbsql2005clr kbsql2005presp1fix kbsql2005tsql kbbug kbfix kbhotfixserver kbqfe KB910414

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com