The difference between the connections strings in SQLCLR
问题 I was reviewing some code that a consultant checked in and notice they were using SQLCLR. I don't have any experience with it so thought I would research what it was about. I noticed that they used Dim cn As New SqlConnection("server=LOCALHOST;integrated security=yes;database=" & sDb) instead of DIM conn As New SqlConnection("context connection=true") I'm wondering what the difference since it's localhost on the first? 回答1: The context connection uses the user's already established connection