in reply to How do I report the name of my application to MS-SQL Server?

You can specify it in your connect statement

my $dbh = DBI->connect('DBI:ODBC:dsn=x;app=ApplicationName',$login,$pa +ssword);