3
I have a file *.ini
which connects to my Firebird database, but now I need this file configured to connect to Postgresql
[IBConnection]
DriverName=Interbase
Database=192.168.1.30:C:\testes\impressoes.fdb
RoleName=RoleName
User_Name=sysdba
Password=masterkey
ServerCharSet=
SQLDialect=3
ErrorResourceFile=
LocaleCode=0000
BlobSize=-1
CommitRetain=False
WaitOnLocks=True
Interbase TransIsolation=ReadCommited
Trim Char=False
What I need is to find out what needs to be changed to connect with Postgresql instead of Firebird.
Inside the code is so the connection:
Connection with Devart:
But whenever I try to access some table to check if the connection is OK, comes the following error message:
I believe that he found my database, but I have no idea why he says that such a table does not exist
The error that he was showing was occurring due to the table being with the name all in uppercase letter, when putting in lowercase letter the error did not occur again but when I try to access some information of the bank it is accusing another error now:
However this Fmtbcdfield is not available as variable format, which I believe is since the error compares with the Integer format of the variable.
In some specific language?
– rray
@rray Actually, nowadays there is already an application that uses Firebird as a database, I did not touch the application but if I am not mistaken the language that was used was Delph, I will edit the question and put everything that is in the file . ini for you to have a better idea
– R.Santos
I think the change is that the server’s database and ip are in different fields. Still it’s hard to understand the question
– rray
@rray I recreated all the tables that existed inside this file
impressoes.fdb
in Postgresql, but I don’t know how to change the connection so that instead of continuing to save the information inside the Firebird database it will be saved in postgresql– R.Santos
What you want is for your system to stop connecting to Firebird and connect to Postgresql ? If so, it may be that your application does not work since it uses a component to access a Firebird database and not Postgresql.
– JcSaint
I believe that creating a new section (
[PGConnection]
) with the fields, Drivername, User_name, Password, Database (base name only) and Host (server ip) is sufficient but remember that the application should read this new pattern.– rray
It makes sense @Jcsaint probably within the application she is making the changes in the database. I will need to look at the application first. Thanks for the help
– R.Santos
I will try to make these changes @rray if it works put here.
– R.Santos
@rray there in Database you just said the name of the base, what would that be?
– R.Santos
That’s right, when looking at the application edit the question in more detail :)
– rray
@rray I was able to access the source code and changed the question to show where the connection is (I’m not sure if it is right there that the connection is determined) but from that image you would have some idea of what it would take to connect to Postgresql instead of to Firebird?
– R.Santos
I can’t say, I would try to look for something like 'postgres connection via dbexpress'.
– rray