English 中文(简体)
Sybase-Perl DBLib绘图,第4条论据与数字数据系统连接
原标题:Sybase-Perl DBLib mapping of fourth argument to DBI Connect

I am converting a perl script from DBlib to DBI for sybase connections. I am Implementing kerberos. what is the function of the fourth argument (the name of the perl script) in the DBLib connection and equivalent in DBI? eg. DBLib Connection:

$dbh     = new Sybase::DBlib $USER, $PASS, $SRV, "file.pl";

This is equal to -

$dsn = "dbi:sybase:server=$SRV;kerberos=$kerbprincipal;字母Name=file.pl";    
$dbh = DBI->connect($dsn,"","");

我在以下几处发现了DBI 字母Name from cpan.org

字母Name

具体列出在间谍中将显示的这种联系的名称(见方案表格——名称栏)。


Answer: The fourth argument in dblib and 字母Name in dbi sets the program_name column in sysprocess table. this can be used in logs and monitoring the database.

最佳回答

我认为,在MSQ服务器中的应用连接特征基本上在玩具加工桌上结束(因此,SQ和服务器开始使用Sybase)。 我认为,Sybase中的申请名称:DBlib相当于DBD中的“新”:Sybase。 我现在不能证明这一点,因为我不再有Sybase。

问题回答

暂无回答




相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签