private void ConnectToDatabase() { SQLUtilities scoQuery = new SQLUtilities(); //scoQuery.ConnectionString = string.Format("Server = {0}; Database = {1}; User ID = {2}; Password = {3}; Trusted_Connection = False;", _dbServer, _dbName, _dbUserID, _dbPassword); scoQuery.ConnectionString = string.Format("Data Source = {0}; Initial Catalog = {1}; Integrated Security=SSPI", _dbServer, _dbName); _myConnection = scoQuery.OpenConnection(); buttonGetDetails.Enabled = false; SelectionWindowText = string.Empty; if (!String.IsNullOrEmpty(IPUtilities.ExtensionsPath)) { dataGridView1.Rows.Clear(); _ipList.Clear(); textBoxConnectedTo.Text = string.Format("Connected to Management Server: [{0}] / SQL Server: [{1}]", _managementServerName, _dbServer); EnableDependentControls(); LoadGridView(); } }