共用方式為


ISqlSession members

Include protected members
Include inherited members

使用.NET 資料提供者的SQL Server,以提供介面來存取資料庫。

The ISqlSession type exposes the following members.

Methods

  Name Description
Public method ChangeToOriginalDatabase 內容切換到原始正在升級的資料庫。
Public method Commit 認可 Microsoft SQL Server 工作階段。
Public method Dispose (Inherited from IDisposable.)
Public method ExecuteNonQuery 執行不傳回任何資料列考慮改用 SQL 查詢。
Public method ExecuteReader(SqlCommand) 執行傳回資料列集根據指定的 SQL 命令考慮改用 SQL 查詢。
Public method ExecuteReader(SqlCommand, CommandBehavior) 執行傳回資料列集根據指定的 SQL 命令和行為考慮改用 SQL 查詢。
Public method ExecuteScript(String) 從文字檔案,根據指定的路徑執行一系列的考慮改用 SQL 查詢。
Public method ExecuteScript(TextReader, Int32) 從文字File執行一系列的考慮改用 SQL 查詢。
Public method ExecuteScript(String, Int32) 從指定的路徑為基礎的文字檔案和分配給要執行的每個命令的時間執行一系列的考慮改用 SQL 查詢。
Public method Rollback 復原 Microsoft SQL Server 工作階段。這個類別和其成員是保留供內部使用,並不適合在您的程式碼中使用。

Top

請參閱

參照

ISqlSession interface

Microsoft.SharePoint.Utilities namespace