Database.ExecuteDataSet Method (String, array<Object[])

Executes the storedProcedureName with parameterValues and returns the results in a new DataSet.

Namespace: Microsoft.Practices.EnterpriseLibrary.Data
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll) Version: (6.0.1304.0)


public virtual DataSet ExecuteDataSet(
    string storedProcedureName,
    params Object[] parameterValues
Public Overridable Function ExecuteDataSet ( 
    storedProcedureName As String,
    ParamArray parameterValues As Object()
) As DataSet
virtual DataSet^ ExecuteDataSet(
    String^ storedProcedureName, 
    ... array<Object^>^ parameterValues


  • storedProcedureName
    Type: System.String

    The stored procedure to execute.

  • parameterValues
    Type: array<System.Object[]

    An array of paramters to pass to the stored procedure. The parameter values must be in call order as they appear in the stored procedure.

Return Value

Type: DataSet

A DataSet with the results of the storedProcedureName.

See Also

Database Class

Database Members

ExecuteDataSet Overload

Microsoft.Practices.EnterpriseLibrary.Data Namespace