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. General Programming
  3. .NET (Core and Framework)
  4. Connected & Disconnected architecture

Connected & Disconnected architecture

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharparchitecturetutorialquestion
6 Posts 3 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.
  • X Offline
    X Offline
    Xandip
    wrote on last edited by
    #1

    Hi everyone, Can anyone guide me thru this? I'm quite bit confused with the ADO.NET connected & disconnected architectures The working method is not the prob, but i just wanted to know the real SIGNIFICANCE of both. ie, if connected Arch is better than disconnected arch, then why do we need disconnected arch in ADO.NET Or Vice versa. I hope u guys got me.. Thanks in advace. "Nothing goes unknown, unless.... " i think u know the answer :)

    P 1 Reply Last reply
    0
    • X Xandip

      Hi everyone, Can anyone guide me thru this? I'm quite bit confused with the ADO.NET connected & disconnected architectures The working method is not the prob, but i just wanted to know the real SIGNIFICANCE of both. ie, if connected Arch is better than disconnected arch, then why do we need disconnected arch in ADO.NET Or Vice versa. I hope u guys got me.. Thanks in advace. "Nothing goes unknown, unless.... " i think u know the answer :)

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Disconnected architecture means that you retrieve the data and work with it without being connected to the database. Basically, this means that you aren't holding connection resources open, which makes applications much more scalable. If you are working on a web application, then you can't really work in any other way - it is impractical and undesirable to leave connections open in scenarios like this.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles | MoXAML PowerToys

      X 1 Reply Last reply
      0
      • P Pete OHanlon

        Disconnected architecture means that you retrieve the data and work with it without being connected to the database. Basically, this means that you aren't holding connection resources open, which makes applications much more scalable. If you are working on a web application, then you can't really work in any other way - it is impractical and undesirable to leave connections open in scenarios like this.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles | MoXAML PowerToys

        X Offline
        X Offline
        Xandip
        wrote on last edited by
        #3

        Hi man, Thanx for the reply. But i hv one more query. If disconnected architecture is more reliable and scalable than the connected one, then why do we need the Connected Arch? why does ADO.NET provide both of them..?

        The name is Sandeep

        J 1 Reply Last reply
        0
        • X Xandip

          Hi man, Thanx for the reply. But i hv one more query. If disconnected architecture is more reliable and scalable than the connected one, then why do we need the Connected Arch? why does ADO.NET provide both of them..?

          The name is Sandeep

          J Offline
          J Offline
          Jon_Boy
          wrote on last edited by
          #4

          You should use connected arch. for quickly reading data in a readonly manner (meaning each record is read one time and navigation to past records is not possible). Can be used to quickly fill controls, etc. Using data readers def has its place and is very quick when used appropriately.

          Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

          X 1 Reply Last reply
          0
          • J Jon_Boy

            You should use connected arch. for quickly reading data in a readonly manner (meaning each record is read one time and navigation to past records is not possible). Can be used to quickly fill controls, etc. Using data readers def has its place and is very quick when used appropriately.

            Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

            X Offline
            X Offline
            Xandip
            wrote on last edited by
            #5

            thanks buddy. i think i got it somewhat clear.

            kissdznuts wrote:

            Using data readers def has its place and is very quick when used appropriately.

            can u please give a scenario in which the above said is satisfied..?

            The name is Sandeep

            J 1 Reply Last reply
            0
            • X Xandip

              thanks buddy. i think i got it somewhat clear.

              kissdznuts wrote:

              Using data readers def has its place and is very quick when used appropriately.

              can u please give a scenario in which the above said is satisfied..?

              The name is Sandeep

              J Offline
              J Offline
              Jon_Boy
              wrote on last edited by
              #6

              A form could have a couple combo boxes that users cannot change the values of and each contains 50 items. You could use datareaders to very rapidly fill the combos. You might have to fill a collection or list object of some kind, you could initially fill the data quickly with a data reader. You wouldn't want to use a data reader and between each read perform a ton of checks and toggling UI properties, etc because you're keeping the connection alive. You want to use data readers in operations were the reads are very quick and then close the connection.

              Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

              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