error previo -2147217887 - AI La operación de múltiples pasos de OLE DB generó errores. Compruebe los valores de estado de OLE DB si es posible. No se realizó ningún trabajo.select distinct e.id, e.nombre, e.apodo2, e.idTanatorio, tanatorio,p.ayuntamiento,e.provincia,p.lugar,e.fechaF from v_Esquelas_actos_esp_mobile e, poblaciones p where e.IdPobFallecimiento=p.idpob and ((exists (select * From iglesias i where i.id = e.idIglesia and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From iglesias i where i.id = e.idIglesia2 and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From tanatorios i where i.id = e.idTanatorio and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From nombre n where n.idFuneraria = e.idFuneraria and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From poblaciones p where p.idPob = e.idPobFallecimiento and (provincia in ('OURENSE') or ayuntamiento in (''))) or exists (select * From esquelas_publicaciones p where p.idEsquela=e.Id and idDominio in (4)))) and idPobFallecimiento in (select idPob from poblaciones where (1=1 and idpro=3 and idcon=262)) and isnull(tipo,'')='' and tanatorio is not null and e.acto in ('Velación','Apertura Velación','Velatorio en') and e.fechaPublicacion=convert(datetime,convert(varchar,getdate(),103),103) UNION select distinct e.id, e.nombre, e.apodo2, e.idTanatorio, tanatorio,p.ayuntamiento,e.provincia,p.lugar,e.fechaF from v_Esquelas_actos_esp_mobile e, poblaciones p where e.IdPobFallecimiento=p.idpob and ((exists (select * From iglesias i where i.id = e.idIglesia and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From iglesias i where i.id = e.idIglesia2 and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From tanatorios i where i.id = e.idTanatorio and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From nombre n where n.idFuneraria = e.idFuneraria and (provincia in ('OURENSE') or poblacion in (''))) or exists (select * From poblaciones p where p.idPob = e.idPobFallecimiento and (provincia in ('OURENSE') or ayuntamiento in (''))) or exists (select * From esquelas_publicaciones p where p.idEsquela=e.Id and idDominio in (4)))) and idPobFallecimiento in (select idPob from poblaciones where (1=1 and idpro=3 and idcon=262)) and isnull(tipo,'')='' and tanatorio is not null and e.acto in ('Velación','Apertura Velación','Velatorio en') and exists (select * from v_Esquelas_actos_esp_mobile e2 where e.id=e2.id and e2.fecha>=convert(datetime,convert(varchar,getdate(),103),103)) order by e.provincia, e.nombre