Solved

Firbird. SQL

Posted on 2007-12-06
4
689 Views
Last Modified: 2013-12-09
Hi (basic I know, but frustrating) Just starting to port a Database over from SQL Server 2k to Firebird. (Some customers wont pay for SQL Server...  so what can you do?.... I hope Bill is listening?)

Using FlameRobin (not a problem basic but usable) and I just cannot get the syntax right for any Stored Procedures. (I have loads to bring over from SQl Server. I dont mind rewriting them but the syntax is doing my nut in!!)
Does anyone have any sample code? or even a PDF that explains Stored Procedure Syntax in FIrebird 2.0? Obviously the basic SQl query stuf i'm OK with but its the extra stuff in Firebird that is a puzzle such as the Set Term and Returns and Variables etc. If I delete them all then we get a wonderfully obtuse SQL error code = -104
Token unknown
No help files available as far as I can find out.


Many thanks


SET TERM ^ ;
 
CREATE PROCEDURE name 
 ( input_parameter_name < datatype>, ... ) 
RETURNS 
 ( output_parameter_name < datatype>, ... )
AS 
DECLARE VARIABLE variable_name < datatype>; 
BEGIN
  /* write your code here */ 
END^
 
SET TERM ; ^

Open in new window

0
Comment
Question by:AlanGlynSmith
4 Comments
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20419813
0
 
LVL 20

Accepted Solution

by:
hes earned 50 total points
ID: 20420849
Did you take a look at SQl Express ?

http://www.microsoft.com/sql/editions/express/default.mspx
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 20423089
you need this book before you go any further

http://www.ibphoenix.com/main.nfs?a=ibphoenix&s=1196973593:1978743&page=ibp_firebird_book

It's not cheap but it will save you literally weeks of time
0
 

Author Closing Comment

by:AlanGlynSmith
ID: 31413106
Doh! Brilliant, perfect solution. Why can we never see what's in front of our faces?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

792 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