I have the following problem, I have a web application, in which I fill a form in which an image is attached (in sql I only save the name of the image and then open it in another form), when updating the record, if the image is not updated the SP, go and record NULL in the database ... How could I validate that if the image parameter goes empty, I leave the same as it is already in the table ???
The code I have is a simple update to the table
UPDATE [dbo].[FormDetalle] SET [archivoadjunto] = @file,[comentarios] = @Comment,[avance]= @iAvance,fec_finreal=@date
WHERE [id_1] = @id1 AND [id_accion]=@iAccionID;
the image parameter is @file