I am trying to connect to MS SQL server using Perl Script. Here is the Code.
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
#my $dbfile = "sample.db";
my $dsn = "dbi:ODBC:SQLServer:dpnsql";
my $user = "xxx";
my $password = "******";
my $dbh = DBI->connect($dsn, $user, $password,
{
PrintError => 0,
RaiseError => 1,
AutoCommit => 1,
FetchHashKeyName => 'NAME_lc',
}
);
$dbh->disconnect;
But I am getting the error as below
Please help me in this issue. Any new code is also appreciated.
TIA