If you move your database file, don't forget to change the DSN!
Why create a DSN on any computer? It is just more to maintain and cause
problems. You should be able to adjust the $Con variable below to fit your
situation. If you succeed, your code will be more portable.
#---------------------------------------------------------------------------
---
# Connect to Integration Database
#---------------------------------------------------------------------------
---
my $Con = "Driver=SQL Server;" .
"Server=pipsqueak;" .
"Trusted_Connection=Yes;" .
"DATABASE=Infrastructure";
my $db1 = new Win32::ODBC($Con);
if (! $db1) {
&Log($LogFile, "Error connecting db1($Con): " . Win32::ODBC::Error());
exit;
}
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]