Mahdi Sbeih wrote:
>Can anybody provide me with an example how
>to write //machine/path/to/dbase,
>I mean what do i need to put in the place
>of /path/to/dbsae ??
>
$db1 = DBI->connect('dbi::Informix://the_mc/home/dbowner/sedbase',...);
$db2 = DBI->connect('dbi:Informix://the_mc/idsdbase',...);
>Is this notation complient with IDS 7.x and up?
>
The first notation is only compatible with SE (and hence not IDS or
XPS). The second notation can be used with either SE or IDS (or XPS),
but is normally not used at all - you would say instead:
$db3 = DBI->connect('dbi:Informix:idsdbase@the_mc',...);
$db4 = DBI->connect('dbi:Informix:sedbase@the_mc',...);
Finally, note that although I've used 'the_mc' as an abbreviation for
'the machine', it would be more proper to say 'the database server
identified by the entry in the first column of the sqlhosts file', which
is why I used the shorthand.
--
Jonathan Leffler ([EMAIL PROTECTED], [EMAIL PROTECTED])
Guardian of DBD::Informix 1.00.PC1 -- see http://www.cpan.org/
#include <disclaimer.h>