Share via


SPDatabaseAction.ExecuteSql method (String)

Executes a series of Transact-SQL queries based on the specified string.

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

Syntax

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

Me.ExecuteSql(sql)
protected internal void ExecuteSql(
    string sql
)

Parameters

  • sql
    Type: System.String

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

See also

Reference

SPDatabaseAction class

SPDatabaseAction members

ExecuteSql overload

Microsoft.SharePoint.Upgrade namespace