/[AnywhereTS-MSSQL]/trunk/TSControlPanel/frmConfigureControlPanel.cs
ViewVC logotype

Diff of /trunk/TSControlPanel/frmConfigureControlPanel.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by william, Wed Jul 11 14:19:13 2012 UTC revision 17 by william, Wed Jul 11 16:48:23 2012 UTC
# Line 25  namespace AnywhereTS Line 25  namespace AnywhereTS
25              SqlConnection sqlCon = new SqlConnection();              SqlConnection sqlCon = new SqlConnection();
26              try              try
27              {              {
28                  sqlCon.ConnectionString = @"Data Source=" + dataServer + @"\SQLEXPRESS;Database='AnywhereTS';Integrated Security=True;Connect Timeout=30;User Instance=False";                  sqlCon.ConnectionString = Properties.Settings.Default.atsConnectionString;
29                  sqlCon.Open();                  sqlCon.Open();
30              }              }
31              catch (SqlException sql_ex)              catch (SqlException sql_ex)
32              {              {
33                  MessageBox.Show("Could not connect to the datbase server. Please check your spelling and your connections. SQL Server Express error:\n" + sql_ex.Number.ToString() + " " + sql_ex.Message.ToString());                  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                  return;                  return;
35              }              }
36    

Legend:
Removed from v.4  
changed lines
  Added in v.17

  ViewVC Help
Powered by ViewVC 1.1.22