I have this query:
insert into Hours
(CnCveFolio, DxDescHorasRegistradas)
select cncvefolio, HorasRegistradas as DxDescHorasRegistradas
from temp_hexpediente where CdFechaRecepcion between '01/01/01' and '31/01/01' or (cncvefolio in (select cncvefolio from FechaCargaExpedientes))
and the Query Analizer returns the error 8623 saying that it has been an internal error because it can't create a consulting plan.
The select part returns me the values I want (If I exclude the insert into Clause). It also works if I eliminate the or part of at the end of the WHERE Clause. The three table exists (Hours, temp_hexpediente and FechaCargaExpedientes).
Any ideas???
thanks!
insert into Hours
(CnCveFolio, DxDescHorasRegistradas)
select cncvefolio, HorasRegistradas as DxDescHorasRegistradas
from temp_hexpediente where CdFechaRecepcion between '01/01/01' and '31/01/01' or (cncvefolio in (select cncvefolio from FechaCargaExpedientes))
and the Query Analizer returns the error 8623 saying that it has been an internal error because it can't create a consulting plan.
The select part returns me the values I want (If I exclude the insert into Clause). It also works if I eliminate the or part of at the end of the WHERE Clause. The three table exists (Hours, temp_hexpediente and FechaCargaExpedientes).
Any ideas???
thanks!