cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute .sql file with 1000 queries using SQL VBO..

chakravarthy
Level 2
HI,

How to execute .sql file with 1000 queries using SQL VBO..

Any suggestions how to achieve this using SQL VBO

------------------------------
chakravarthy
Asia/Kolkata
------------------------------
3 REPLIES 3

PvD_SE
Level 12
Hi C,

You can have the SQL statements in a collection, then loop the collection and execute each SQL statement with the SQL VBO as you loop. The collection could be fed directly from the .sql file by reading it and adding each statement to a new row in the collection.

An other way is to write a new VBO for the application you would manually run the SQLs in. Make actions to launch and attach the application, load the .sql file and execute it as if you were running it yourself. Then write a process calling the new VBO steps.

That said, 1000 SQLs is quite a lot, and depending on the performance of the SQL statements against the databases, it might take a while to do them all.

------------------------------
Happy coding!
---------------
Paul
Sweden
------------------------------
Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)

HI Paul,

Thank you for the suggestion, will try it.


------------------------------
chakravarthy
Asia/Kolkata
------------------------------

...and don't forget to let us know how it worked out for you!

------------------------------
Happy coding!
---------------
Paul
Sweden
------------------------------
Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)