﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Integration Services  / Unable to cast COM object of type System.__ComObject to class type System.Data.SqlClient.SqlConnection / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 18:13:50 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Unable to cast COM object of type System.__ComObject to class type System.Data.SqlClient.SqlConnection</title><link>http://www.sqlservercentral.com/Forums/Topic574811-148-1.aspx</link><description>Would be worth to check what service pack you have for SQL 2005, There were a few issues with SSIS 2005 and MS came out with a bunch of hot fixes for them in their service packs,Could be found at -http://support.microsoft.com/?id=955706In addition,on the Script Task check for the PreCompile to be False if you are on Service Pack 1 or something.</description><pubDate>Tue, 29 Dec 2009 08:36:12 GMT</pubDate><dc:creator>sarang</dc:creator></item><item><title>Unable to cast COM object of type System.__ComObject to class type System.Data.SqlClient.SqlConnection</title><link>http://www.sqlservercentral.com/Forums/Topic574811-148-1.aspx</link><description>I have a script task in the control flow where in I am connecting to the database (SQL Server 2005) and executing a SQL Statement.  This was working, now when I try to change the package the script task fails with the following error:Something Bad Happen Unable to cast COM object of type System.__ComObject to class type System.Data.SqlClient.SqlConnection.  Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.The connection manager that I have created and I am using is a ADO .NET connection manager so that should not be the issue.  Any inputs on resolving this will be much appreciated.  Thanks,Monisha</description><pubDate>Tue, 23 Sep 2008 15:45:43 GMT</pubDate><dc:creator>M Shah</dc:creator></item></channel></rss>