I need to use a third party DLL in a trigger c# code in SQL Server CLR
But when I try to add reference it just shows some DLLs from SQL Server.
How can I add my third party dll to SQL Server?
|
I need to use a third party DLL in a trigger c# code in SQL Server CLR But when I try to add reference it just shows some DLLs from SQL Server. How can I add my third party dll to SQL Server? |
|||||
|
|
You can only add references to those assemblies which have been registered with Sql Server. If they are not registered, they will no show up in the Add References dialog. There are a number of steps you'll need to do register a DLL, firstly you'll need to reconfigure your database:
Once this is done, Sql Server is CLR enabled. Next, you'll need to register your assembly:
If this last script runs correctly, the assembly is now registered, and will appear in the Add References dialog. What you will need to consider though, is the application security of your Sql Server CLR configuration:
|
|||||
|
|
I am assuming you are asking about alternatives to installing SQL CLR assemblies from Visual Studio. Having the code in Visual Studio is not required. Deploying CLR Database Objects on MSDN details the options, including SQL statements and deployment scripts. |
|||
|
|