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
Solved

Firebird and Stored Procedures

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
append to an ms access field 6 43
Documenting Data flow 4 47
Simple SQL query from two tables 13 58
Access 2016 Query with Proper Case logic 2 25
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 …
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…
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…

790 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