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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database connection string

Status
Not open for further replies.

Ouch

Programmer
Jul 17, 2001
159
GB
can anyone see anything wrong with this connection string.

i works ok sometimes but then sometimes if you refresh the page in comes up with a connection error and you have to wait about 15 secs.

i have done 'set rs = nothing' at the end of my page


<%
' Connection begin
Set dbconn = Server.CreateObject(&quot;ADODB.Connection&quot;)
' Database connection string
strConn = &quot;DRIVER=Microsoft Access Driver (*.mdb);DBQ=&quot;& Server.MapPath(&quot;weblearn.mdb&quot;)
dbconn.open strConn
' Connection end
%>
 
try this
strConn = &quot;DRIVER=Microsoft Access Driver (*.mdb);DBQ=&quot;& Server.MapPath(&quot;weblearn.mdb&quot;) & &quot;;&quot;
[bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
You said that you close the Recordset at the end of your page. But do you also close that database connection by doing a dbconn.close? -Phil
fillup07@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top