all groups > vb.net data > october 2005 >
You're in the

vb.net data

group:

Help with creating SP in VB.NET


Help with creating SP in VB.NET Tom Rahav
10/28/2005 12:00:00 AM
vb.net data:
Hello!

I need to create Oracle stored procedure at runtime with visual basic .net.
I want that everytime my application starts, it will run a "create or
replace procedure" statement on ORACLE server.
I tried to read the SQL statement from a script file (text file) into an
OracleCommand object and exeute the statement by this. In fact, it created
something in the database, but it seems to create the procedure with
errors... I think it maybe related to the text format (such as ";" etc.).
Does anyone know how can I do it right?

Thanks in advanced,
Tom.

Re: Help with creating SP in VB.NET Jim Underwood
11/3/2005 12:18:01 PM
Why are you creating a SP at run time? I have seen this doen many times in
the past, and so far never for a good reason. Usually a different approach
to code within the stored procedure will let you create one procedure that
will be flexible enough to do what you need.

That said, what is the procedure code and what errors were in the procedure
that you created?


[quoted text, click to view]

AddThis Social Bookmark Button