Forum Discussion
TanyaYatskovska
Alumni
10 years agoHi,
The code looks good. Doesn’t it work?
kktsenthil
10 years agoOccasional Contributor
Yes the code works fine and need to find the duplicate value..
- leandroaraujoso10 years agoContributor
Try this:
Qry.SQL = "select * from Test_Main.dbo.tbtable where name_field = 'King'
and then ...
if (Qry.RecordCount > 1)
Log.Message("There are duplicate records for the query executed.");
Let me know if that helps.
Regards,
Leandro de Araújo Souza
- Ravik10 years agoSuper ContributorHi If you want to get count for perticular records the try query like - "select count(*) as Recordcount from Test_Main.dbo.tbtable where name_field = 'King'" it would be give you the count of all record where field value = "King"