here my query
select * from datatable where column_name in(acc_no,’ ‘,’ ')
here acc_no is dynamic from excel column
yes, i have to take that acc_no from acc_no column in excel and find mathced values from the sql database the column name is acc_number
You can try that by looping through your Excel Datatable.
Use CurrentRow(0).Item(“acc_number”).ToString.Trim. Assign a variable to that expression and pass that to your SQL Query.
P.S. CurrentRow is the Iterable for your DataTable.
Here you go:
Create an In Argument and pass the assign activity variable in the Parameters.
P.S. Use @ in front of your argument in the SQL Query.
Hi
Welcome to UiPath forum
Check this thread for more details on how handle dynamic values in sql with a variable
Cheers @Veera_Raj
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.