From d1fbf502404c0bc12e2e17671a2e5aefeb140f2f Mon Sep 17 00:00:00 2001 From: Armenak Grigoryan Date: Sat, 21 Mar 2020 18:47:20 -0700 Subject: [PATCH] Do not use "distinct" keyword when retrieving data from MS SQL Server --- src/main/java/com/strider/datadefender/report/ReportUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/strider/datadefender/report/ReportUtil.java b/src/main/java/com/strider/datadefender/report/ReportUtil.java index 7cb76f1d..d36bf829 100644 --- a/src/main/java/com/strider/datadefender/report/ReportUtil.java +++ b/src/main/java/com/strider/datadefender/report/ReportUtil.java @@ -75,7 +75,9 @@ public static List sampleData(final IDBFactory factory, final MatchMetaD String querySample = ""; String select = "SELECT "; - if (!metaData.getColumnType().equals("CLOB")) { + + + if (!metaData.getColumnType().equals("CLOB") && !factory.getVendorName().equals("mssql")) { select = select + "DISTINCT "; }