Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 580971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:31:47+00:00 2026-05-13T14:31:47+00:00

Can anyone provide me with a ballpark timing (in milliseconds) for how long it

  • 0

Can anyone provide me with a ballpark timing (in milliseconds) for how long it takes to establish a new DB connection to SQL from C#. I.e. what is the overhead when a connection pool must create a new connection.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:31:47+00:00Added an answer on May 13, 2026 at 2:31 pm

    It depends:

    • time to resolve the DNS name to IP
    • time to open the TCP socket or the Net pipe (on top of other TCP soket): 3 IP packets usually
    • time to hanshake the SSL/TLS if encryption is required: ~5 roundtrips plus time to bootstrap the master key exchange if the SSL/TLS key info is not reused (ie. one RSA private key access, which is very expensive)
    • time to authenticate SQL password for SQL auth (2 roundtrips I believe)
    • time to authenticate NTLM/Kerberos for integrated auth (1 roundrip to negotiate SPNEGO, 5-6 roundtrips if Kerb ticket is missing, 1 roundtip if the ticket is present, 4-5 roundtrip if NTLM is chosen)
    • time to authorize the login (lookup metdata, evaluate permissions against login token)
    • possible time to run any login triggers
    • time to initiate the connection (1 roundtrip with the inital SET session stuff batch)

    Some more esoteric times:

    • time to open auto-close databases if specified in request (may include a recovery, usualy doesn’t)
    • time to attach database if AtachDBFile is used and db is not already attached
    • time to start a ‘user’ instance for SQL 2005 RANU. That is about 40-60 seconds.

    Usually you can do some 10-15 new connections per second. If there’s an issue (eg. DNS lookup problem, IPsec issued, SSL problems, Kerberos issues) it can easily go up into 10-15 seconds per conection.

    By contrast an existing pooled connection only has to execute sp_resetconnection (that is one roundtrip on an existing channel), and even that can be avoided if necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone provide (or point me to) example sql code for logging exceptions using
Can anyone provide a step by step guide for upgrading a VS2010 solution from
Can anyone provide me the query in sql server to extract the tables that
I'm confused on how overriding differs from hiding in Java. Can anyone provide more
Can anyone provide the syntax for retrieving a SAS Macro from a permanent catalog?
Can anyone provide the resource to learn making connection between computers over the LAN
Can anyone provide a clear example of how to remove a supercolumn in Java
Can anyone provide a working sample code to convert following Oracle DB table with
Can anyone provide some links to good information on setting up Silverlight 2.0 to
Can anyone provide me with a hello world example for a major mode in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.