I'm new to C# and SQL Server; I wrote a simple stored procedure in T-SQL, and in C# with under code call that:
da = new SqlDataAdapter("select_equals_Cycle", con);
da.SelectCommand.CommandType = CommandType.StoredProcedure;
ds = new DataSet();
da.Fill(ds, "select_equals_Cycle");
but on this line:
da.Fill(ds, "select_equals_Cycle");
I get this error:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
My connection string this:
string conn = "Data Source=.;Initial Catalog=ClubEatc;Integrated Security=True;Connect Timeout=30;";
How can I solve that? thanks.