How to run sql file from uipath

Can anyone help me to run the sql file from uipath studio.

Using “Execute Query” activity, I am able to run only one query. I am already having all my queries in sql file.


You can directly pass the file path and try if it is working


Use Read Text file activity, Pass the file path of the .sql file and create a variable, after that pass this variable to Execute Query activity

Hope this may help you



If possible have those sql queries as a procedure or function and
then we can run them with with EXECUTE QUERY activity where pass the stored procedure name and mention the type property as Stored procedure

Cheers @Visalakshi_Jayabalan

Thanks.let me try

Sure thanks

1 Like

Let us know if you are facing the issue