Friday, May 30, 2008

MySQL .NET With C# - Lesson 03: Introduction to SQL and ADO.NET

MySQL .NET With C# - Lesson 03: Introduction to SQL and ADO.NET: "MySqlCommand"



private void cmdLoad_Click(object sender, System.EventArgs e)
{
MySqlConnection conDatabase = new
MySqlConnection("Data Source=localhost;Persist Security Info=yes;");
MySqlCommand cmdDatabase = new MySqlCommand(SQL Code, conDatabase);

conDatabase.Open();

cmdDatabase.ExecuteNonQuery();
conDatabase.Close();
}

www.visli.com

No comments: