June 10th, 2003, 11:20 AM
Do I always need to write the physical path to my database in the connection string?
Coming from mysql and trying to get a hand on Firebird 1.5 rc3 I found a 'weird'
My connection string is like this:
string conn =
"Connection lifetime=30;" +
and my question is can't "Database=f:\\fire\\data\\fire.fdb;" be replaced
with an alias? Like "Database=fire;" instead of having to write the
physical path? Or this is the way it always should be and I just have a bad habbit?
June 11th, 2003, 02:58 AM
Re: Do I always need to write the physical path to my database in the connection string?
There is a configuration file, "aliases.conf", in Firebird folder, where you can add alias name and database full path.
Look also in "firebird.conf". You can restrict database acces to certain folders only and set up various parameters.
June 23rd, 2003, 06:10 PM
e: Do I always need to write the physical path to my database in the connection
You can edit the aliases.conf in the firebird install dir and include a alias. Use it in the connection string 192.168.0.10:alias