To add a more detailed / explanation to @kcrumley anwser above:
[NAME_SPACE] is the full name , not just the namespace
- i.e. if your class is called StoredProcedures in the StoredProcedures namespace, you should use [My.Name.Space.StoredProcedures] for the [NAME_SPACE] part.
If managed stored procedures reside in a class without a specific namespace, you simply use the name of the bare class (for example, [StoredProcedures] ).
I also tried to work a bit on how to add a procedure with arguments / parameters. So this is a sample for those who are still trying to do this:
CREATE PROCEDURE [YOUR_FUNCTION] ( @parameter1 int, @parameter2 nvarchar ) WITH EXECUTE AS CALLER AS EXTERNAL NAME [YOUR_ASSEMBLY].[StoredProcedures].[YOUR_FUNCTION]
Grhm
source share