|
Here's another code change, but this one is temporary, and you want to turn it off afterwards.
response.write("Opening database<br />")
connection.Open DSN
response.write("Opening recordset<br />")
Recordset.Open SQL,Connection
response.write("Reading data<br />")
I think you get the point. Since I don't know how to run asp code in debug mode and set breakpoints, don't even know if that's possible ( go .net ! ), some trace code will let you know how far it got before dieing.
Also, my asp is super rusty, but try adding making the first line
on error resume next
or
on error goto errorHappened:
and then however you catch it, response.write the err message. You'll need to play around like I said, because I stopped using vb script years ago and don't remember exactly all the syntax. But that should get you closer to the solution.
Is it an Access or SQL database? You might try using a connection string instead of a DSN. You can put that in an include file so you don't have a lot to manage, but that clears NTFS permissions.
Last edited by Learning Newbie; 06-07-2007 at 03:17 PM..
Reason: typo
|