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.0.0 (6.0.1304.0)

Syntax

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

Parameters

  • 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