Share via


SPDatabaseAction.ExecuteSql method (String, Int32)

Executes a series of Transact-SQL queries based on the specified string within a specified time-out period.

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Friend Sub ExecuteSql ( _
    sql As String, _
    commandTimeout As Integer _
)
'Usage
Dim sql As String
Dim commandTimeout As Integer

Me.ExecuteSql(sql, commandTimeout)
protected internal void ExecuteSql(
    string sql,
    int commandTimeout
)

Parameters

  • sql
    Type: System.String

    A string that contains the Transact-SQL queries to be executed.

  • commandTimeout
    Type: System.Int32

    A 32-bit integer that specifies the number of minutes before the operation times out.

See also

Reference

SPDatabaseAction class

SPDatabaseAction members

ExecuteSql overload

Microsoft.SharePoint.Upgrade namespace