Solved

Firebird and Stored Procedures

Posted on 2006-11-01
4
1,183 Views
Last Modified: 2010-07-27
I have a stored procedure that i would like to execute form a C# program.

What i need is the sql string to pass to a command object that will execute the stored procedure.

In MSSQL it would be exec <SP> <Parameter List> i believe. Can any give me the firebird equivalent?

NOTE: one of the parameters is a blob
0
Comment
Question by:cossy74
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
NorCal2612 earned 400 total points
ID: 17855241
execute procedure procedure_name(prm1, prm2, ..., prmN);
0
 
LVL 19

Assisted Solution

by:NickUpson
NickUpson earned 100 total points
ID: 17884733
please show the interface definition of the stored procedure and give the version of firebird you are using.
0
 

Author Comment

by:cossy74
ID: 17903916
SET TERM ^ ;

CREATE PROCEDURE INSERT_PROCESSES(
  PROCESS_ID VARCHAR(15) CHARACTER SET NONE,
  DLL_ID INTEGER,
  CHAMELEON_ID INTEGER,
  DATA BLOB SUB_TYPE 1 CHARACTER SET NONE)
AS
BEGIN
INSERT INTO processes("PT_P_ID","PT_DLL_ID","PT_CONTEXT","PT_CURRENT_STEP","PT_TIMER_IN","PT_TIMER_OUT","PT_PRIORITY","PT_STATUS","PT_DATA_PTR","PT_CHAMELEON_ID")
VALUES(:PROCESS_ID,:DLL_ID,GEN_ID(CONTEXT_GEN,1),0,CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,0,0,:DATA,:CHAMELEON_ID);
END^

SET TERM ; ^

Firebird version: 1.5.1
0
 

Author Comment

by:cossy74
ID: 18018233
Hi,

if you are looking at this the actual string is

select <stored_procedure> <param_1><param_2>.....<param_n>
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…

749 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