TeamFoundationSqlResourceComponent.PrepareStoredProcedure Method (String, Boolean)
Setup to execute a SQL Server stored procedure. This method will close all existing command or reader.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Protected Function PrepareStoredProcedure ( _
storedProcedure As String, _
bindPartitionId As Boolean _
) As SqlCommand
protected SqlCommand PrepareStoredProcedure(
string storedProcedure,
bool bindPartitionId
)
protected:
SqlCommand^ PrepareStoredProcedure(
String^ storedProcedure,
bool bindPartitionId
)
member PrepareStoredProcedure :
storedProcedure:string *
bindPartitionId:bool -> SqlCommand
protected function PrepareStoredProcedure(
storedProcedure : String,
bindPartitionId : boolean
) : SqlCommand
Parameters
storedProcedure
Type: System.StringThis is the stored procedure to execute
- bindPartitionId
Type: System.Boolean
Return Value
Type: System.Data.SqlClient.SqlCommand
The SqlCommand object that is initialized
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TeamFoundationSqlResourceComponent Class