Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Help: Using oo4o create stored procedure
I tried to create a stored procedure using oo4o. It is created in
database, but the status is always invalid, what should I do? The code
I am using are following in VB6:
Set hrDBSession = OO4OSession.OpenDatabase("oradev", "username/pwd", 0&)
sql1 = "create or replace PROCEDURE test ( PARAM_ID IN NUMBER ) AS BEGIN DELETE FROM MICROSOFTDTPROPERTIES WHERE OBJECTID = PARAM_ID; END test;"
hrDBSession.ExecuteSQL (sql1)
If Err.Number <> 0 Then
MsgBox Err.Description
Err.Clear
End If