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

Passing parameterised query through variable in SSIS

$
0
0

Hi

I have defined a variable Var_Query_SQL and passed the below query using expression but it is showing error. where am i going wrong.

"SELECT

       sample_id ,

       sample_time ,

       trans_date ,

       product = mh.[identity] ,

comments = s.m_smp_comment

  FROM

       dbo.sample s

       JOIN dbo.test t

          ON t.sample = s.id_numeric

       JOIN dbo.result r

          ON r.test_number = t.test_number

      where

        s.date_authorised IS NOT NULL AND

        (

        s.date_authorised >="

+ @[User::Var_LastTimeStamp]+"OR

        t.date_authorised >="

+ @[User::Var_LastTimeStamp]+"OR

        r.date_authorised >="

+ @[User::Var_LastTimeStamp]+")"


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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