Forum Discussion
TanyaYatskovska
SmartBear Alumni (Retired)
Hi,
The code looks good. Doesn’t it work?
kktsenthil
9 years agoOccasional Contributor
Yes the code works fine and need to find the duplicate value..
- leandroaraujoso9 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
- Ravik9 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"
Related Content
- 6 years agoendorium