Method Component Class
GetConnection() Connection SqlConnection
GetCommand() Command SqlCommand
GetTransaction() Transaction SqlTransaction
GetPipe() Pipe SqlPipe
GetTriggerContext() TriggerContext SqlTriggerContext
GetReturnResultSet() SqlResultSet SqlResultSet

Table 1 Use Static Factory Methods.
SqlContext contains six methods that permit you to obtain instances of System.Data.SqlServer classes that encapsulate the current context. SqlConnection, SqlCommand, and SqlTransaction are analogous to the corresponding classes in the SqlClient data provider. SqlResultSet exists in the SqlServer data provider, and it's also been added to SqlClient. SqlPipe and SqlTriggerContext are SqlServer-only classes.