Share via


TeamFoundationSqlResourceComponent.PrepareStoredProcedure Method (String)

Setup to execute a SQL stored procedure. This method will close all existing commands or readers.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Function PrepareStoredProcedure ( _
    storedProcedure As String _
) As SqlCommand
protected SqlCommand PrepareStoredProcedure(
    string storedProcedure
)
protected:
SqlCommand^ PrepareStoredProcedure(
    String^ storedProcedure
)
member PrepareStoredProcedure : 
        storedProcedure:string -> SqlCommand
protected function PrepareStoredProcedure(
    storedProcedure : String
) : SqlCommand

Parameters

  • storedProcedure
    Type: System.String

    This is the stored procedure to execute.

Return Value

Type: System.Data.SqlClient.SqlCommand
The [SqlCommand] object that is initialized.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

PrepareStoredProcedure Overload

Microsoft.TeamFoundation.Framework.Server Namespace