Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old June 24th, 2004, 01:15 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

hello siver_cuts ,

For getting the row count, you need to use adOpenStatic as the curser set. i.e. like below.

dim rst
set rst=Server.CreateObject("ADODB.RecordSet")
rst.CursorType=adOpenStatic
rst.Open qry, cnn
if(not(rst.Eof or rst.Bof)) then
    Response.Write("This recordset contains : " & rst.recordcount & " number of records<br>")
end if
Reply With Quote
  #22 (permalink)  
Old June 24th, 2004, 03:43 AM
Authorized User
 
Join Date: Jun 2004
Location: , , India.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

hey madhu,

thanks .. it worked with the RECORDSET property ...

but it is still not working with GETCOUNT method ..

any ideas why??

Sudhan.

Reply With Quote
  #23 (permalink)  
Old June 24th, 2004, 03:54 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi hellosnv,

I think I am lost you now. I am not sure how your system is set up, and where the problem arises. Are you using Integrated Security? Anonymous access maybe? And is the object configured to run under a special identity, or is it running in the caller's context? Can you describe in a bit more detail how your setup looks like, and what you're trying to accomplish?
And if you do, can you start a new thread for it? Somehow this thread is actually about two different issues, which makes it hard to follow.

To silver_cuts:

What makes you think there is a GETCOUNT method? What object is exposing that method? It probably doesn't work because it is not a valid method of the objects I know.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: The Bends by Radiohead (Track 2 from the album: The Bends) What's This?
Reply With Quote
  #24 (permalink)  
Old June 24th, 2004, 05:20 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

hello Sudhan,
Actually what is this GETCOUNT method ? If this is some method defined in a class of your own, you need to change this method.

Or are you using a COM object for handling DB related operations ? I think, then that needs to be changed.

Anyway, ADODB recordset will give the count only when curser set is adOpenStatic.
Reply With Quote
  #25 (permalink)  
Old June 24th, 2004, 06:22 AM
Authorized User
 
Join Date: Jun 2004
Location: , , India.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

Hi Madhu,

well i came across the GETCOUNT method in MSDN documentation .. in MSDN it is stated to be a method of the RECORDSET object ...

anyway i tried a lot but cant find a way to use it ... and i am completely happy with the RECORDCOUNT property ...

tell me more if you get any information on the GETCOUNT method ...

ofcourse i have an old version of MSDN in here ... jan 2001

Sudhan.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript runtime (0x800A0005) mail1 Classic ASP Basics 4 March 27th, 2008 03:42 PM
Microsoft VBScript runtime (0x800A0005) Swetz Classic ASP Components 0 May 14th, 2006 03:44 AM
Microsoft VBScript runtime (0x800A000D) stitch Classic ASP Basics 1 April 27th, 2006 02:23 PM
Microsoft VBScript runtime (0x800A0009) ppenn Classic ASP Databases 2 December 15th, 2003 01:15 PM



All times are GMT -4. The time now is 08:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.