L
Lucas Graf
First let me state for the record I have searched and tried all suggestions I have found, and nothing seems to have helped so far.
I have 2 threads created to update a UI w/data from the database. The connection/command/reader object are all declared outside of the try statement, and then closed/disposed in the finally portion. The connections are not left open for any length of time greater than what is needed.
I get "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool."
when..
1) I am connection to the database remotely via VPN over cable modem
-and-
2) using this connection string (note the integrated security)
public const string sConnect = "persist security info = False;packet size = 8192;data source=MYSERVER;Integrated Security = true;initial catalog=MYDB";
I don't get that error when..
1) I am NOT trying to connect over VPN
-OR-
2) When I use this connection string (NOT using integrated security)
public const string sConnect = "uid=sa;pwd=xxxxx;packet size = 8192;data source=MYSERVER;persist security info = False;initial catalog=MYDB";
This issue pretty much started when I tried to switch over to my final settings of not using the sa account and using Windows security for the users. Am I missing a setting on the server or client? Turning pooling off isn't overly viable since it slows to a dead crawl.
I have 2 threads created to update a UI w/data from the database. The connection/command/reader object are all declared outside of the try statement, and then closed/disposed in the finally portion. The connections are not left open for any length of time greater than what is needed.
I get "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool."
when..
1) I am connection to the database remotely via VPN over cable modem
-and-
2) using this connection string (note the integrated security)
public const string sConnect = "persist security info = False;packet size = 8192;data source=MYSERVER;Integrated Security = true;initial catalog=MYDB";
I don't get that error when..
1) I am NOT trying to connect over VPN
-OR-
2) When I use this connection string (NOT using integrated security)
public const string sConnect = "uid=sa;pwd=xxxxx;packet size = 8192;data source=MYSERVER;persist security info = False;initial catalog=MYDB";
This issue pretty much started when I tried to switch over to my final settings of not using the sa account and using Windows security for the users. Am I missing a setting on the server or client? Turning pooling off isn't overly viable since it slows to a dead crawl.