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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. What is special about 'Asynchronous Processing=true' in the connection string?

What is special about 'Asynchronous Processing=true' in the connection string?

Scheduled Pinned Locked Moved Database
questioncsharp
3 Posts 3 Posters 2 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.
  • R Offline
    R Offline
    Rob Philpott
    wrote on last edited by
    #1

    This allows you to execute commands asynchronously (ADO 2) using BeginXXX and EndXXX in .NET in the traditional way. But, if you want Async access, you could just use multiple threads for that (probably using seperate connections). What does this entry in the connection string actually do? Is it a case of allowing more than one command to execute at a time against a single connection?

    Regards, Rob Philpott.

    M L 2 Replies Last reply
    0
    • R Rob Philpott

      This allows you to execute commands asynchronously (ADO 2) using BeginXXX and EndXXX in .NET in the traditional way. But, if you want Async access, you could just use multiple threads for that (probably using seperate connections). What does this entry in the connection string actually do? Is it a case of allowing more than one command to execute at a time against a single connection?

      Regards, Rob Philpott.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Absolutely no idea, never used it, never looked into it, was not even aware it existed. I have not looked at a connection string for many years. I wonder if I am missing something?

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • R Rob Philpott

        This allows you to execute commands asynchronously (ADO 2) using BeginXXX and EndXXX in .NET in the traditional way. But, if you want Async access, you could just use multiple threads for that (probably using seperate connections). What does this entry in the connection string actually do? Is it a case of allowing more than one command to execute at a time against a single connection?

        Regards, Rob Philpott.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Rob Philpott wrote:

        What does this entry in the connection string actually do?

        Found some good explanation (with usage scenario's) on MSDN[^];

        MSDN:

        In previous versions of the .NET Framework it was possible to simulate non-blocking execution by using asynchronous delegates or the ThreadPool class; however, those solutions simply blocked another thread in the background, making them far from ideal for cases where it is important to avoid blocking threads [...]

        I are Troll :suss:

        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