Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ODBC driver does not support the requeste
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ODBC driver does not support the requeste

 Post Reply Post Reply
Author
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Topic: ODBC driver does not support the requeste
    Posted: 07 July 2003 at 1:37am

I got this error mesg. Using response.end, I found it's after this line of code. What's possible solution for this? Thanks.

sql = "SELECT emp_id, emp_privilege FROM intranet.citylink_employee WHERE emp_userid = '" & strUserID & "' AND emp_password = '" & strPassword & "' "

 rs.Open sql, conn, 3, 3

Screen shot - http://www.htmlforums.com/attachment.php?s=&postid=166892



Edited by ngaisteve1
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2003 at 11:13am

have you tried dropping the "3, 3" from the end of that line?

obviously you don't understand the meaning of them :-(, so just leave em off

Contribute to the working anarchy we fondly call the Internet
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2003 at 2:33pm
the 3,3 in the end are for cursor type and lock type

Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2003 at 7:01pm
It's true. I don't understand 3, 3 though I did read about it before. I just follow the existing code. Any simplest word to explain this cursor type and lock type? Thanks to MorningZ, it works after I remove it.
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2003 at 8:00pm
But then it return -1 for recordcount if I drop 3, 3
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2003 at 9:11pm

do this:

sql = "SELECT emp_id, emp_privilege FROM intranet.citylink_employee WHERE emp_userid = '" & strUserID & "' AND emp_password = '" & strPassword & "' "

rs.CursorLocation = 3
rs.Open sql, conn

and rs.RecordCount should work properly

Contribute to the working anarchy we fondly call the Internet
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2003 at 9:15pm
Big big thanks. It works. .
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.