31 |
|
catch (SqlException sql_ex) |
32 |
|
{ |
33 |
|
MessageBox.Show("Could not connect to the datbase server. Please check your spelling and your connections. SQL Server error:\n" + sql_ex.Number.ToString() + " " + sql_ex.Message.ToString()); |
34 |
+ |
using (log4net.NDC.Push(string.Format("SqlException: ID={0} MESSAGE={1}{2}Diagnostics:{2}{3}", sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString()))) |
35 |
+ |
{ |
36 |
+ |
Logging.ATSAdminLog.Error("Could not connect to the datbase server"); |
37 |
+ |
} |
38 |
|
return; |
39 |
|
} |
40 |
|
|