2010-10-12 75 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; 
相关问题