Loading DataSets and App Size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    Loading DataSets and App Size

    I have a test application that uses databinding to a table of about
    20,000 records. The SQL statement for the databinding is "SELECT *
    FROM tbl_CID_XRef". From this I can move forward and backward in the
    data, edit, add and delete records. It all works fine. There are two
    problems.

    The first is that it takes awhile for the app to load. The dataset is
    filling up with all the records. The second is that the app takes too
    much RAM.

    Do datasets have a paging feature? Where, for example, I could set it
    to a specific size and only that number of records get loaded into the
    dataset. Then when moving to a record that is not in that page it will
    get the next page.

    Or does all this have to be done manually? If so, could you give any
    code examples or documentation on this?

  • Ken Tucker [MVP]

    #2
    Re: Loading DataSets and App Size

    Hi,

    Here is a method that will work with sql server 2005



    Ken
    -----------------------
    "Paul" <pwh777@gmail.c om> wrote in message
    news:1128034472 .809929.53180@f 14g2000cwb.goog legroups.com...[color=blue]
    >I have a test application that uses databinding to a table of about
    > 20,000 records. The SQL statement for the databinding is "SELECT *
    > FROM tbl_CID_XRef". From this I can move forward and backward in the
    > data, edit, add and delete records. It all works fine. There are two
    > problems.
    >
    > The first is that it takes awhile for the app to load. The dataset is
    > filling up with all the records. The second is that the app takes too
    > much RAM.
    >
    > Do datasets have a paging feature? Where, for example, I could set it
    > to a specific size and only that number of records get loaded into the
    > dataset. Then when moving to a record that is not in that page it will
    > get the next page.
    >
    > Or does all this have to be done manually? If so, could you give any
    > code examples or documentation on this?
    >[/color]


    Comment

    • Paul

      #3
      Re: Loading DataSets and App Size

      Ken, thanks for your response. I should have mentioned that we are
      using SQL Server 2000. The link you gave me said that the solution
      given would not work with 2000. Any other ideas?

      Comment

      • Ken Tucker [MVP]

        #4
        Re: Loading DataSets and App Size

        Hi,

        Sorry there is no simple way to page the data with sql server 2000.


        Ken
        ----------------
        "Paul" <pwh777@gmail.c om> wrote in message
        news:1128049696 .718073.88360@g 44g2000cwa.goog legroups.com...[color=blue]
        > Ken, thanks for your response. I should have mentioned that we are
        > using SQL Server 2000. The link you gave me said that the solution
        > given would not work with 2000. Any other ideas?
        >[/color]


        Comment

        • Paul

          #5
          Re: Loading DataSets and App Size

          Could anyone provide some sample code for doing this in VB.NET using
          SQL Server 2000 as the back-end?

          Comment

          Working...