FIX: Error message when you run a SQL Server 2008 Integration Services package that contains an Execute SQL Task that runs a stored procedure: "The type of the value being assigned to variable "<Variable>" differs from the current variable type"

Article translations Article translations
Article ID: 969050 - View products that this article applies to.
Microsoft distributes Microsoft SQL Server 2008 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 2008 fix release.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario. In Microsoft SQL Server 2008, you create a SQL Server Integration Services (SSIS) package. This SSIS package contains an Execute SQL Task that uses an OLE DB connection. The Execute SQL Task runs a stored procedure that has an output parameter of the DateTime data type. In the SSIS package, you create a package variable of the DateTime data type. You map the output parameter of the stored procedure to the package variable. In this scenario, when you run the SSIS package, you receive the following error message:

[Execute SQL Task] Error: Executing the query "Query" failed with the following error: "The type of the value being assigned to variable "Variable" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object. ".
Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

RESOLUTION

Cumulative update information

The fix for this issue was first released in Cumulative Update 6. For more information about how to obtain this cumulative update package for SQL Server 2008, click the following article number to view the article in the Microsoft Knowledge Base:
971490 Cumulative update package 6 for SQL Server 2008
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 2008 fix release. We recommend 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:
956909 The SQL Server 2008 builds that were released after SQL Server 2008 was released
The fix for this issue was also released in Cumulative Update 3 for SQL Server 2008 Service Pack 1. For more information about this cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
971491 Cumulative update package 3 for SQL Server 2008 Service Pack 1
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 2008 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:
970365 The SQL Server 2008 builds that were released after SQL Server 2008 Service Pack 1 was released
Microsoft SQL Server 2008 hotfixes are created for specific SQL Server service packs. You must apply a SQL Server 2008 Service Pack 1 hotfix to an installation of SQL Server 2008 Service Pack 1. 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

You must have the release version of SQL Server 2008 installed before you apply this hotfix.

Restart information

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

Registry information

You do not have to change the registry.

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 item in Control Panel.

32-bit version

SQL Server 2008 Database Services Core Shared
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Commanddest.dll2007.100.1807.0164,71220-May-200906:07x86
Distrib.exe2007.100.1807.075,09620-May-200906:23x86
Dtexec.exe2007.100.1807.054,10420-May-200906:23x86
Dts.dll2007.100.1807.01,429,33620-May-200906:23x86
Dtslog.dll2007.100.1807.079,70420-May-200906:23x86
Dtspipeline.dll2007.100.1807.0694,10420-May-200906:23x86
Dtswizard.exe2007.100.1807.0804,69620-May-200906:23x86
Exceldest.dll2007.100.1807.0173,41620-May-200906:37x86
Excelsrc.dll2007.100.1807.0183,14420-May-200906:37x86
Flatfiledest.dll2007.100.1807.0276,32820-May-200906:38x86
Flatfilesrc.dll2007.100.1807.0284,00820-May-200906:38x86
Iftsph.dll2007.100.1807.038,74420-May-200906:52x86
Logread.exe2007.100.1807.0423,27220-May-200907:32x86
Microsoft.sqlserver.adonetsrc.dll10.0.1807.067,41620-May-200907:36x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200907:38x86
Microsoft.sqlserver.dmf.dll10.0.1807.0292,69620-May-200907:39x86
Microsoft.sqlserver.maintenanceplantasks.dll10.0.1807.0296,79220-May-200907:40x86
Microsoft.sqlserver.management.collectortasks.dll10.0.1807.083,80020-May-200907:40x86
Microsoft.sqlserver.pipelinehost.dll10.0.1807.071,51220-May-200907:41x86
Microsoft.sqlserver.replication.dll2007.100.1807.01,765,72020-May-200907:41x86
Microsoft.sqlserver.smo.dll10.0.1807.02,860,88820-May-200907:42x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200907:42x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200907:42x86
Oledbdest.dll2007.100.1807.0173,91220-May-200908:05x86
Oledbsrc.dll2007.100.1807.0186,71220-May-200908:05x86
Rdistcom.dll2007.100.1807.0651,09620-May-200908:24x86
Repldp.dll2007.100.1807.0191,33620-May-200908:24x86
Replmerg.exe2007.100.1807.0341,33620-May-200908:24x86
Snapshot.exe10.0.1807.013,16020-May-200909:44x86
Sql_engine_core_shared_keyfile.dll2007.100.1807.013,67220-May-200907:19x86
Sqllogship.exe10.0.1807.096,10420-May-200909:45x86
Sqlmergx.dll2007.100.1807.0192,87220-May-200909:46x86
Sqltaskconnections.dll2007.100.1807.0113,49620-May-200909:47x86
Sqlwep100.dll2007.100.1807.087,38420-May-200909:47x86
Txdataconvert.dll2007.100.1807.0206,68020-May-200909:49x86
SQL Server 2008 Database Services Core Instance
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Atxcore.dll2007.100.1807.026,45620-May-200906:04x86
Databasemailengine.dll10.0.1805.075,60824-Apr-200916:37x86
Databasemailprotocols.dll10.0.1805.042,84024-Apr-200916:37x86
Datacollectorcontroller.dll2007.100.1807.0134,50420-May-200906:08x86
Sql_engine_core_inst_keyfile.dll2007.100.1807.013,67220-May-200907:19x86
Sqlagent.exe2007.100.1807.0366,95220-May-200909:45x86
Sqlctr100.dll2007.100.1807.077,16020-May-200909:45x86
Sqlos.dll2007.100.1807.014,69620-May-200909:46x86
Sqlscriptdowngrade.dll2007.100.1807.014,69620-May-200909:46x86
Sqlscriptupgrade.dll2007.100.1807.03,374,44020-May-200909:46x86
Sqlservr.exe2007.100.1807.041,009,51220-May-200909:46x86
SQL Server 2008 Database Services Common Core
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.analysisservices.dll10.0.1807.01,316,69620-May-200907:33x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200907:38x86
Microsoft.sqlserver.smo.dll10.0.1807.02,860,88820-May-200907:42x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200907:42x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200907:42x86
Msgprox.dll2007.100.1807.0202,07220-May-200907:44x86
Replprov.dll2007.100.1807.0575,32020-May-200908:24x86
Replrec.dll2007.100.1807.0789,84820-May-200908:25x86
Replsub.dll2007.100.1807.0410,98420-May-200908:25x86
Sql_common_core_keyfile.dll2007.100.1807.013,67220-May-200907:19x86
Svrenumapi100.dll2007.100.1807.0755,54420-May-200909:48x86
Xmlsub.dll2007.100.1807.0192,34420-May-200909:50x86

