voila ce que j'ai essayE de faire(pour vous donner une idee):
DROP PROCEDURE ma_table
CREATE PROCEDURE ma_table
@id int OUTPUT,
@guid UNIQUEIDENTIFIER OUTPUT,
@name varchar(120) ,
@hr numeric(17,6) ,
@date datetime
AS
BEGIN
SET NOCOUNT ON
SET @id = @@IDENTITY
SET @guid = NEWID()
INSERT INTO table
(
id,
name,
hour,
date,
guid
)
VALUES
(
@id + 1,
@name,
@hour,
@date ,
@guid
)
END
GO