共用方式為


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