mwoolgar
asked on
ASP: Connection error '800a0e79' - Operation is not allowed when the object is open.
Hi
I'm having a problem with the 800a0e79 error.
Any suggestions would be great - cheers
Woolly
************************** ********** ********** ********** *****
The ASP file is as follows:
<%@ Language=VBScript %>
<!--#include file="connection.inc" -->
<%
conStr.ConnectionTimeout = 0
conStr.CommandTimeout = 0
conStr.Open 'see inside the include ="dsn=Autowired;uid=Autowi red;pwd=po lkado98t;"
cmdCommand.CommandType = 1
Set cmdCommand.ActiveConnectio n = conStr
cmdCommand.CommandText = "update [user] set sent=0"
cmdCommand.execute
%>
<html><body>
Sent flagged cleared for all users.
</body></html>
************************** ********** ********** ********** *
My Include files is:
<%
' FileName="Connection_odbc_ conn_dsn.h tm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
'below is an explicit connection
Dim conStr 'connection object
Dim strsql 'sql string
Dim cmdCommand
Dim objFSO, fileStream
Set cmdCommand = Server.CreateObject("ADODB .Command")
Set conStr = Server.CreateObject("ADODB .Connectio n")
conStr.Open "dsn=test;uid=me;pwd=;"
'''''''''''''''''''''''''' recordsets
set recSet = Server.CreateObject("ADODB .Recordset ")
set rsCount = Server.CreateObject("ADODB .Recordset ")
set rsCount_numRows = Server.CreateObject("ADODB .Recordset ")
Set rsUsers = Server.CreateObject("ADODB .Recordset ")
Set objFSO = Server.CreateObject("Scrip ting.FileS ystemObjec t")
%>
I'm having a problem with the 800a0e79 error.
Any suggestions would be great - cheers
Woolly
**************************
The ASP file is as follows:
<%@ Language=VBScript %>
<!--#include file="connection.inc" -->
<%
conStr.ConnectionTimeout = 0
conStr.CommandTimeout = 0
conStr.Open 'see inside the include ="dsn=Autowired;uid=Autowi
cmdCommand.CommandType = 1
Set cmdCommand.ActiveConnectio
cmdCommand.CommandText = "update [user] set sent=0"
cmdCommand.execute
%>
<html><body>
Sent flagged cleared for all users.
</body></html>
**************************
My Include files is:
<%
' FileName="Connection_odbc_
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
'below is an explicit connection
Dim conStr 'connection object
Dim strsql 'sql string
Dim cmdCommand
Dim objFSO, fileStream
Set cmdCommand = Server.CreateObject("ADODB
Set conStr = Server.CreateObject("ADODB
conStr.Open "dsn=test;uid=me;pwd=;"
''''''''''''''''''''''''''
set recSet = Server.CreateObject("ADODB
set rsCount = Server.CreateObject("ADODB
set rsCount_numRows = Server.CreateObject("ADODB
Set rsUsers = Server.CreateObject("ADODB
Set objFSO = Server.CreateObject("Scrip
%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Too bad I can't add anything I won't get points ;-)
-Jonthemoon