【问题标题】:How can I connect to a Lotus Notes database (*.nsf) with Perl and DBI?如何使用 Perl 和 DBI 连接到 Lotus Notes 数据库 (*.nsf)?
【发布时间】:2010-10-12 19:47:36
【问题描述】:

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

【问题讨论】:

  • 啊,我希望 Lotus Notes 已经折叠了。

标签: perl odbc lotus-notes


【解决方案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;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多