Types don't match for creating a CLR Stored Procedure
问题 I have a method in an assembly that looks like this: namespace MyNameSpace { public class MyClass { [Microsoft.SqlServer.Server.SqlProcedure] public static void MyMethod(SqlChars myMessage) { // Stuff here } } } I compile that to a dll and load it into my SQL Server like this: drop assembly MyAssembly create assembly MyAssemblyfrom 'C:\Scripts\MyAssembly.dll' That all works fine. But now I try to run this: CREATE PROCEDURE MySproc @message nvarchar(max) AS EXTERNAL NAME MyAssembly.