Run SQL Script via ADO from Visual Basic
719655Aug 27 2009 — edited Aug 28 2009Hi,
I have a process in place that processes sql scripts in batch. This process is written in Perl and for each script it starts an sqlplus process and executes the script.
What I am wondering is if there is a way to do this using ADO in Visual Basic. I have been able to write the code to process oracle commands (one at a time) but what I would like to know is if there is a way to just pass a script to oracle from VB as a string and ask it to process it without going through sqlplus. I don't want to modify any of the .sql files. The .sql files run oracle commands like SELECT, DROP, INSERT, etc and also Spools output to files.
Maybe Oracle has a different API that I should be using to do this?
Any help would be greatly appreciated.
Thanks,
Neil