I am using RDC . Its working fine and fast.
But I do not know how to solve this query "select * from table where var1 in ('x1','x2',....'xn') and var2=0
I spent time testing several ways but I found nothing working .Allways server send me a null answer
In the configuration file I wrote
sql.valres1=SELECT valres FROM ticket where ticket in (?) and valres=0
I fetch the call with the parameter a= 'x1','x2','x3' , a is a string variable WITH the query conditions
NOT SUCCESS
I fetch the call with a="('x1','x2','x3') " changing to
sql.valres1=SELECT valres FROM ticket where ticket in ? and valres=0
NOT SUCCESS
I changed to send a="x1,x2,x3" and not success too
I use this block of code to call and execute the query.Its is working fine with other queries.
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "valres1"
cmd.Parameters = Array As Object(A)
reqManager.ExecuteQuery(cmd,0,"tm")
Please could you tell me how I must send the query?
Thanks for your time an d help
But I do not know how to solve this query "select * from table where var1 in ('x1','x2',....'xn') and var2=0
I spent time testing several ways but I found nothing working .Allways server send me a null answer
In the configuration file I wrote
sql.valres1=SELECT valres FROM ticket where ticket in (?) and valres=0
I fetch the call with the parameter a= 'x1','x2','x3' , a is a string variable WITH the query conditions
NOT SUCCESS
I fetch the call with a="('x1','x2','x3') " changing to
sql.valres1=SELECT valres FROM ticket where ticket in ? and valres=0
NOT SUCCESS
I changed to send a="x1,x2,x3" and not success too
I use this block of code to call and execute the query.Its is working fine with other queries.
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "valres1"
cmd.Parameters = Array As Object(A)
reqManager.ExecuteQuery(cmd,0,"tm")
Please could you tell me how I must send the query?
Thanks for your time an d help