gonorato,A common problem indeed....First up for the following to work simply, make all your defaults NULL for the Parameters and not a mixture of '' and NULL.Then it is a simple matter of using the COALESCE function...eg. create proc upMessages_Update--Update a record from Messages@MessageID int, --PK@MessageDate datetime = null,@Message varchar(1000) = nullAsSet NoCount OnUpdate Messages Set [MessageDate] = COALESCE(@MessageDate,MessageDate), [Message] = COALESCE(@Message,Message) Where MessageID = @MessageID
HTHDavidMTomorrow is the same day as Today was the day before.