Steve Peacocke wrote:
I've been playing around with that this afternoon. You can use Aliases
for the database, and named servers for the database server. This
means that the database can be moved anywhere (you only have to change
the pointer to the Alias) or the whole server can be replaced with
another IP address. So long as it has the same Server name, there will
be no changes to the connection - and no changes to the code.

Of course, you can also load the database details from an ini file on
your program's startup - this means that you can have a play database
for development, a test database for testing, and a live database,
with no code changes.

And you can put the user authentication data into the database itself instead of per server instance, so that makes it even easier. Point.


--
Richard Vowles, Product Evangelist
Developers Inc Ltd (for Delphi, C++ Builder, JBuilder, InterBase)
web. http://www.developers-inc.co.nz
ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384, skype. 
<callto:rvowles/>, LinkedIn
currently working on: delphi for php, bds2006 ECO app, Rails, InterBase how to 
use

begin:vcard
fn:Richard Vowles
n:Vowles;Richard
org:Developers Inc Ltd
email;internet:[EMAIL PROTECTED]
title:Product Evangelist
tel;work:+64-9-3600231
tel;fax:+64-9-3600384
tel;cell:+64-275-467747
note:skype: rvowles
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to