Thomas Rohn wrote:
Take a look at DBD::ODBC it explains what to do in general.Hello, how do I address the data base with Perl? if someone has an example code of me, give he it to me please: -) first it goes data reading in and reading out.
I use this to connect to the database:
$dbh = DBI->connect_cached($sid, $user, $passwd,
{
AutoCommit=>0,
RaiseError=>0,
PrintError=>0,
LongReadLen=>10000,
odbc_ignore_named_placeholders=>1,
}
);
Where sid is: dbi:ODBC::ZDB
^
Note the double :: it makes the driver connect directly to sapdb without consulting a DSN table, this only works if DBD::ODBC is compiled directly against the SAP DB and you are not using a driver manager.
--
Regards Flemming Frandsen - http://dion.swamp.dk
PartyTicket.Net co founder & Yet Another Perl Hacker
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general
