Reply LinkBack Thread Tools Search this Thread
Old 07-02-2008, 16:25   #1 (permalink)
simonruk1
Dyslexic! Are You?
 
Join Date: Jan 2007
Location: Warrington
Posts: 57
ADODB.Connection error '800a0e78'

Hi I am new to ASP and I am getting this error:

ADODB.Connection error '800a0e78'

Operation is not allowed when the object is closed.

/members/asp/util.asp, line 67


the code line in the util.asp looks like this:

Sub CreateVisitorID(dcnDB)

Dim rsData
Dim strSQL

If Request.Cookies("VisitorID") <> "" Then Exit Sub

strSQL = "INSERT INTO Visitors " & "(VisitDate, Host) " & "VALUES (" & "#" & Date & " " & Time & "#, " & "'"

If Request.ServerVariables("REMOTE_HOST") <> "" Then
strSQL = strSQL & Request.ServerVariables("REMOTE_HOST")
Else
strSQL = strSQL & Request.ServerVariables("REMOTE_ADDR")
End IF

strSQL = strSQL & "')"

Application.Lock
dcnDB.Execute strSQL (this is line 67)
strSQL = "SELECT Max(VisitorID) FROM Visitors"
Set rsData = dcnDB.Execute(strSQL)
Response.Cookies("VisitorID") = rsData(0)
Application.Unlock

rsData.Close

End Sub


Can any one please help
  Reply With Quote
Old 08-02-2008, 04:31   #2 (permalink)
proc355
Trailer Trash™
 
proc355's Avatar
 
Join Date: Sep 2006
Posts: 851
it means:

ASP is proprietary shite.

just ignore me, everyone else does.
__________________
meh.
  Reply With Quote
Old 09-02-2008, 10:42   #3 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
sounds like the DB connection is closed.. try calling "open" on dcnDB before you try to execute.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8