private DataRowCollection ExtractData(DateTime DailyFileDate) { Log.Info("Querying Microbilt data..."); string sql = string.Empty; { sql = @" SELECT TransID, CustomerID, RID, FileDate FROM ( SELECT TransID AS TransID, CustomerID, RID, FileDate, ROW_NUMBER() OVER(PARTITION BY TransID ORDER BY TransID DESC) AS RN FROM MicroBilt.dbo.TransIDIgnoreAudit WHERE FileDate BETWEEN @FileDate AND DATEADD(D,1, @FileDate AND CustomerID IS NOT NULL ) A WHERE RN = 1";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)