views:

78

answers:

4

I have FB1.5 and FB2.1 installed in my computer. I´ve written a script to swich from one instance to another. It runs all ok, I access FB1.5 and 2.1 databases normally.

My issue is, when I´m running 2.1 the error messages are incorrect, the following example illustrates the problem

Invalid token.
Dynamic SQL Error.
SQL error code = @1.
Token unknown - line @1, column @2.

It is clear to me that FB has this message and somewhere it replaces the @1 @2 with real information. My question is, what is broken that is preventing FB from replacing @1 and @2 correctly?

A: 

Check the firebird.msg file. Firebird 2.1 must not be using the message file from version 1.5.
Both server and client need to see the correct version.

Douglas Tosi
+1  A: 

useful link about Firebird and multiple server

I think second way is better but both works.

Hugues Van Landeghem
A: 

The error messages format was recently changed, so you can expect this problem happening if you are using tools from newest FB versions and have an old firebird.msg installed (or vice-versa). In Windows, seems that Firebird tools will search for firebird.msg looking at the registry key.

WarmBooter
A: 

Another reason of this situation is using old client library with new server (ie using v2.0.x client with v2.5.x server). Notice that firebird installer may copy client library also into %WINDIR% (%WINDIR% is C:\WINDOWS default) with name of fbclient.dll or gds32.dll depend on your installing options.

Ömür Ölmez