Creating Oracle Stored Procedures in VB? 
Author Message
 Creating Oracle Stored Procedures in VB?

I need to be able to create Oracle Stored Procedures through a VB app.  I am
currently doing this by reading the script for the SP into a big string.
Then I execute the string using RDO's execute method.  This works fine and
dandy for strings less than 32K.  Unfortunately anything over 32K causes an
error - something about length of SQL string is too long.  I am pretty sure
there is a 32K ODBC limitation on the length of SQL string that can be
executed using the SQLExecDirect function.  RDO is just a thin layer above
ODBC, so an ODBC limitation is an RDO limitation.

Does anyone know a way around this problem, other than creating the SPs
manually through SQL*Plus?



Mon, 21 Jan 2002 03:00:00 GMT  
 Creating Oracle Stored Procedures in VB?
Rob,
    The ADOX model promises this in the future by using the Append
method of the Procedures collection.  Unfortunately, it does not
currently work with Oracle.  You may try saving the information to disk
and running it as a script by shelling out to SQL*Plus, but this is not
the solution you were looking for.  Sorry!

Kirk Allen Evans



Quote:
> I need to be able to create Oracle Stored Procedures through a VB
app.  I am
> currently doing this by reading the script for the SP into a big
string.
> Then I execute the string using RDO's execute method.  This works
fine and
> dandy for strings less than 32K.  Unfortunately anything over 32K
causes an
> error - something about length of SQL string is too long.  I am
pretty sure
> there is a 32K ODBC limitation on the length of SQL string that can be
> executed using the SQLExecDirect function.  RDO is just a thin layer
above
> ODBC, so an ODBC limitation is an RDO limitation.

> Does anyone know a way around this problem, other than creating the
SPs
> manually through SQL*Plus?

--
Kirk Allen Evans

(Do not send mail to the Deja News account used

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



Tue, 22 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Create a TEMP table with Stored procedures (Oracle)

2. Create a TEMP table with Stored procedures (Oracle)

3. Calling Oracle Stored Procedure from VB

4. How to call an Oracle stored procedure from VB

5. Oracle stored Procedures from VB

6. Return recordset from Oracle Stored Procedure to VB.

7. VB RDO / Oracle - stored procedures, problem

8. How to use oracle stored procedure in VB?

9. Populating a rdo recordset in VB from an Oracle stored procedure

10. VB 5 and Oracle Stored Procedure

11. VB and Oracle Stored Procedures???

12. VB Newbie Oracle stored procedures

 

 
Powered by phpBB® Forum Software