Be seen. Boost your question’s priority for more expert views and faster solutions
SqlConnection conn = new SqlConnection("Your connection string");
try
{
conn.Open();
}
catch (SqlException ex)
{
if (ex.Number == 53)
{
// redirect
}
}
finally
{
conn.Close();
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.