Hello friends I want to make an insert, but I will only do it if one of the parameters that my SP is receiving, in this case the extension has the word "pdf" , then I'm trying to do this, but send me error: s
Insert into ArchivosContratos
(IdContrato, Nombre, Extension, Ruta, RutaWeb, IdUsuarioOperacion, fecha, Activo, esContrato)
values
(@IdContrato, @Nombre, @Extension, @Ruta, @RutaWeb, @IdUsuarioOperacion, getdate(), 1, 1)
where contains(@Extension, '"pdf"')
I also tried an if but ... it did not send me the same thing
if (contains (@Extension, '"pdf"')) ...
Thank you all for your help and your time.