FIX: A SQL Server Agent job fails when you run the SQL Server Agent job in the context of a proxy account in SQL Server 2005

Article translations Article translations
Article ID: 938086 - View products that this article applies to.
Bug #: 50001193 (SQL Hotfix)
Microsoft distributes Microsoft SQL Server 2005 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 fix release.
Expand all | Collapse all

On This Page

SYMPTOMS

When you run a SQL Server Agent job in the context of a proxy account in Microsoft SQL Server 2005, the SQL Server Agent job fails. When this problem occurs, the following information is logged in the SQL Server Agent log:
2007-03-19 12:11:00 - ! [298] SQLServer Error: 22046, Encryption error using CryptProtectData. [SQLSTATE 42000]

2007-03-19 12:11:00 - ! [442] CryptUnprotectData failed (1723).
Unable to start execution of step 1 (reason: Error authenticating proxy <Proxy account name>, system error: Logon failure: unknown user name or bad password.). The step failed.
This problem is likely to occur if more than 10 SQL Server Agent jobs are running at the same time.

Note The proxy account may be disabled if the system is configured to lock an account after a certain number of attempts to log on fail.

CAUSE

SQL Server Agent uses the CryptUnprotectData function to decrypt the password of the proxy account. However, the SQL Server Agent job fails if too many calls to the CryptUnprotectData function are made at the same time.

This problem may occur if one of the following conditions is true:
  • More than 10 SQL Server Agent jobs are running at the same time.
  • Fewer than 10 SQL Server Agent jobs are running at the same time. However, the SQL Server Agent jobs have other operations that use the CryptUnprotectData function.

RESOLUTION

Cumulative update information

The fix for this issue was first released in Cumulative Update 3. For more information about how to obtain this cumulative update package for SQL Server 2005 Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:
939537 Cumulative update package 3 for SQL Server 2005 Service Pack 2
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 fix release. Microsoft recommends that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
937137 The SQL Server 2005 builds that were released after SQL Server 2005 Service Pack 2 was released
Microsoft SQL Server 2005 hotfixes are created for specific SQL Server service packs. You must apply a SQL Server 2005 Service Pack 2 hotfix to an installation of SQL Server 2005 Service Pack 2. By default, any hotfix that is provided in a SQL Server service pack is included in the next SQL Server service pack.

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

To apply this hotfix, you must have SQL Server 2005 Service Pack 2 installed. For more information about how to obtain SQL Server 2005 Service Pack 2, 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

