I have a query in sql that looks for some XML by date range, but I think that it is not returning results since the where is with the datetime and I only send the date .. Any suggestions?
SELECT A.e_rfc,a.fecha as fecha,C.SupplierName ,A.folio,A.r_usocfdi,A.cantidad,A.clv_prodyserv,A.descripcion,A.clv_unidad,A.valorunitario,A.importe,
B.fecha_pago,B.forma_pago,B.moneda,B.monto,B.ImpPagado ,B.foliofiscal_rel,B.folio_rel,B.serie_rel,B.metodo_pago,B.num_parcialidad
FROM cfdigeneral as A, cfdidetalle as B, Proveedores As C
WHERE A.uuid=B.uuid AND A.e_rfc=C.RFC And A.fecha = @fecha
The date I send from c # and try sending only the date and sending the date in datetime but with the hours in 00