I have a simple Perl script that uses an ODBC DSN to connect across a network to a database server and do a query. Yet it fails every time, giving "CANNOT CONNECT."
The DSN works when I point it to the same database stored locally. I can also go to Excel and load the same database across the network using the same ODBC.
So the reason appears to be that, running the CGI script from Perl, that it is running as a shell and doesn't have login security authentication (even though I can browse manally).
So I believe, in order for this to work, i need to know eihter:
1. What is the name of the Username that the Perl script will attempt to log onto, so that I can give it access rights?
or
2. Can I have the script log onto the network drive first before connecting and get authentication that way?
much thanks,
bill rosman