Restart requirement

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

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

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 item in Control Panel.
SQL Server 2005, 32-bit version
Collapse this tableExpand this table
File NameFile VersionFile SizeDateTimePlatform
Addlogintoserverrole.sqlNot applicable28214-Jun-200616:41Not applicable
Addnon-sqlserveraslinkedserver.sqlNot applicable79214-Jun-200616:41Not applicable
Addusertodatabaserole.sqlNot applicable25614-Jun-200616:41Not applicable
As80.xslNot applicable16,80113-Jun-200722:00Not applicable
As90.xslNot applicable18,29113-Jun-200722:00Not applicable
Createinsteadoftriggerbasictemplate.sqlNot applicable51114-Jun-200616:41Not applicable
Createprocedurewithcursoroutputparameter.sqlNot applicable1,43014-Jun-200616:41Not applicable
Createprocedurewithoutputparameter.sqlNot applicable1,11014-Jun-200616:41Not applicable
Createtriggercontainedifcolumns_updated.sqlNot applicable66814-Jun-200616:41Not applicable
Db2v0801.xslNot applicable29,49713-Jun-200722:00Not applicable
Droploginfromserverrole.sqlNot applicable28614-Jun-200616:41Not applicable
Dropuserfromdatabaserole.sqlNot applicable26014-Jun-200616:41Not applicable
Flatfiledest.dll2005.90.3178.0256,36826-Jun-200717:40x86
Flatfilesrc.dll2005.90.3178.0265,07226-Jun-200717:40x86
Grantsqlserveraccess.sqlNot applicable23614-Jun-200616:41Not applicable
Microsoft.analysisservices.controls.dll9.0.3178.02,766,19226-Jun-200717:40x86
Microsoft.analysisservices.dll9.0.3178.01,217,90426-Jun-200717:40x86
Microsoft.datawarehouse.dll9.0.3178.01,279,34426-Jun-200717:40x86
Microsoft.reportingservices.dataextensions.xmlaclient.dll9.0.3178.0558,44826-Jun-200717:40x86
Microsoft.reportingservices.diagnostics.dll9.0.3178.0800,11226-Jun-200717:40x86
Microsoft.reportingservices.htmlrendering.dll9.0.3178.0308,59226-Jun-200717:40x86
Microsoft.reportingservices.imagerendering.dll9.0.3178.0288,11226-Jun-200717:40x86
Microsoft.sqlserver.dmquerytask.dll9.0.3178.0333,16826-Jun-200717:40x86
Microsoft.sqlserver.maintenanceplantasks.dll9.0.3178.0296,30426-Jun-200717:40x86
Microsoft.sqlserver.maintenanceplantasksui.dll9.0.3178.0722,28826-Jun-200717:40x86
Msadomdx.dll9.0.3178.0502,64026-Jun-200717:40x86
Msjet.xslNot applicable28,51913-Jun-200722:00Not applicable
Msmdlocal.dll9.0.3178.015,948,14426-Jun-200717:40x86
Msmgdsrv.dll9.0.3178.06,045,55226-Jun-200717:40x86
Msolap90.dll9.0.3178.04,299,12026-Jun-200717:40x86
Orcl7.xslNot applicable32,05813-Jun-200722:00Not applicable
Replrec.dll2005.90.3178.0784,75226-Jun-200717:40x86
Reportingserviceslibrary.dll9.0.3178.01,119,60026-Jun-200717:40x86
Revokesqlserveraccess.sqlNot applicable23814-Jun-200616:41Not applicable
Sql2000.xslNot applicable33,62113-Jun-200722:00Not applicable
Sql70.xslNot applicable31,69913-Jun-200722:00Not applicable
Sql90.xslNot applicable38,95313-Jun-200722:00Not applicable
Sqlwb.exe2005.90.3178.0824,17626-Jun-200717:40x86
Trdtv2r41.xslNot applicable26,91413-Jun-200722:00Not applicable
Txmergejoin.dll2005.90.3178.0141,16826-Jun-200717:40x86
SQL Server 2005, x64-based version
Collapse this tableExpand this table
File NameFile VersionFile SizeDateTimePlatform
Addlogintoserverrole.sqlNot applicable28214-Jun-200615:41Not applicable
Addnon-sqlserveraslinkedserver.sqlNot applicable79214-Jun-200615:41Not applicable
Addsqlserveraslinkedserver.sqlNot applicable36714-Jun-200615:41Not applicable
Addsqlserverlogin.sqlNot applicable46714-Jun-200615:41Not applicable
As80.xslNot applicable16,80113-Jun-200721:00Not applicable
As80.xslNot applicable16,80113-Jun-200722:00Not applicable
As90.xslNot applicable18,29113-Jun-200721:00Not applicable
As90.xslNot applicable18,29113-Jun-200722:00Not applicable
Attachdatabasetemplate.sqlNot applicable45414-Jun-200615:41Not applicable
Attachsinglefiledatabase.sqlNot applicable49114-Jun-200615:41Not applicable
Createdatabasemultiplefilegroups.sqlNot applicable1,92614-Jun-200615:41Not applicable
Createdatabaseonmultiplefiles.sqlNot applicable1,39614-Jun-200615:41Not applicable
Createdatabasespecifyingcollation.sqlNot applicable66814-Jun-200615:41Not applicable
Createinsteadoftriggerbasictemplate.sqlNot applicable51114-Jun-200615:41Not applicable
Createprocedurewithoutputparameter.sqlNot applicable1,11014-Jun-200615:41Not applicable
Createrequestresponsewithactivation.sqlNot applicable2,77913-Jun-200512:30Not applicable
Createtriggercontainedifupdate.sqlNot applicable64814-Jun-200615:41Not applicable
Db2v0801.xslNot applicable29,49713-Jun-200721:00Not applicable
Denysqlserveraccess.sqlNot applicable23414-Jun-200615:41Not applicable
Detachdatabasetemplate.sqlNot applicable27914-Jun-200615:41Not applicable
Dropsqlserverlogin.sqlNot applicable20114-Jun-200615:41Not applicable
Flatfiledest.dll2005.90.3178.0256,36826-Jun-200716:40x86
Flatfilesrc.dll2005.90.3178.0265,07226-Jun-200716:40x86
Grantdatabaseaccess.sqlNot applicable30714-Jun-200615:41Not applicable
Grantsqlserveraccess.sqlNot applicable23614-Jun-200615:41Not applicable
Microsoft.analysisservices.controls.dll9.0.3178.02,766,19226-Jun-200716:40x86
Microsoft.analysisservices.dll9.0.3178.01,217,90426-Jun-200716:40x86
Microsoft.datawarehouse.dll9.0.3178.01,279,34426-Jun-200716:40x86
Microsoft.reportingservices.dataextensions.xmlaclient.dll9.0.3178.0558,44826-Jun-200716:40x86
Microsoft.reportingservices.diagnostics.dll9.0.3178.0800,11226-Jun-200716:40x86
Microsoft.reportingservices.htmlrendering.dll9.0.3178.0308,59226-Jun-200716:40x86
Microsoft.reportingservices.imagerendering.dll9.0.3178.0288,11226-Jun-200716:40x86
Microsoft.sqlserver.dmquerytask.dll9.0.3178.0333,16826-Jun-200716:40x86
Microsoft.sqlserver.maintenanceplantasks.dll9.0.3178.0296,30426-Jun-200716:40x86
Microsoft.sqlserver.maintenanceplantasksui.dll9.0.3178.0722,28826-Jun-200716:40x86
Microsoft.visualstudio.templatewizardinterface.dll8.0.50727.4215,87223-sep-200506:56x86
Msadomdx.dll9.0.3178.0502,64026-Jun-200716:40x86
Msjet.xslNot applicable28,51913-Jun-200721:00Not applicable
Msjet.xslNot applicable28,51913-Jun-200722:00Not applicable
Msmdlocal.dll9.0.3178.015,948,14426-Jun-200716:40x86
Msmdlocal.dll9.0.3178.015,948,14426-Jun-200717:40x86
Msmdlocal.dll9.0.3178.032,184,68826-Jun-200720:19x64
Msmgdsrv.dll9.0.3178.06,045,55226-Jun-200716:40x86
Msmgdsrv.dll9.0.3178.06,045,55226-Jun-200717:40x86
Msmgdsrv.dll9.0.3178.09,803,12026-Jun-200720:19x64
Msolap90.dll9.0.3178.04,299,12026-Jun-200717:40x86
Msolap90.dll9.0.3178.05,928,81626-Jun-200720:19x64
Orcl7.xslNot applicable32,05813-Jun-200721:00Not applicable
Replrec.dll2005.90.3178.0784,75226-Jun-200716:40x86
Replrec.dll2005.90.3178.01,011,56826-Jun-200719:19x64
Reportingserviceslibrary.dll9.0.3178.01,119,60026-Jun-200716:40x86
Revokedatabaseaccess.sqlNot applicable27414-Jun-200615:41Not applicable
Revokesqlserveraccess.sqlNot applicable23814-Jun-200615:41Not applicable
Scrollcursorwithvariousfetchoptions.sqlNot applicable1,12214-Jun-200615:41Not applicable
Sql2000.xslNot applicable33,62113-Jun-200721:00Not applicable
Sql2000.xslNot applicable33,62113-Jun-200722:00Not applicable
Sql70.xslNot applicable31,69913-Jun-200721:00Not applicable
Sql70.xslNot applicable31,69913-Jun-200722:00Not applicable
Sql90.xslNot applicable38,95313-Jun-200721:00Not applicable
Sql90.xslNot applicable38,95313-Jun-200722:00Not applicable
Sqlwb.exe2005.90.3178.0824,17626-Jun-200716:40x86
Trdtv2r41.xslNot applicable26,91413-Jun-200721:00Not applicable
Txmergejoin.dll2005.90.3178.0141,16826-Jun-200716:40x86
Updateextendedproperty.sqlNot applicable44714-Jun-200615:41Not applicable
SQL Server 2005, Itanium-based version
Collapse this tableExpand this table
File NameFile VersionFile SizeDateTimePlatform
Addlogintoserverrole.sqlNot applicable28214-Jun-200616:41Not applicable
Addnon-sqlserveraslinkedserver.sqlNot applicable79214-Jun-200616:41Not applicable
Addsqlserveraslinkedserver.sqlNot applicable36714-Jun-200616:41Not applicable
Addsqlserverlogin.sqlNot applicable46714-Jun-200616:41Not applicable
Addusertodatabaserole.sqlNot applicable25614-Jun-200616:41Not applicable
As80.xslNot applicable16,80113-Jun-200722:00Not applicable
As90.xslNot applicable18,29113-Jun-200722:00Not applicable
Attachdatabasetemplate.sqlNot applicable45414-Jun-200616:41Not applicable
Attachsinglefiledatabase.sqlNot applicable49114-Jun-200616:41Not applicable
Createdatabasemultiplefilegroups.sqlNot applicable1,92614-Jun-200616:41Not applicable
Createdatabaseonmultiplefiles.sqlNot applicable1,39614-Jun-200616:41Not applicable
Createdatabasespecifyingcollation.sqlNot applicable66814-Jun-200616:41Not applicable
Createinsteadoftriggerbasictemplate.sqlNot applicable51114-Jun-200616:41Not applicable
Createprocedurebasictemplate.sqlNot applicable86814-Jun-200616:41Not applicable
Createprocedurewithoutputparameter.sqlNot applicable1,11014-Jun-200616:41Not applicable
Createrequestresponsewithactivation.sqlNot applicable2,77913-Jun-200513:30Not applicable
Createtablespecifyingconstraints.sqlNot applicable64414-Jun-200616:41Not applicable
Createtablewithrowguidcolcolumn.sqlNot applicable57014-Jun-200616:41Not applicable
Createtriggercontainedifupdate.sqlNot applicable64814-Jun-200616:41Not applicable
Db2v0801.xslNot applicable29,49713-Jun-200722:00Not applicable
Denysqlserveraccess.sqlNot applicable23414-Jun-200616:41Not applicable
Detachdatabasetemplate.sqlNot applicable27914-Jun-200616:41Not applicable
Dropsqlserverlogin.sqlNot applicable20114-Jun-200616:41Not applicable
Flatfiledest.dll2005.90.3178.0256,36826-Jun-200717:40x86
Flatfilesrc.dll2005.90.3178.0265,07226-Jun-200717:40x86
Grantdatabaseaccess.sqlNot applicable30714-Jun-200616:41Not applicable
Grantsqlserveraccess.sqlNot applicable23614-Jun-200616:41Not applicable
Microsoft.analysisservices.controls.dll9.0.3178.02,766,19226-Jun-200717:40x86
Microsoft.analysisservices.dll9.0.3178.01,217,90426-Jun-200717:40x86
Microsoft.datawarehouse.dll9.0.3178.01,279,34426-Jun-200717:40x86
Microsoft.reportingservices.diagnostics.dll9.0.3178.0800,11226-Jun-200717:40x86
Microsoft.sqlserver.dmquerytask.dll9.0.3178.0333,16826-Jun-200717:40x86
Microsoft.sqlserver.maintenanceplantasks.dll9.0.3178.0296,30426-Jun-200717:40x86
Microsoft.sqlserver.maintenanceplantasksui.dll9.0.3178.0722,28826-Jun-200717:40x86
Microsoft.visualstudio.templatewizardinterface.dll8.0.50727.4215,87223-sep-200506:56x86
Msadomdx.dll9.0.3178.0502,64026-Jun-200717:40x86
Msjet.xslNot applicable28,51913-Jun-200722:00Not applicable
Msmdlocal.dll9.0.3178.015,948,14426-Jun-200717:40x86
Msmdlocal.dll9.0.3178.049,904,49627-Jun-200711:25IA-64
Msmgdsrv.dll9.0.3178.06,045,55226-Jun-200717:40x86
Msmgdsrv.dll9.0.3178.013,169,00827-Jun-200711:25IA-64
Msolap90.dll9.0.3178.04,299,12026-Jun-200717:40x86
Msolap90.dll9.0.3178.07,908,72027-Jun-200711:25IA-64
Orcl7.xslNot applicable32,05813-Jun-200722:00Not applicable
Replrec.dll2005.90.3178.0784,75226-Jun-200717:40x86
Replrec.dll2005.90.3178.02,145,13627-Jun-200711:25IA-64
Revokedatabaseaccess.sqlNot applicable27414-Jun-200616:41Not applicable
Revokesqlserveraccess.sqlNot applicable23814-Jun-200616:41Not applicable
Scrollcursorwithvariousfetchoptions.sqlNot applicable1,12214-Jun-200616:41Not applicable
Sql2000.xslNot applicable33,62113-Jun-200722:00Not applicable
Sql70.xslNot applicable31,69913-Jun-200722:00Not applicable
Sql90.xslNot applicable38,95313-Jun-200722:00Not applicable
Sqlwb.exe2005.90.3178.0824,17626-Jun-200717:40x86
Trdtv2r41.xslNot applicable26,91413-Jun-200722:00Not applicable
Txmergejoin.dll2005.90.3178.0141,16826-Jun-200717:40x86
Updateextendedproperty.sqlNot applicable44714-Jun-200616:41Not applicable

WORKAROUND

To work around this problem, reschedule the SQL Server Agent jobs that you run in the context of a proxy account. Make sure that fewer than 10 SQL Server Agent jobs are running at the same time.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the naming schema for 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 software update terminology, 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: 938086 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Workgroup Edition
Keywords: 
kbautohotfix kbhotfixrollup kbexpertiseadvanced kbbug kbfix kbHotfixServer kbqfe KB938086

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