i use this code for insert something to Customer Table but it dose not work? my database does not update and the value of r always is 0.`
using (SqlConnection cn = new SqlConnection(con))
{
cn.Open();
string query = string.Format("Select * From Customers");
SqlDataAdapter adapter = new SqlDataAdapter();
SqlCommandBuilder cb = new SqlCommandBuilder(adapter);
adapter.SelectCommand = new SqlCommand(query, cn);
DataSet db = new DataSet();
adapter.Fill(db,"Customers");
string m = "Bon app'" ,city="london";
query = string.Format("Insert Into Customers (CompanyName , City) Values ('{0}','{1}')",m,city);
adapter.InsertCommand =new SqlCommand(query, cn);
int r= adapter.Update(db,"Customers");
Console.WriteLine(r);
`