2010-10-12 94 views
1

我有一個需要連接到Lotus Notes數據庫的Perl/DBI程序。安裝NotesSQL後,程序可以正常工作,但會一直提示我輸入Notes密碼。有沒有辦法以編程方式傳遞Notes ID和密碼?我使用的是ActiveState Perl 5.8.8,Notes 8.5和NotesSQL 8.0。如何使用Perl和DBI連接到Lotus Notes數據庫(* .nsf)?

+0

啊我希望的Lotus Notes將只折了。 – vol7ron 2010-10-12 22:05:58

回答

1

DBI->connect

$dbh = DBI->connect($data_source, $username, $password) 
     or die $DBI::errstr; 

$dbh = DBI->connect($data_source, $username, $password, \%attr) 
     or die $DBI::errstr;