Solved

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

Posted on 2006-07-04
4
331 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now