Are we not allowed to set the ConnectionTimeout in ADO.NET??

  • Thread starter Thread starter Prodip Saha
  • Start date Start date
P

Prodip Saha

I am trying to increase the ConnectionTimeout to 60 seconds. It was possible
in ADO but it's a read-only property in ADO.NET.

Is there a way to change the ConnectionTimeout?
Prodip
 
Set it in the ConnectionString.... "Data Source=xxxxxxxxxx;Integrated
Security=SSPI;Initial Catalog=xxxxxxxxx;Connect Timeout=60"
for instance
 
Thanks, William. That's exactly the little help I was needing.
Prodip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top