I am writing web application in C#, and database is MSSQL Express 2012.
When i use SqlDataAdapter
i get the Error:
ExecuteReader requires an open and available Connection.
The connection's current state is connecting.
SqlDataAdapter da = new SqlDataAdapter(sql, sqlConn);
da.Fill(dt);
I can not figure how to fix it. Thankss
Try this :