you need another output parameter in your sp to get returnvalue and use it.then you can get it as belowDECLARE @return_value int,@TimeStamp timestampEXEC [dbo].[InsertDebtorKeyEvents]@DebtorID = 99482,@KeyEventCode = 1,@Notes = N'Notes here',@CreatedBy = 93,@CreatedOn = 20081029,@ModifiedBy = NULL,@ModifiedOn = NULL,@KeyEventStartDate = 20081029,@KeyEventEndDate = 20081130,@AlertDays = 10,@TimeStamp = @TimeStamp OUTPUT,@retvalparameter=@return_value OUTPUTSELECT @TimeStamp as N'@TimeStamp'SELECT @return_value AS 'Return Value' GO