|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
I'm using mySQL
I forgot to mention that I'm using mySQL
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
YoungStep,
That was it!! Hey it took a long time to get an answer but the first one was it. Thanks a heap. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Can't get objRS.recordcount!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|