Call Stored Procedure using PL/SQL 
Author Message
 Call Stored Procedure using PL/SQL

Hi,
I use VB 4 (32 bits), DAO 3.0 and Oracle 7.3 WorkGroup NetWare.

How can i call a stored procedure

my procedure is

CREATE OR REPLACE PROCEDURE SQ_Ok AS
        maxi    NUMBER(6);
        id      NUMBER(6);
BEGIN
        SELECT max(id_type_support) INTO maxi FROM type_support;
        SELECT SQ_type_support.NEXTVAL INTO id FROM dual;
        WHILE id < maxi LOOP
          SELECT SQ_type_support.NEXTVAL INTO id FROM dual;
        END LOOP;
END;
/

PLEASE HELP ME.

--
Far Informatique
5,Rue de Conflans
94220 Charranton le Pont
FRANCE




Sun, 15 Aug 1999 03:00:00 GMT  
 Call Stored Procedure using PL/SQL

Shalom,

Quote:
>How can i call a stored procedure

Take a look at the EXECUTE method of DAO or RDO.

My wishes are with you,

*str



Thu, 19 Aug 1999 03:00:00 GMT  
 Call Stored Procedure using PL/SQL



Quote:
> Hi,
> I use VB 4 (32 bits), DAO 3.0 and Oracle 7.3 WorkGroup NetWare.

> How can i call a stored procedure

> <Clip>
> ---------

Gerard:
Try: MyQueryDef.execute "{Call SP_OK (Param1,Param2,etc.)}",
dbSQLPassTrhough


Fri, 20 Aug 1999 03:00:00 GMT  
 Call Stored Procedure using PL/SQL

Quote:

> Shalom,

> >How can i call a stored procedure

> Take a look at the EXECUTE method of DAO or RDO.

> My wishes are with you,

> *str

Yeap, the EXECUTE method looks promising, but it doesn't work.
I get following:

Run-time error '3146':
ODBC-call failed

I tried "execute PACKAGE.PROSEDURE ()" as well as
"begin PACKAGE.PROSEDURE (); end" form.

Does anyone have a sample code using VB4(32bit) + ODBC(Oracle73)
using Pl/SQL stored procedures (or packages)?

Thanks,
Drasko
European Space Agency



Thu, 26 Aug 1999 03:00:00 GMT  
 Call Stored Procedure using PL/SQL



  > >
  > > Shalom,
  > >
  > > >How can i call a stored procedure
  > >
  > > Take a look at the EXECUTE method of DAO or RDO.
  > >
  > > My wishes are with you,
  > >
  > > *str

  > Yeap, the EXECUTE method looks promising, but it doesn't work.
  > I get following:

  > Run-time error '3146':
  > ODBC-call failed

  > I tried "execute PACKAGE.PROSEDURE ()" as well as
  > "begin PACKAGE.PROSEDURE (); end" form.

  > Does anyone have a sample code using VB4(32bit) + ODBC(Oracle73)
  > using Pl/SQL stored procedures (or packages)?

  > Thanks,
  > Drasko
  > European Space Agency

Perhaps if you use Execute with the dbSqlPassthrough option?

--

WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!



Thu, 26 Aug 1999 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Call Stored Procedure using PL/SQL,VB4 and ORACLE 7.3

2. RDO 2.0 and calling Oracle PL/SQL Stored Procedures

3. Calling stored PL/SQL package in Oracle DB using ODBC

4. SQL query: from SELECT statement to stored procedure with dynamic PL/SQL

5. SQL procedure call from VB with PL/SQL table (with two fields) as agrument

6. ADO and Oracle PL/SQL stored procedures

7. Retrieving PL/SQL table from Oracle stored procedure

8. HELP: Calling Stored Procedure w/large output from VB6 (using SQL Server)

9. HELP: Calling Stored Procedure w/large output from VB6 (using SQL Server)

10. HELP: Calling Stored Procedure w/large output from VB6 (using SQL Server)

11. Calling a SQL Server 2000 store procedure from MS-Access

12. ExecuteNonQuery - Inconsistency calling SQL-7 Stored Procedures

 

 
Powered by phpBB® Forum Software