What is “Connect Timeout” in sql server connection string?

后端 未结 8 1724
半阙折子戏
半阙折子戏 2020-12-06 08:46

I have the following connection string(get from a property of sql server):

Data Source=(LocalDB)\\v11.0;AttachDbFilename=C:\\Users\\myUser\\Desktop\\adoBanch         


        
相关标签:
8条回答
  • 2020-12-06 09:43

    Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. (MSDN, SqlConnection.ConnectionTimeout Property, 2013)

    0 讨论(0)
  • 2020-12-06 09:47

    That is the timeout to create the connection, NOT a timeout for commands executed over that connection.

    See for instance http://www.connectionstrings.com/all-sql-server-connection-string-keywords/ (note that the property is "Connect Timeout" (or "Connection Timeout"), not just "Timeout")

    0 讨论(0)
提交回复
热议问题