private void timer_Tick(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Integrated security=false;Initial Catalog=" + Catalog + ";Data source=" + DataSource + ";User ID=" + DBUserID + ";Password=" + DBPassword + ""); string sSql = "SELECT * from table "; DataSet ds = new DataSet(); SqlDataAdapter adap = new SqlDataAdapter(sSql, con); adap.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { } }
DatasSet
SqlDataAdapter
timer_Tick
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)