Solved

if connecting to a sql database in C# what is the best way to ensure only a 30 second timeout max

Posted on 2008-06-12
6
242 Views
Last Modified: 2010-04-15
if connecting to a sql database in C# what is the best way to ensure only a 30 second timeout max before an error msg is displayed?
0
Comment
Question by:alexatsearidge
6 Comments
 
LVL 16

Accepted Solution

by:
burakiewicz earned 250 total points
ID: 21773479
Sqlconnection.ConnectionTimeout=30;
0
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 250 total points
ID: 21773586
this can be set in the connection string
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# MVC and a global static factory that never dies 4 57
Question! 4 36
Simple Injector with Web Service 4 38
Reference issues in Visual Studio 3 29
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now