Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADODB Connection help PLEASE!!!!!!

Status
Not open for further replies.

hopper

Programmer
Dec 5, 2000
27
0
0
US
I've been using Access 97 and am trying to convert my ASP front end to use Access 2000. I've encountered some problems with converting my code to use ADO objects. Well I managed to work through most of them but there seems to be one problem I keep encountering....
When I first make the connection, everything works fine. Then I close the connection in my code. The next time I need to open the connection again, I get an "Unspecified" error. If I wait for about 1-2 minutes, then the connection works again, but I must wait again before making another connection.... If anyone knows what I'm doing wrong I'd sure appreciate the help.

webserver - Win2K advanced w/ IIS 5
database - Access 2000

Thanks,
Scott
 
set conn=Server.CreateObject("ADODB.Connection")
conn.Open("SiteVisit")
set RS = Server.CreateObject("ADODB.recordset")
strSQL = "SQL string..."
RS.Open (strSQL), conn

'Read RS into an array

RS.Close
set RS=nothing
conn.Close
set conn=nothing

then work with the array leaving the conn closed until needed again.
 
Sorry, I'm using an ODBC system DSN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top