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

SSIS Expressions – Operators on Dates

$
0
0

I’m trying to get a SQL query in a variable. The query should be something like

select*fromMyTablewhereDate1>Date2

The underlined objects are all variables. I am able to get the expression to work up to thewhere clause. After that I seem to be getting errors. Find below my expression and kindly help me identify where I need to correct.

This is how far it works:

"select * from " + @[User::IPMTableName] +" where "

This is where errors come it:

"select * from " + @[User::IPMTableName] +" where " @[User::MaxDateSQL16] >  @[User::MaxDate001]

Many thanks,


Mpumelelo


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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