Hi,
I use Execute SQL Task to insert my loading audit message into the table.
The sql is :
insert load_msg values( ?,getdate(),'load sucessfully')
I set input parameter to get data from one global variable which gets the value by reading content from one control file. (This global variable is string data type. The data always like '20050520' ) But by this way, I always get the error : " the invalid character for cast specification " .
but if I don't user input parameter, just hard code there like '20050520', then it works.
In table , this column is datetime data type.
I know that there is trick for the data type column. But how to solve this issue, why just entering the string data is ok but not ok using parameter?
Any idea would be appreciated
Flora
I use Execute SQL Task to insert my loading audit message into the table.
The sql is :
insert load_msg values( ?,getdate(),'load sucessfully')
I set input parameter to get data from one global variable which gets the value by reading content from one control file. (This global variable is string data type. The data always like '20050520' ) But by this way, I always get the error : " the invalid character for cast specification " .
but if I don't user input parameter, just hard code there like '20050520', then it works.
In table , this column is datetime data type.
I know that there is trick for the data type column. But how to solve this issue, why just entering the string data is ok but not ok using parameter?
Any idea would be appreciated
Flora