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.