🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #926

Re: show SP result set

#926
From: aleplgr
Date: Fri, 27 Apr 2007 09:42
27 lines
2277 bytes
OK, I understand.
I wanted to avoid the SELECT because I'm working with EMS SQL MANAGER where I can execute a procedure and its parameters in a graphical user interface for example if the procedure parameters are dates I can select them in a windows-like graphical calendar. So I wanted to show to the end user how to  execute the procedure in that graphical interface and show as a result the table without having to do anything else, but it's not very important, I'll do the SELECT. 


"Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> wrote:
>aleplgr wrote:
>> Hi! In a stored procedure I process a table and to show it to the end
>> user now I  have to execute a SELECT at the client side,out of the
>> SP, this SELECT shows the end user a 4 columns,500 rows table. Is it
>> possible to execute the SELECT in the SP? so that the end user only
>> runs the SP and it returns the result table without having to run the
>> SELECT after the execution of the stored procedure.
>
>Being able to select from a stored procedure is exactly the way to do this - 
>Select is the SQL means of returning a result set. Simply executing a stored 
>procedure can only return a single row of values.
>
>Can you explain why you think you need to avoid calling select on the client 
>side?
>
>-- 
>Wayne Niddery - Winwright, Inc (www.winwright.ca)
>"The two most abundant elements in the universe are hydrogen and
>stupidity." - Harlan Ellison 
>
>
Technical Details
Message-ID: <4631c568$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46306a55$1@newsgroups.borland.com> <4630b0e8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,87ed5f859036b198
X-Google-Attributes: gid114a0e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "aleplgr" <aleplgr@yahoo.es>
Sender: "aleplgr" <aleplgr@yahoo.es>
Reply-To: "aleplgr" <aleplgr@yahoo.es>
Subject: Re: show SP result set
Newsgroups: borland.public.interbase.sql
X-User-Info: 80.58.205.38     
X-Forwarded-For: 80.25.195.180, 192.168.1.66
References: <46306a55$1@newsgroups.borland.com> <4630b0e8$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4631c568$1@newsgroups.borland.com>
Date: 27 Apr 2007 02:42:00 -0700
X-Trace: newsgroups.borland.com 1177666920 207.105.83.66 (27 Apr 2007 02:42:00 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail