Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Error unsuppored lock type w/mysql
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  12:25:31  Show Profile  Send bobbart an ICQ Message
ADODB.Recordset.1 error '80020009'

Unsupported Lock Type.

/forum/default.asp, line 112



'## Forum_SQL
strSql = "SELECT MO.FORUM_ID, ME.MEMBER_ID, ME.M_NAME " & _
" FROM " & strTablePrefix & "MODERATOR MO" & _
" , " & strMemberTablePrefix & "MEMBERS ME" & _
" WHERE (MO.MEMBER_ID = ME.MEMBER_ID )" & _
" ORDER BY MO.FORUM_ID, ME.M_NAME"

Set rsChk = Server.CreateObject("ADODB.Recordset")
LINE 112-->rsChk.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

if rsChk.EOF then
recModeratorCount = ""
else
allModeratorData = rsChk.GetRows(adGetRowsRest)
recModeratorCount = UBound(allModeratorData,2)
end if

rsChk.close
set rsChk = nothing

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  12:30:39  Show Profile
windows server, or unix/linux server?

What version of MySQL ?
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  12:59:40  Show Profile  Send bobbart an ICQ Message
Its on a linux server with Chili!ASP. MySQL 3.23.36
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  13:14:17  Show Profile
It should be supported:

http://www.chilisoft.com/caspdoc/360docs/html/ado_recordset_object_open_method.htm

It's actually the default setting according to that page.
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  13:41:16  Show Profile  Send bobbart an ICQ Message
I am contacting my host. I hope that they may have an answer.

If anyone else can help please do.
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  20:34:48  Show Profile  Send bobbart an ICQ Message
Well he stated that there should be no problems. He suggested calling open after I am not sure if I should do that.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  20:38:30  Show Profile
try changing it to this:

rsChk.open strSql, my_Conn, 0, 1, &H0001


if you still get the error try changing it to this:

rsChk.open strSql, my_Conn
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  20:45:44  Show Profile  Send bobbart an ICQ Message
ok I did the 2nd option and it then found another line with it in it. Am I going to have to go over all the pages and change this?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  20:52:08  Show Profile
so the first line caused the same error?

If so, then yes, that is what you'll need to do. If you have Windows 2000 you can use the search option from your start menu to search for all *.asp files in the directory where you have the forum files. In the "containing text" box put:

adOpenForwardOnly, adLockReadOnly, adCmdText
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  20:54:05  Show Profile  Send bobbart an ICQ Message
**** that sucks...

Do you know why this is not working?
And whats going to be effected? I am a novice with this and compleatly new to mysql and hosting on a linux system
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  21:50:24  Show Profile
did you try this:

rsChk.open strSql, my_Conn, 0, 1, &H0001

did you get an error with it?
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  21:52:07  Show Profile  Send bobbart an ICQ Message
yep I still got the error
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  22:36:06  Show Profile  Send bobbart an ICQ Message
Ok I set all the pages back to there original state. Of coure the error was there again.
I replaced it with rsChk.open strSql, my_Conn, 0, 1, &H0001
And it then found another line with the same error. So I guess it is taking this line. It came up again so I changed it to rs.open strSql, my_Conn, 0, 1, &H0001
And it came up with the other error again.

So now what? Do we have any idea whats causing this?

Edited by - bobbart on 19 August 2002 22:40:58
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  22:42:23  Show Profile
just keep fixing the errors until there aren't any more on that page. this is on default.asp right? And the errors are on different lines each time?
Go to Top of Page

bobbart
Junior Member

USA
163 Posts

Posted - 19 August 2002 :  22:52:36  Show Profile  Send bobbart an ICQ Message
There were 2 on the default page.

Line 112 rsChk.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

When I replace this with rsChk.open strSql, my_Conn, 0, 1, &H0001

I get this one

Line 165 rs.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

And if I relace this line with
rs.open strSql, my_Conn, 0, 1, &H0001

I get this one
ADODB.Recordset.1 error '800a0bb9'

The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.

/forum/default.asp, line 170

Line 170 --> allCategoryData = rs.GetRows(adGetRowsRest)





Edited by - bobbart on 19 August 2002 22:57:28
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  23:05:43  Show Profile
can you try changing that to:

allCategoryData = rs.GetRows
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07