I followed instruction in http://www.codeproject.com/Articles/19954/Execute-NET-Code-under-SQL-Server-2005
My dll is the following abbreviated..
Imports System
Imports System.IO Imports System.Text Imports System.Data.SqlTypes
Public Class CyDeC
<Microsoft.SqlServer.Server.SqlProcedure(Name:="Sproc_CyDec ")> Public Function E(ByVal message As SqlString) As SqlStringReturns (SqlString)
End Function
It compiles fine
On Sql2012 I create Assembly MyAssemblyName AUTHORIZATION dbo from <somepath> WITH PERMISSION_SET = UNSAFEthen
Create Procedure test(@message nvarchar(200)) AS EXTERNAL MyAssemblyName.Cydec.E
I get the following error message...
Msg 6505, Level 16, State 2, Procedure MyAssemblyName, Line 1
Could not find Type 'CyDec' in assembly MyAssemblyName.Cydec.E
The account underwhich SQL runs has full rights on the folder where the dll resides.
The dll was compiled under .net 2.0
What should I be looking at
Thanks
T