Can anyone help me with the meaning of this snippet?
Code:
string conString =@"Provider=Microsoft.JET.OLEDB.4.0;" + @"data source=c:\billing.mdb";
OleDbConnection conn = new OleDbConnection(conString);
Conn.Open();
DataSet ds = new DataSet();
OleDbDataAdapter adapter =
new OleDbDataAdapter("Select * from product where id=" + id, conn);
adapter.Fill(ds);
conn.Close();
DataTable dt = ds.Tables[0];
foreach (DataRow dr in dt.Rows)
{
data = Convert.ToInt32(dr["count"]);
}
Comment