I have to create a stored procedure that receives one parameter and returns another. Within the procedure I declare a variable and give it value with a select. Later with the input variable and the one obtained from the select I invoke a dll. I have this, but the SP is not created:
CREATE PROCEDURE [dbo].[SpInvoke]
(@funcion NVARCHAR (MAX),
@salida REAL OUTPUT)
AS
declare @url as nvarchar (max) = SELECT TOP 1 url FROM Config
EXTERNAL NAME [User.BBDD.SQLServer].[StoredProcedures].[SpInvoke]
GO