ISqlSession members

Provides an interface to access databases by using the .NET Data Provider for SQL Server.

The ISqlSession type exposes the following members.

Methods

  Name Description
Public method ChangeToOriginalDatabase Switches the context to the original database being upgraded.
Public method Commit Commits the Microsoft SQL Server session.
Public method Dispose (Inherited from IDisposable.)
Public method ExecuteNonQuery Executes a Transact-SQL query that does not return any rows.
Public method ExecuteReader(SqlCommand) Executes a Transact-SQL query that returns a rowset based on the specified SQL command.
Public method ExecuteReader(SqlCommand, CommandBehavior) Executes a Transact-SQL query that returns a rowset based on the specified SQL command and behavior.
Public method ExecuteScript(String) Executes a series of Transact-SQL queries from a text file based on the specified path.
Public method ExecuteScript(TextReader, Int32) Executes a series of Transact-SQL queries from a text File.
Public method ExecuteScript(String, Int32) Executes a series of Transact-SQL queries from a text file based on the specified path and time allotted for each command to execute.
Public method Rollback Rolls back the Microsoft SQL Server session. This class and its members are reserved for internal use and are not intended to be used in your code.

Top

See also

Reference

ISqlSession interface

Microsoft.SharePoint.Utilities namespace