CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2001
    Posts
    49

    any database experts here?

    We were using MSACESS in our application before and our application used Multiple recordset from the same table. Recordset Refresh interval in MSACESS is 5 seconds. So we did not have problem with the multiple recordset getting other recordset changes.

    Now we migrate to SQL server , we are opening recordsets as adDynamicSet and it is not reflecting the changes happening in the table. What is the default recordset refresh interval in sql server ado provider and is their any method to force the refresh in ADO. Anyone knows answer for this issue????/






  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: any database experts here?

    try

    rs.Open SQL,COnnection,adOpenDynamic, adLockOptimistic

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    13

    Re: any database experts here?

    I tried to do some testing on this issue. My ADO recordset was updated automatically only when I used rs.CursorType = adOpenDynamic AND rs.CursorLocation = adUseServer. By automatic update I mean that changes made in one instance of my application were visible in another instance of the application. I used: TextBox + Microsoft ADO Data Control 6.0 + SQL Serever 2000 (Northwind database)


  4. #4
    Join Date
    Feb 2001
    Posts
    49

    Re: any database experts here?

    We use our recordset for a lookup search in 2 tables which hold so much data. This look up takes place in 33,000+time in each thread. Before that I used plain OLEDB interfaces and it worked fine. Now we are using ADO find method. If I open the recordset with serverside cursor as dynamicset, my SQL server getting hammered ( it is taking 50% of the cputime). But if i use clientcursor beformance is excellent only problem is the refresh. Everytime I cant open and close the table or make query in SQL server. I just want lookup as part of my recordset not in SQL server. Anyone knows any techniques, I dont understand why dynamicset not reflecting other user( process) changes regardless of the server or client side cursor. These dynamic recordsets need to be updated by the ADO provider, otherwise what is the difference from snapshot?.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured