Hi, I've read some other threads but I still can't seem to figure this out. I have a table with columns-->
FName varchar(25)
MName varchar(25)
LName varchar(25)
I have set up an object variable and 3 string variables
In my execute sql task I have result set to Full result set, Ole DB connection and my select statement
In the result set tab I have the result name set to 0 and mapped to the object variable
In my package I have a foreachloop that has a send mail task in it that loops through the recordset and fires off an email
I have the foreachloop enumerator set to ADO and the object source variable set to my object and selected Rows in first table option.
I then map all my variables starting with index 0.
I keep getting this error:
Error: The type of the value being assigned to variable "User::First_Name" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.
I did this about a year ago and didn't get this error but I'm not sure how to fix it. I changed my table columns to nvarchar, char, text and still keep getting the error.
I guess I need to figure out which data type works with string or use a cast in my execute sql task?
thanks.