Solved

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

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

Get Database Help Now w/ Support & Database Audit

Keeping your database environment tuned, optimized and high-performance is key to achieving business goals. If your database goes down, so does your business. Percona experts have a long history of helping enterprises ensure their databases are running smoothly.

Question has a verified solution.

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

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

752 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