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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 Chili and changes to recordset opening
 Forum Locked  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 August 2002 :  13:52:01  Show Profile  Send ruirib a Yahoo! Message
It looks like Chili!ASP doesn't handle the new way of opening recordsets too well.

http://forum.snitz.com/forum/topic.asp?whichpage=4&TOPIC_ID=32014#164523

It seems it is need to change this:


rsChk.open strSql, my_Conn, adOpenForwardOnly, adLockOptimistic, adCmdText


to this


rsChk.open strSql, my_Conn


I don't know whether this is an issue with that specific configuration (Chili/Access) but I've been getting some similar problems with some Access users. Maybe it's an drivers/MDAC issue (MDAC in the case of Windows machines with Access).

I posted this only for reference. It may be too soon to do something. This is very annoying since I think the performance gains justify the decision taken to specify the parameters, but it sure has brought some problems.

Maybe wait a little more to see how this goes and if we can have a better explanation for this behavior.


Snitz 3.4 Readme | Like the support? Support Snitz too

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 August 2002 :  14:24:12  Show Profile
This might be remedied with using the inc_adovbs.asp file instead of the METADATA typelib.

But, Davio did some testing on a Chili!ASP/Linux configuration using:

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

and had no problems at all.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 August 2002 :  14:28:08  Show Profile  Send ruirib a Yahoo! Message
Ok Richard, I'll advise that then and see if that fixes it.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 August 2002 :  14:33:29  Show Profile
here is a link to the file:

http://kinser.121hosts.net/files/inc_adovbs.zip

in config.asp on line #1

replace this:

<!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="ADODB Type Library" -->



with this:

<!--#INCLUDE FILE="inc_adovbs.asp"-->

Go to Top of Page

Daudi
Starting Member

Virgin Islands (United Kingdom)
22 Posts

Posted - 22 August 2002 :  15:37:21  Show Profile
ok, now that I've done this, I kinda can start really trying to debug the code, the vb compiler has a problem with this line in the new include file

14 Const adOpenForwardOnly = 0

I'm going to comment it out and see what happens since this is what you made me do earlier. Will get back to you.
Go to Top of Page

Daudi
Starting Member

Virgin Islands (United Kingdom)
22 Posts

Posted - 22 August 2002 :  15:56:58  Show Profile
What exactly are these constants they are all giving problems on my server. Are there any special components that should be installed to allow access to them
Go to Top of Page

Daudi
Starting Member

Virgin Islands (United Kingdom)
22 Posts

Posted - 22 August 2002 :  16:00:54  Show Profile
oh my new error says name redefined

I commented out the calls for the adforward and adLockReadOnly AdOpenForwardOnly in the rs.Open statement and then it gave the same error for adPessi...
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 August 2002 :  16:33:49  Show Profile
if you are getting the "Name Redefined" error then you don't need to include the file. Just remove the include for it from line #1 of config.asp, though the "on error resume next" should ignore those errors.
Go to Top of Page

Daudi
Starting Member

Virgin Islands (United Kingdom)
22 Posts

Posted - 22 August 2002 :  17:10:39  Show Profile
now I have a new problem it says It is already opened exclusively by another user, or you need permission to view its data.
/Forum/inc_header.asp, line 106

I commented out the statement, which seemed to get rid of that problem, but then I got another problem saying

Operation is not allowed when the object is closed.
/Forum/inc_func_common.asp, line 862
Go to Top of Page

Daudi
Starting Member

Virgin Islands (United Kingdom)
22 Posts

Posted - 22 August 2002 :  17:13:58  Show Profile
The object to open here should be myconn. so I put the open statement here. And I went straight back to the problem I had initially.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 August 2002 :  17:23:36  Show Profile
you are obviously having a problem unrelated to the bug report here, please start a new topic in the Help: General / Current Version (v3.4) forum.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 23 August 2002 :  04:12:17  Show Profile
ruirib,

I have setup slackware linux and installed Apache/MySQL/Chili!Soft ASP on it.

Server software shows as:

Apache/1.3.19 (Unix) Chili!Soft-ASP/3.6.2

If I don't use the inc_adovbs.asp include, I get an error about an unsupported lock type. But, if I use the inc_adovbs.asp include, then everything works like it should, I don't get any errors.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 August 2002 :  04:33:26  Show Profile  Send ruirib a Yahoo! Message
Ok, Richard, thx for the info. I'll advise it then .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

trazman
New Member

Sweden
79 Posts

Posted - 23 August 2002 :  06:35:58  Show Profile  Visit trazman's Homepage
Do you have a DSN or MySQL connection RickardKinser?
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 23 August 2002 :  08:39:14  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
If I don't use the inc_adovbs.asp include, I get an error about an unsupported lock type. But, if I use the inc_adovbs.asp include, then everything works like it should, I don't get any errors.


Does this mean you'll be changing the code to include inc_adovbs.asp or adovbs.inc? I have other scripts that seem to use the library also, but it doesn't look like the asp version has the entire library.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 23 August 2002 :  11:29:05  Show Profile
quote:
Originally posted by trazman

Do you have a DSN or MySQL connection RickardKinser?

MySQL connection. I'll see if I can figure out how to setup a DSN and test with that too. I know how to setup a DSN on a Windows Machine, but Linux is still fairly new to me.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07