Dotnet-Project Framework documentation.

GenericDataHelper.ExecuteDataset Method (String, IDataParameter[])

Execute a stored procedure via a Command (that returns a resultset) against the database using the provided parameters.

public static DataSet ExecuteDataset(
   string spName,
   params IDataParameter[] commandParameters
);

Parameters

spName
The stored procedure name
commandParameters
An array of Paramters used to execute the command

Return Value

A dataset containing the resultset generated by the command

Example

DataSet ds = ExecuteDataset("GetOrders", new SqlParameter("@prodid", 24));

See Also

GenericDataHelper Class | DotnetProject.Data Namespace | GenericDataHelper.ExecuteDataset Overload List