?
Solved

Firebird and Stored Procedures

Posted on 2006-11-01
4
Medium Priority
?
1,196 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
[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
4 Comments
 
LVL 4

Accepted Solution

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

Assisted Solution

by:NickUpson
NickUpson earned 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

762 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