To connect a sql server Problem error is Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 17, 2012, 1:17 AM EST
Time out may define following way in connection string.
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "Data Source=databaseName;
User Id=sa; Password=; Initial Catalog=northwind;Connect Timeout=60";
but i think there is network problem to conact SQL server or may be wrong database server name.
check it first.
krishan kumar singhRank #4,983 · 316 reputationPosted Feb 17, 2012, 1:41 AM EST
But problem when sql server
Pravin GhadgeRank #1,340 · 1.3K reputationPosted Feb 17, 2012, 2:51 AM EST
check windows firewall setting of server PC.
if it on then make it off.
Suthish NairRank #92 · 22.8K reputationPosted Feb 19, 2012, 9:57 AM EST