Solved

Firbird. SQL

Posted on 2007-12-06
4
682 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

813 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

15 Experts available now in Live!

Get 1:1 Help Now