erro ao executar sp
17/12/2007
0
CREATE PROCEDURE HORASTRAB (@HRSTRAB CHAR(7) OUTPUT) AS BEGIN DECLARE @HRS DATETIME DECLARE @MINUTOS DATETIME SET @HRS = (SELECT DATEDIFF(HOUR,rd_hrent,rd_hrsai)from registro_diario group by rd_hrent,rd_hrsai) SET @MINUTOS = (SELECT DATEDIFF(MINUTE,rd_hrent,rd_hrsai)from registro_diario group by rd_hrent,rd_hrsai) SET @HRSTRAB = (CONVERT(CHAR,@HRS)+´:´+CONVERT(CHAR,@MINUTOS)) END RETURN @HRSTRAB
amigos ao executar essa sp ta me retornando esse erro:
Server: Msg 201, Level 16, State 2, Procedure HORASTRAB, Line 0 Procedure ´HORASTRAB´ expects parameter ´@HRSTRAB´, which was not supplied.
alguem saberia me dizer o porque?
SQL Server 7
Joao_arthur
Curtir tópico
+ 0
Responder
Posts
14/01/2008
Psergio.p
Caro amigo, posta a instrução que você tá usando para chamar a stored procedure!
Responder
Clique aqui para fazer login e interagir na Comunidade :)