Karun
(Karun Kumar Nalam)
June 4, 2019, 1:03pm
1
Hi All,
I am trying to call one procedure from my project but I’m facing below issue
But I’m passing the reqNo in parameters property of execute query activity
and this is the proc I’m calling
I’m not understanding where I’m going wrong can anyone help me pls…
1 Like
Hi @Karun
remove the @ in variable name @reqNo and keep as reqNo
and try to execute with the same query… @Karun
or still not working, kindly have a look at this thread
Ok, delete dlg from parameters and paste into query this: “Select * into " + dlg.ToString + " from Sheet1$ where 1=1” Set dlg value type as GenericValue.
Hello guys,
I was trying to pass variable (by parameter option) to my SQL query.
Blockquote
“Select START_DATE, NRB
FROM blabla.blablaT_V
Where START_DATE between” + date1 + “And ‘07/21/2018’”
Blockquote
Date1 is a variable passed to SQL query
But still get error.
I can only pass query with variable as whole as variable (so lets say date2 = “Select START_DATE, NRB
FROM blabla.blablaT_V
Where START_DATE between ‘07/01/2018’ And ‘07/21/2018’”
How can I pass variable to query withou…
Cheers @Karun
1 Like
Karun
(Karun Kumar Nalam)
June 4, 2019, 1:11pm
3
Thanks @Palaniyappan for your quick reply
I tried removing @ in @reqNo but still no luck
1 Like
Karun
(Karun Kumar Nalam)
June 4, 2019, 1:18pm
4
From the above thread, he is saying to write entire query with parameters
then what is the use of Parameters property of Execute Query activity and I have total 10 to 11 parameters to pass, how complex the string will be
Is that the only way to pass parameters to proc?
1 Like
pllo2ptk
(Swoodie)
June 4, 2019, 1:21pm
5
Nobody said that Will be a easy query
1 Like
Karun
(Karun Kumar Nalam)
June 4, 2019, 1:37pm
6
Yes @pllo2ptk , Its not a easy query but sending parameters through Parameters property will be the best way for this kind of scenarios I mean when we need to send more parameters
Hello @Karun , I got the same problem and I resolved it by changing the CommandType from text to stored procedure in the Execute Query properties panel
2 Likes