﻿CREATE PROCEDURE [dbo].[sp_DASFirstUseSet]
			 @DASId                 int
			,@FirstUseDate          DateTime null
			,@errorNumber			int				output
			,@errorMessage			nvarchar(250)	output 

AS
BEGIN
	SET @errorNumber = 0 
	SET @errorMessage = space(0)

	SET NOCOUNT ON;
	
	UPDATE [dbo].[DAS] SET [FirstUseDate]=@FirstUseDate WHERE [DASId]=@DASId;
	
	IF(@@error != 0)
	BEGIN
		SET @errorNumber = error_number()
		SET @errorMessage = error_message()
	END
END