public static DataSet getDataSet(DateTime todayDate, DateTime previousDate) { string connString = "my connection string"; SqlConnection con = new SqlConnection(connString); con.Open(); SqlCommand cmd = new SqlCommand("cst_sp_vls_FetchCVUEData", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@startDate", SqlDbType.DateTime).Value =todayDate; cmd.Parameters.Add("@endDate", SqlDbType.DateTime).Value =previousDate; SqlDataAdapter da = new SqlDataAdapter(cmd); da.SelectCommand = cmd; DataSet ds = new DataSet(); da.Fill(ds); return ds; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)