Solved

Firebird and Stored Procedures

Posted on 2006-11-01
4
1,138 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user 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…

706 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

16 Experts available now in Live!

Get 1:1 Help Now