I have a simple package which loads data from one table to other using oledb.
I am dynamically constructing the connecting string using script task, package variables ( servername databasename, CM_ConnString) and xml pkg config file.
everything looks good, but when I run I am getting below error.
script task content: is
Dts.Variables["User::CM_ConnString"].Value = "Data Source=" + Dts.Variables["User::ServerName"].Value.ToString() + ";Initial Catalog=" + Dts.Variables["User::DatabaseName"].Value.ToString()+";Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False";
xml file content is as below
...
</DTSConfigurationHeading>-<Configuration ValueType="String" Path="\Package.Variables[User::CM_ConnString].Properties[Value]" ConfiguredType="Property"><ConfiguredValue>Data Source=localhost;Initial Catalog=TesT;Provider=SQLNCLI10.1;Integrated Security=SSPI;Application Name=SSIS-Package-{4F3FC20B-334F-4DEB-92A7-14AEB3A2178C}</ConfiguredValue></Configuration>-<Configuration ValueType="String" Path="\Package.Variables[User::DatabaseName].Properties[Value]" ConfiguredType="Property"><ConfiguredValue>TesT</ConfiguredValue>
...
[Connection manager "ConnManager_TesT"] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Login timeout expired".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server
is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
Neil