Ciao a tutti ho un problema, devo eseguire un StoreProcedure all'interno di una funziona.
il seguente codice :
Mi da il seguente errore:codice:ALTER FUNCTION [dbo].[temp_Check_AssociazioneUnitaOrganizzativa]() RETURNS INT AS BEGIN DECLARE @return INT SET @return = 0 EXEC USR_GET_User -1,108353,108117 select @return = @@rowcount RETURN @return END E non mi da nessun errore Poi quando la eseguo DECLARE @return INT SET @return = dbo.temp_Check_AssociazioneUnitaOrganizzativa() PRINT @return
Only functions and extended stored procedures can be executed from within a function.
la mia storeprocedure che richiama all'interno della funziona torna una tabella, e volevo sapere quanti record aveva.
Come posso fare?
Grazie a tutti.
Ciao daSTefano

Rispondi quotando