Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. What is The Effective Way....

What is The Effective Way....

Scheduled Pinned Locked Moved Database
questiondatabasesysadmin
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohamad Al Husseiny
    wrote on last edited by
    #1

    I want to return a larg set of records from database server to the client tier -win forms- so the question 1-what is the effective way to do this? 2- is it differ if they connected via Wan or via the Internet thanks in advace

    M 1 Reply Last reply
    0
    • M Mohamad Al Husseiny

      I want to return a larg set of records from database server to the client tier -win forms- so the question 1-what is the effective way to do this? 2- is it differ if they connected via Wan or via the Internet thanks in advace

      M Offline
      M Offline
      Marek Grzenkowicz
      wrote on last edited by
      #2

      Two very basic advices: 1. return ONLY the data that you really need (do not use SELECT * ...), 2. return all data using ONE batch to minimize the network traffic; don't do something like:

      do
        [your query]
      while (...)

      modified on Monday, August 30, 2010 6:42 AM

      M 1 Reply Last reply
      0
      • M Marek Grzenkowicz

        Two very basic advices: 1. return ONLY the data that you really need (do not use SELECT * ...), 2. return all data using ONE batch to minimize the network traffic; don't do something like:

        do
          [your query]
        while (...)

        modified on Monday, August 30, 2010 6:42 AM

        M Offline
        M Offline
        Mohamad Al Husseiny
        wrote on last edited by
        #3

        thanks chopeen for your reply of course i will return the data that i realy need so the question at the case that i really need many records when you work with disconected data you may have situation like this you want to create dataset which have many records or if you implement your business objects so the question again ho to do this effectively thanks again i need your advices gurus

        G 1 Reply Last reply
        0
        • M Mohamad Al Husseiny

          thanks chopeen for your reply of course i will return the data that i realy need so the question at the case that i really need many records when you work with disconected data you may have situation like this you want to create dataset which have many records or if you implement your business objects so the question again ho to do this effectively thanks again i need your advices gurus

          G Offline
          G Offline
          Guillermo Rivero
          wrote on last edited by
          #4

          You can use a DataSet object. It works perfect on disconected enviroments. Also look information on the DataAdapter object. The DataAdapter, will translate the modifications done to your DataSet to the DataBase. :) Free your mind...

          M 1 Reply Last reply
          0
          • G Guillermo Rivero

            You can use a DataSet object. It works perfect on disconected enviroments. Also look information on the DataAdapter object. The DataAdapter, will translate the modifications done to your DataSet to the DataBase. :) Free your mind...

            M Offline
            M Offline
            Mohamad Al Husseiny
            wrote on last edited by
            #5

            Thanks Guillermo Rivero it seems that i did not explain what i need exactly i know that i can use dataset on disconected enviroments but Is it will work fine if the returned records = 1000000 ? for example. in situation i need this data

            G 1 Reply Last reply
            0
            • M Mohamad Al Husseiny

              Thanks Guillermo Rivero it seems that i did not explain what i need exactly i know that i can use dataset on disconected enviroments but Is it will work fine if the returned records = 1000000 ? for example. in situation i need this data

              G Offline
              G Offline
              Guillermo Rivero
              wrote on last edited by
              #6

              Well, I once did load a DataSet with 2 million records and it worked fine. Each record had 5 fields. ;) Free your mind...

              M 1 Reply Last reply
              0
              • G Guillermo Rivero

                Well, I once did load a DataSet with 2 million records and it worked fine. Each record had 5 fields. ;) Free your mind...

                M Offline
                M Offline
                Mohamad Al Husseiny
                wrote on last edited by
                #7

                Thanks Guillermo Rivero for your help thats ok for me but i want to ask you another question do you know good resources (books - web sites...) about Designing distrebuted application in .net that have real world examples? i have some books about remoting and webservice but they are teaching technology with out real world examples . thanks in advance

                G 1 Reply Last reply
                0
                • M Mohamad Al Husseiny

                  Thanks Guillermo Rivero for your help thats ok for me but i want to ask you another question do you know good resources (books - web sites...) about Designing distrebuted application in .net that have real world examples? i have some books about remoting and webservice but they are teaching technology with out real world examples . thanks in advance

                  G Offline
                  G Offline
                  Guillermo Rivero
                  wrote on last edited by
                  #8

                  Ok, I read somewhenre in msdn.microsoft.com[^] something about Application Blocks. And I'm almost sure that there is Distributed Application Block. There you can have guidelines on how to design Distributed Applications. The other way is design, your own. I prefer the second one... ;) Free your mind...

                  M 1 Reply Last reply
                  0
                  • G Guillermo Rivero

                    Ok, I read somewhenre in msdn.microsoft.com[^] something about Application Blocks. And I'm almost sure that there is Distributed Application Block. There you can have guidelines on how to design Distributed Applications. The other way is design, your own. I prefer the second one... ;) Free your mind...

                    M Offline
                    M Offline
                    Mohamad Al Husseiny
                    wrote on last edited by
                    #9

                    thanks again Guillermo Rivero i really appreciate your interact with my quetsion i will post two qestion about paging May you take a look about them?

                    J 1 Reply Last reply
                    0
                    • M Mohamad Al Husseiny

                      thanks again Guillermo Rivero i really appreciate your interact with my quetsion i will post two qestion about paging May you take a look about them?

                      J Offline
                      J Offline
                      jscorales
                      wrote on last edited by
                      #10

                      To: Mohamad Al Husseiny Hi there. Have you got a solution to your problem already? Because im encountering that same problem. if you already have the solution please it would help me a lot thanks.:)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups