Database.ExecuteDataSet Method (String, array<Object>)

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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)

Syntax

'Declaration
PublicOverridableFunctionExecuteDataSet ( _
    storedProcedureNameAs String, _
    ParamArrayparameterValuesAs Object() _
) As DataSet
publicvirtual DataSet ExecuteDataSet(
    string storedProcedureName,
    params Object[] parameterValues
)
public:
virtual DataSet^ ExecuteDataSet(
    String^ storedProcedureName, 
    ... array<Object^>^ parameterValues
)
publicfunctionExecuteDataSet(
    storedProcedureName : String, 
    ... parameterValues : Object[]
) : DataSet

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

A DataSet with the results of the storedProcedureName.

See Also

Database Class

ExecuteDataSet Overload

Microsoft.Practices.EnterpriseLibrary.Data Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.