Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 10th, 2003, 11:20 AM
fetcher fetcher is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Portugal
Posts: 106 fetcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 11 m 33 sec
Reputation Power: 6
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'
thing
My connection string is like this:
string conn =
"User=xxxx;" +
"Password=xxxxx;" +
"Database=f:\\fire\\data\\fire.fdb;" +
"DataSource=localhost;" +
"Port=3050;" +
"Dialect=3;" +
"Charset=ISO8859_1;" +
"Role=;" +
"Connection lifetime=30;" +
"Pooling=true;" +
"Packet Size=8192";

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?

Reply With Quote
  #2  
Old June 11th, 2003, 02:58 AM
badukist badukist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 62 badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 3 m 18 sec
Reputation Power: 7
Send a message via Yahoo to badukist
Re: Do I always need to write the physical path to my database in the connection string?

Quote:

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? [/B]


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.

Reply With Quote
  #3  
Old June 23rd, 2003, 06:10 PM
juarezr juarezr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 3 juarezr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Do I always need to write the physical path to my database in the connection string?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway