I have a dll created with a code like:
public partial class StoredProcedures
{
[Microsoft.SqlServer.Server.SqlProcedure]
public static void STOREDPR(SqlString a1, SqlString a2, SqlDouble a3)
{
....
}
}
so as I need to create the procedure BUT using a .dll of that code…
I was trying
CREATE ASSEMBLY test from 'C:\Documents and Settings\theDLL.dll' WITH PERMISSION_SET = SAFE
till that is perfect, the problem comes when doing…
CREATE PROCEDURE TEST AS EXTERNAL NAME test.STOREDPR @a1 nvarchar, @a2 nvarchar, @a3 double
I can not make it work, can you please correct this?
I think you’re missing the class name StoredProcedures