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]+")"