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.
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.
Suthish NairPosted Feb 19, 2012, 2:57 PM
Pravin GhadgePosted Feb 17, 2012, 7:51 AM
check windows firewall setting of server PC.
if it on then make it off.
krishan kumar singhPosted Feb 17, 2012, 6:41 AM
But problem when sql server
Jignesh TrivediPosted Feb 17, 2012, 6:17 AM
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.