Solved

What is the SQL syntax for executing a stored procedure in Interbase?

Posted on 2006-07-04
4
372 Views
Last Modified: 2013-12-09
I have several stored procedures, like:

GET_ALL_NAMES this has no input parameters, but returns two columns, several rows
GET_SELECTED_NAME this has one varchar input parametes, returns two columns, zero, one or several rows, depending on the input value
 
I have spent a few hours searching for this, in vain.
I use ASP.Net, and know how to do this using command objects and the like, that is not the problem.

What I want is a *PURE* SQL syntax for calling stored procedures and getting results returned.

--
Ingvarius  
0
Comment
Question by:IngvarNilsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
NickUpson earned 500 total points
ID: 17036859
select return_param1, return_param2 from sp_name (passin_param1, passin_param2)

in your examples

select first_name, lastname from GET_ALL_NAMES ()

select col1, col2 from GET_SELECTED_NAME (invarchar)
0
 

Author Comment

by:IngvarNilsen
ID: 17036927
SUPER!!
The reason I gave this so many points is that I have hunted high and low for the answer, which for some reason is not easy to find, at least not for me.

BTW, the forst example,
  select first_name, lastname from GET_ALL_NAMES ()
does not work here, this works:
  select first_name, lastname from GET_ALL_NAMES
the parentheses gives an "unknown token" exception. Any comments?

FTR, I use the latest Firebird, and use the new generic DB components in ASP.Net 2.0

--
Invarius

0
 
LVL 19

Expert Comment

by:NickUpson
ID: 17036960
Any comments? - my type

by latest firebird do you mean 1.5.3 or 2.0 rc3, the latter is only released for eval & testing
0
 

Author Comment

by:IngvarNilsen
ID: 17037002
I mean  1.5.3

--
Ingvarius
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question