Hm.  Sorry about that.

Anyhoo, I'm connecting to an OLE DB like so:

 $dbh =
DBI->connect("dbi:$$config{dbi}:PROVIDER=$$config{provider};SERVER=$$con
fig{dbserver};UID=$$config{uid};PWD=$$config{password};DATABASE=$$config
{database}") || return "Couldn't connect.";

And if there's a problem, like a timeout, What is returned to the
browser is:

DBI->connect(PROVIDER=SQLOLEDB;SERVER=myserver;UID=uid;PWD=pwd;DATABASE=
mydb) failed: Can't connect to
'PROVIDER=SQLOLEDB;SERVER=myserver;UID=uid;PWD=pwd;DATABASE=mydb': 
Lasterror:       -2147217843: OLE exception from "Microsoft OLE DB
Provider for SQL Server":

The problem is not so much that I can't connect, the problem is that if
I can't, I don't want to return the db credentials to the browser.  How
can I turn this off?


Joel Gwynn




_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to