private void button1_Click(object sender, EventArgs e) { SqlConnection myConnection = new SqlConnection("user id=root;" + "password=;" + "server=localhost;" + "Trusted_Connection=no" + "database=drzewo;" + "connection timeout=30"); try { myConnection.Open(); } catch (System.Data.SqlClient.SqlException) { MessageBox.Show("Nie połączono!", "Error!"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)