private void OpenEnter() { //string connectionString = // "Data Source = WIN-C8OVOKMLI3T; Initial Catalog = FirstBas;" + // " Integrated Security = true; MultipleActiveResultSets = true; "; string connectionString = "Data Source = (localdb)\\MSSQLLocalDB; Initial Catalog = FirstBas; " + "Integrated Security = true; MultipleActiveResultSets = true; "; conData = new ConnectionData(connectionString, tbLogin.Text); string login = conData.ModifyName(tbLogin.Text); conData.ChangeOnline(login, 1); //conData.OpenConnection("workstation id=Personal3.mssql.somee.com;packet size=4096; " + // " user id=aleksskay_SQLLogin_1;pwd=cq2j8tthtc; " // + " data source=Personal3.mssql.somee.com;persist security info=False; " + // "initial catalog=Personal3"); }