Quantcast
Channel: Microsoft SQL Server Community Samples: Integration Services
Viewing all articles
Browse latest Browse all 582

Commented Issue: EzAPI: Set EzExecuteSqlTask.Connection Error (with answer) [15164]

$
0
0
EzExcutables.cs LN: 813

Error on set the Connection when you create a ExecuteSqlTask :
(host.InnerObject as ExecuteSQLTask).Connection = value.Name;

i fixed it also with this code :
host.Properties["Connection"].SetValue(host, value.Name);
Comments: ** Comment from web user: agilmore **

Hi

This problem can also be solved by adding the configuration mentioned in this post - http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/a85ec120-eec6-438d-aef4-55f82d14a869

The issue is a problem with the cast in this line of code (host.InnerObject as ExecuteSQLTask).Connection = value.Name; and incompatibility with .NET 4.0.

Thanks - Adam Gilmore - Dimodelo.com


Viewing all articles
Browse latest Browse all 582

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>