/[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

--- trunk/TSControlPanel/frmConfigureControlPanel.cs	2012/07/11 16:36:27	16
+++ trunk/TSControlPanel/frmConfigureControlPanel.cs	2012/07/11 16:48:23	17
@@ -25,12 +25,12 @@
             SqlConnection sqlCon = new SqlConnection();
             try
             {
-                sqlCon.ConnectionString = @"Data Source=" + dataServer + @"\SQLEXPRESS;Database='AnywhereTS';Integrated Security=True;Connect Timeout=30;User Instance=False";
+                sqlCon.ConnectionString = Properties.Settings.Default.atsConnectionString;
                 sqlCon.Open();
             }
             catch (SqlException sql_ex)
             {
-                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());
                 return;
             }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22