Solved

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

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

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

630 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