x64-based version

SQL Server 2008 Database Services Core Shared
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Commanddest.dll2007.100.1807.0247,14421-May-200906:00x64
Distrib.exe2007.100.1807.086,88821-May-200906:10x64
Dtexec.exe2007.100.1807.064,87221-May-200906:10x64
Dts.dll2007.100.1807.02,202,98421-May-200906:10x64
Dtslog.dll2007.100.1807.095,59221-May-200906:10x64
Dtspipeline.dll2007.100.1807.01,086,82421-May-200906:10x64
Dtswizard.exe2007.100.1807.0800,61621-May-200906:10x64
Exceldest.dll2007.100.1807.0260,45621-May-200906:18x64
Excelsrc.dll2007.100.1807.0279,89621-May-200906:18x64
Flatfiledest.dll2007.100.1807.0414,55221-May-200906:19x64
Flatfilesrc.dll2007.100.1807.0424,80821-May-200906:19x64
Iftsph.dll2007.100.1807.054,63221-May-200906:28x64
Logread.exe2007.100.1807.0510,82421-May-200906:53x64
Microsoft.sqlserver.adonetsrc.dll10.0.1807.067,41621-May-200906:55x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200907:38x86
Microsoft.sqlserver.dmf.dll10.0.1807.0292,69620-May-200907:39x86
Microsoft.sqlserver.dmf.dll10.0.1807.0292,71221-May-200906:57x86
Microsoft.sqlserver.maintenanceplantasks.dll10.0.1807.0296,79220-May-200907:40x86
Microsoft.sqlserver.management.collectortasks.dll10.0.1807.083,80021-May-200906:58x86
Microsoft.sqlserver.pipelinehost.dll10.0.1807.071,51221-May-200906:59x86
Microsoft.sqlserver.replication.dll2007.100.1807.01,765,72020-May-200907:41x86
Microsoft.sqlserver.replication.dll2007.100.1807.01,939,81621-May-200906:59x64
Microsoft.sqlserver.smo.dll10.0.1807.02,860,88820-May-200907:42x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200907:42x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200907:42x86
Oledbdest.dll2007.100.1807.0259,94421-May-200907:08x64
Oledbsrc.dll2007.100.1807.0286,05621-May-200907:08x64
Rdistcom.dll2007.100.1807.0789,84821-May-200907:18x64
Repldp.dll2007.100.1807.0191,33620-May-200908:24x86
Repldp.dll2007.100.1807.0229,72021-May-200907:18x64
Replmerg.exe2007.100.1807.0408,40821-May-200907:19x64
Snapshot.exe10.0.1807.013,16020-May-200909:44x86
Snapshot.exe10.0.1807.013,14421-May-200908:17x86
Sql_engine_core_shared_keyfile.dll2007.100.1807.014,18421-May-200906:45x64
Sqllogship.exe10.0.1807.096,10421-May-200908:18x86
Sqlmergx.dll2007.100.1807.0229,20821-May-200908:18x64
Sqltaskconnections.dll2007.100.1807.0161,12821-May-200908:19x64
Sqlwep100.dll2007.100.1807.0116,56821-May-200908:19x64
Txdataconvert.dll2007.100.1807.0306,00821-May-200908:22x64
SQL Server 2008 Database Services Core Instance
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Atxcore.dll2007.100.1807.030,56821-May-200906:00x64
Databasemailengine.dll10.0.1805.075,62424-Apr-200919:41x86
Databasemailprotocols.dll10.0.1805.042,84024-Apr-200919:41x86
Datacollectorcontroller.dll2007.100.1807.0255,33621-May-200906:01x64
Sql_engine_core_inst_keyfile.dll2007.100.1807.014,18421-May-200906:45x64
Sqlagent.exe2007.100.1807.0427,86421-May-200908:17x64
Sqlctr100.dll2007.100.1807.077,16020-May-200909:45x86
Sqlctr100.dll2007.100.1807.0108,37621-May-200908:18x64
Sqlos.dll2007.100.1807.015,19221-May-200908:18x64
Sqlscriptdowngrade.dll2007.100.1807.015,70421-May-200908:19x64
Sqlscriptupgrade.dll2007.100.1807.03,373,91221-May-200908:19x64
Sqlservr.exe2007.100.1807.057,863,00021-May-200908:19x64
SQL Server 2008 Database Services Common Core
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.analysisservices.dll10.0.1807.01,316,69620-May-200907:33x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200907:38x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,35221-May-200906:57x86
Microsoft.sqlserver.smo.dll10.0.1807.02,860,88820-May-200907:42x86
Microsoft.sqlserver.smo.dll10.0.1807.02,860,90421-May-200906:59x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200907:42x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,12021-May-200907:00x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200907:42x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,22421-May-200907:00x86
Msgprox.dll2007.100.1807.0202,07220-May-200907:44x86
Msgprox.dll2007.100.1807.0246,12021-May-200907:01x64
Replprov.dll2007.100.1807.0575,32020-May-200908:24x86
Replprov.dll2007.100.1807.0727,38421-May-200907:19x64
Replrec.dll2007.100.1807.0789,84820-May-200908:25x86
Replrec.dll2007.100.1807.0976,72821-May-200907:19x64
Replsub.dll2007.100.1807.0410,98420-May-200908:25x86
Replsub.dll2007.100.1807.0492,37621-May-200907:19x64
Sql_common_core_keyfile.dll2007.100.1807.014,18421-May-200906:45x64
Svrenumapi100.dll2007.100.1807.0755,54420-May-200909:48x86
Svrenumapi100.dll2007.100.1807.01,016,66421-May-200908:21x64
Xmlsub.dll2007.100.1807.0192,34420-May-200909:50x86
Xmlsub.dll2007.100.1807.0308,05621-May-200908:22x64

