An Execute SQL Task in SSIS have a sql SELECT query which return a Varchar(MAX) value ,And I am assigning that to a SSIS string variable,with resultset as single row, thrown an error regarding Casting.
So I changed SSIS Variable type to an Object.
Now the problem is I have another Execute SQL Task which uses this SSIS variable as a parameter to an Stores Procedure,but it is of type VARCHAR(MAX). How Can I achieve it?
Basically I am trying to get a SSIS Object Variable to Varchar(MAX) or String variable to pass it into another stored Procedure.
objectvariable and notstring? If so, why don't you usefull result set? What exactly yourSELECTquery is returning ? Is it giving 1 row or multiple rows ? - Prabhat Gselectand theSPin the same database? Just write one piece of T-SQL to do it all - Nick.McDermaid