How can you delete duplicate records in a table with no primary key?

Technology CommunityCategory: T-SQLHow can you delete duplicate records in a table with no primary key?
VietMX Staff asked 3 years ago

Use the SET ROWCOUNT command.  So if you had 2 duplicate rows you would issue SET ROWCOUNT 1, then your DELETE command then SET ROWCOUNT 0.