Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

conversion issue during reading Variable value in Expression.

$
0
0

Hi ALL

I have an one variable named as MAXLEADID i'm using its value in experssion .Its datatype is Int64.

It gives me error;

Cannot convert 'System.Int32' to 'System.String'.

I need to use this with Query

SELECT lead_id,DATE_FORMAT(entry_date,'%m-%d-%Y %h:%m:%s')as entry_date,
entry_list_id
FROM asterisk.vicidial_list l
where year(entry_date) >=2013 and  comments <> '4-Mar-13' and leadid > @[User::MaxLeadID]

Kindly help .


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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