DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    sam Guest

    different Query results for every refresh.


    Hi,
    Can you please help me.
    I wrote an ASP script in which i'm accessing the SQL server7.0 tables. One
    of the select statements, a very simple one, is getting different number
    of records every time i refresh. Number of records in the table are not changing.
    But only the records which are being retrived are changing. I mean sometimes
    it retrives 5 records and if you refresh the page immediately it will get
    30 records. I tried using different locks on the table when i'm querying,
    but in vain.

  2. #2
    Guest

    Re: different Query results for every refresh.


    Hi,

    What Cursor type you are using for the recordset? Try to use adOpenDynamic.


    "sam" <havalgi@hotmail.com> wrote:
    >
    >Hi,
    >Can you please help me.
    >I wrote an ASP script in which i'm accessing the SQL server7.0 tables. One
    >of the select statements, a very simple one, is getting different number
    >of records every time i refresh. Number of records in the table are not

    changing.
    >But only the records which are being retrived are changing. I mean sometimes
    >it retrives 5 records and if you refresh the page immediately it will get
    >30 records. I tried using different locks on the table when i'm querying,
    >but in vain.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links