Itanium-architecture version

SQL Server 2008 Database Services Core Shared
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Commanddest.dll2007.100.1807.0557,91220-May-200910:47ia64
Distrib.exe2007.100.1807.0205,65620-May-200910:55ia64
Dtexec.exe2007.100.1807.0154,96820-May-200910:55ia64
Dts.dll2007.100.1807.04,249,96020-May-200910:55ia64
Dtslog.dll2007.100.1807.0183,64020-May-200910:55ia64
Dtspipeline.dll2007.100.1807.02,020,71220-May-200910:55ia64
Dtswizard.exe2007.100.1807.0800,60020-May-200910:55ia64
Exceldest.dll2007.100.1807.0584,04020-May-200911:02ia64
Excelsrc.dll2007.100.1807.0641,88020-May-200911:02ia64
Flatfiledest.dll2007.100.1807.0951,12820-May-200911:02ia64
Flatfilesrc.dll2007.100.1807.0975,20820-May-200911:02ia64
Iftsph.dll2007.100.1807.088,42420-May-200911:10ia64
Logread.exe2007.100.1807.01,124,71220-May-200911:29ia64
Microsoft.sqlserver.adonetsrc.dll10.0.1807.067,41620-May-200911:31x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200907:38x86
Microsoft.sqlserver.dmf.dll10.0.1807.0292,69620-May-200907:39x86
Microsoft.sqlserver.dmf.dll10.0.1807.0292,69620-May-200911:32x86
Microsoft.sqlserver.maintenanceplantasks.dll10.0.1807.0296,79220-May-200907:40x86
Microsoft.sqlserver.management.collectortasks.dll10.0.1807.083,80020-May-200911:33x86
Microsoft.sqlserver.pipelinehost.dll10.0.1807.071,51220-May-200911:34x86
Microsoft.sqlserver.replication.dll2007.100.1807.01,765,72020-May-200907:41x86
Microsoft.sqlserver.replication.dll2007.100.1807.02,656,61620-May-200911:34ia64
Microsoft.sqlserver.smo.dll10.0.1807.02,860,88820-May-200907:42x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200907:42x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200907:42x86
Oledbdest.dll2007.100.1807.0586,07220-May-200911:41ia64
Oledbsrc.dll2007.100.1807.0653,65620-May-200911:41ia64
Rdistcom.dll2007.100.1807.01,835,35220-May-200911:49ia64
Repldp.dll2007.100.1807.0191,33620-May-200908:24x86
Repldp.dll2007.100.1807.0522,60020-May-200911:49ia64
Replmerg.exe2007.100.1807.0969,56020-May-200911:50ia64
Snapshot.exe10.0.1807.013,16020-May-200909:44x86
Snapshot.exe10.0.1807.013,14420-May-200912:34x86
Sql_engine_core_shared_keyfile.dll2007.100.1807.019,30420-May-200911:23ia64
Sqllogship.exe10.0.1807.096,08820-May-200912:35x86
Sqlmergx.dll2007.100.1807.0428,37620-May-200912:35ia64
Sqltaskconnections.dll2007.100.1807.0335,70420-May-200912:36ia64
Sqlwep100.dll2007.100.1807.0212,31220-May-200912:36ia64
Txdataconvert.dll2007.100.1807.0674,64820-May-200912:38ia64
SQL Server 2008 Database Services Core Instance
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Atxcore.dll2007.100.1807.059,24020-May-200910:47ia64
Databasemailengine.dll10.0.1805.075,62424-Apr-200919:08x86
Databasemailprotocols.dll10.0.1805.042,85624-Apr-200919:08x86
Datacollectorcontroller.dll2007.100.1807.0470,87220-May-200910:48ia64
Sql_engine_core_inst_keyfile.dll2007.100.1807.019,30420-May-200911:23ia64
Sqlagent.exe2007.100.1807.01,201,49620-May-200912:34ia64
Sqlctr100.dll2007.100.1807.077,16020-May-200909:45x86
Sqlctr100.dll2007.100.1807.0135,00020-May-200912:35ia64
Sqlos.dll2007.100.1807.022,36020-May-200912:35ia64
Sqlscriptdowngrade.dll2007.100.1807.020,82420-May-200912:35ia64
Sqlscriptupgrade.dll2007.100.1807.03,380,05620-May-200912:35ia64
Sqlservr.exe2007.100.1807.0110,916,44020-May-200912:36ia64
SQL Server 2008 Database Services Common Core
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.analysisservices.dll10.0.1807.01,316,69620-May-200907:33x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200907:38x86
Microsoft.sqlserver.connectioninfo.dll10.0.1807.0149,33620-May-200911:32x86
Microsoft.sqlserver.smo.dll10.0.1807.02,860,88820-May-200907:42x86
Microsoft.sqlserver.smo.dll10.0.1807.02,860,90420-May-200911:34x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200907:42x86
Microsoft.sqlserver.smoextended.dll10.0.1807.0182,10420-May-200911:34x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200907:42x86
Microsoft.sqlserver.sqlenum.dll10.0.1807.01,083,24020-May-200911:34x86
Msgprox.dll2007.100.1807.0202,07220-May-200907:44x86
Msgprox.dll2007.100.1807.0534,36020-May-200911:35ia64
Replprov.dll2007.100.1807.0575,32020-May-200908:24x86
Replprov.dll2007.100.1807.01,640,79220-May-200911:50ia64
Replrec.dll2007.100.1807.0789,84820-May-200908:25x86
Replrec.dll2007.100.1807.02,125,14420-May-200911:50ia64
Replsub.dll2007.100.1807.0410,98420-May-200908:25x86
Replsub.dll2007.100.1807.01,111,89620-May-200911:50ia64
Sql_common_core_keyfile.dll2007.100.1807.019,30420-May-200911:23ia64
Svrenumapi100.dll2007.100.1807.0755,54420-May-200909:48x86
Svrenumapi100.dll2007.100.1807.02,696,02420-May-200912:37ia64
Xmlsub.dll2007.100.1807.0192,34420-May-200909:50x86
Xmlsub.dll2007.100.1807.0558,93620-May-200912:39ia64

STATUS

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

REFERENCES

For more information about the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems


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: 969050 - Last Review: November 24, 2009 - Revision: 2.0
APPLIES TO
  • Microsoft SQL Server 2008 Standard
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Workgroup
Keywords: 
kbautohotfix kbsurveynew kbfix kbqfe kbexpertiseadvanced kbhotfixserver KB969050

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