my $DSN = 'driver={SQL Server};Server=server_name;database=database_na +me;uid=user;pwd=password;'; my $dbh = DBI->connect("dbi:ODBC:$DSN") or die $DBI::errstr\n";
Hope that helps,
etm117
UPDATE: If I recall correctly, the server_name needs to be the name of your ODBC connection defined on the machine you are running the code.
In reply to Re: dbd::ODBC command strings
by etm117
in thread dbd::ODBC command strings
by s_m_b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |