public static bool LoadConfiguration()
{
try
{
using (var connection = new SqlConnection("context connection=true"))
{
connection.Open();
using (var command = new SqlCommand("SQLNET_Configuration", connection))
{
command.CommandType = CommandType.StoredProcedure;
command.ExecuteNonQuery();
}
}
return true;
}
catch
{
// Oops! it's okay, the procedure does not always exist
return false;
}
}
}