如何使用Perl和DBI连接到Lotus Notes数据库(* .nsf)?

时间:2010-10-12 19:47:37

标签: perl odbc lotus-notes

我有一个需要连接到Lotus Notes数据库的Perl / DBI程序。安装NotesSQL后,该程序可以正常工作,但会一直提示我输入Notes密码。有没有办法以编程方式传递Notes标识和密码?我正在使用ActiveState Perl 5.8.8,Notes 8.5和NotesSQL 8.0。

1 个答案:

答案 0 :(得分: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;