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

setting Experssion Query with Vairable

$
0
0

Hello Friends

i'm using

SELECT * FROM test.test WHERE NAME > cast(DATE(NOW()-INTERVAL 2 DAY) as datetime)

This query at back-end and now in SSIS i have set below in parameter

SELECT cast(DATE(NOW()-INTERVAL 2 DAY) as datetime) as synchDate

i need this in my dataflow 

SELECT * FROM test.test WHERE NAME >@synchDate

now in Expression

"SELECT * FROM test WHERE NAME= (DT_DATE) @[User::synchDate]"
what should i do ?

I'm using datetime variable.

Kindly suggest me Expression Query i'm doing mistake in any Parentheses.

and i do not know what to use

(DT_DATE)

 (DT_STR, «length», «code_page»)

Kindly help me.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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