private void Data_Load(object sender, EventArgs e)
{
CommonClass_RunProcesses Commoncls = new CommonClass_RunProcesses();
DataSet ds = new DataSet();
ds = Commoncls.ExecuteSQL("SELECT Sales = SUM(Sales) from Sales_1 ", 17);
if (ds != null)
{
if (ds.Tables[0].Rows.Count > 0)
{
grdData_Load.DataSource = ds.Tables[0];
grdData_Load.AllowUserToAddRows = false;
grdData_Load.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader);
}
怎么能一直给StoredProc而不是SQL COMMAND。我需要给 SP 名称 usp_SalesofEST ????