Re: Using a Stored Procedure that returns a resultset

2005-11-25 Thread Martijn Tonies
Hmm ... I'll see what I can do then. Thanks. With regards, Martijn Tonies Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL Server Upscene Productions http://www.upscene.com Database development questions? Check the forum! http://www.databasedevelopmentforum.com >I tri

Re: Using a Stored Procedure that returns a resultset

2005-11-24 Thread Peter Brawley
Hi Martijn >I tried that, but in Delphi with the particular component-set I'm using, >this raises: mySQL Error Code: (1312) >PROCEDURE test.p_Select() can't return a result set in the given context Ah, you're not the first to have that error message, eg see the discussions at http://forums.m

Re: Using a Stored Procedure that returns a resultset

2005-11-24 Thread Martijn Tonies
> >CREATE PROCEDURE P_Select() > >READS SQL DATA > >begin > >select * from enum_table; > >end > >How would I get a resultset? > > No need for an OUT param, just call the sproc, you'll see. I tried that, but in Delphi with the particular component-set I'm using, this raises: mySQL Error Code:

Re: Using a Stored Procedure that returns a resultset

2005-11-24 Thread Peter Brawley
Martin >CREATE PROCEDURE P_Select() >READS SQL DATA >begin >select * from enum_table; >end >How would I get a resultset? No need for an OUT param, just call the sproc, you'll see. PB - Martijn Tonies wrote: Hi there, I cannot figure out how to use a Stored Procedure that returns a resu

Using a Stored Procedure that returns a resultset

2005-11-24 Thread Martijn Tonies
Hi there, I cannot figure out how to use a Stored Procedure that returns a resultset and I cannot find it in the documentation. For example: CREATE PROCEDURE P_Select() READS SQL DATA begin select * from enum_table; end I believe that CALL can only be used for output parameters, correct? Ho