Hi,
If your sp returns recordset then only this will work. Otherwise you can use
ExecuteNoneQuery
function of command object. Try this:
DataSet dset = null;
SqlDataAdapter dAdapter;
try
{
con.Open();
SqlCommand command = new SqlCommand(spNameForXlUpload, con);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new SqlParameter("@XMLItemsDoc", xmlDoc.Trim()));
dAdapter = new SqlDataAdapter(command);
dset = new DataSet();
dAdapter.Fill(dset);
return dset;
}
All the best.
--Amit