I am trying to override the default SqlConnection timeout of 15 seconds and am getting an error saying that the
SqlConnection
property or indexer cann
I found an excellent blogpost on this subject: https://improve.dk/controlling-sqlconnection-timeouts/
Basically, you either set Connect Timeout in the connection string, or you set ConnectionTimeout on the command object.
Be aware that the timeout time is in seconds.