My VB application is connecting to the Oracle database fine and I can run many SQL statements through ADO connection. However, when I try to execute a stored PL/SQL procedure, it does'nt work.
Does anybody have an ideahow to execute Oracle stored procedures from VB?
Or through Shell commands?
You can use the UTL_FILE package insted of the DBMS_OUTPUT package. UTL_FILE lets your PL/SQL programs read and write operating system (OS) text files.
Include the init.ora file with the parameter UTL_FILE_DIR='path to a directory where you want the output file'.
Read more in the doc. how to use the UTL_FILE package.
You can't see output of dbms_output package in VB, AFAIK.
For "reports" from inside of stored procedures I usually use OUT parameter. Procedure stores required output information in a VARCHAR2 variable and passes it back via the parameter.
HTH,
Ales
Hi, I'm sorry for delay.
I use the OUT parameters in Java and VB/OO4O so I'm not able to give you an advice for ADO.
kshailesh's post above seems to show good way. You'll have to see help for syntax to get the value of OUT parameter.
Regards,
Ales
Bookmarks