SunQuest
 
           General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 9th, 2004, 11:51 PM
jorge13 jorge13 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: New Jersey, USA
Posts: 6 jorge13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Can't get objRS.recordcount!!

Hello. I'm simply trying to get the recordcount of a query. I've set my cursors properly (client-side) and I still get -1. This is part of my code:

sql = "SELECT * FROM subCatTbl"
objRS.CursorType = adOpenStatic
set objRS=objConn.Execute(sql)
response.write objRS.recordcount

I get -1.

Can anyone please help.

Thanks.

Reply With Quote
  #2  
Old January 9th, 2004, 11:54 PM
jorge13 jorge13 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: New Jersey, USA
Posts: 6 jorge13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm using mySQL

I forgot to mention that I'm using mySQL

Reply With Quote
  #3  
Old January 23rd, 2004, 09:56 AM
YoungStep YoungStep is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 YoungStep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I had the same problem. In your connection specific the CursorLocation to adUserClient (3). For some strange reason, mySQL does not support Server Side Cursors, and by default, this is the Cursor Type used by ASP.

This took me four hours to find, hope you have more luck than i did.

Reply With Quote
  #4  
Old January 24th, 2004, 08:06 AM
jorge13 jorge13 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: New Jersey, USA
Posts: 6 jorge13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

YoungStep,

That was it!! Hey it took a long time to get an answer but the first one was it. Thanks a heap.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Can't get objRS.recordcount!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway