Context Connection

This .NET Framework Class Library is provided by Microsoft.


This is not a real provider. It is used to create a database connection (SqlConnection) inside an CLR stored procedure.

It connects to "self" from within the CLR stored prodedure/function. The context connection lets you execute Transact-SQL statements in the same context (connection) that your code was invoked in the first place.


There is no 'Context Connection' installation package to download. (if you know about an installation package URL you can contribute to the community by submitting the info to us through this message form)

Connection Strings

The Context Connection class library can be used to connect to the following data sources:

SQL ServerSQL Server 2012SQL Server 2008SQL Server 2005

To see available connection options, navigate to the connection strings reference by the above links.