Large SQL 2008 table with 60 000 000 records, and I have problem with duplicate rows.
This command gives me my duplicate taken from http://support.microsoft.com/kb/139444
SELECT id, sa_trvalue, COUNT(*) AS tot
FROM msanal
GROUP BY id, sa_trvalue
HAVING (COUNT(*) > 1)
But when I follow through the steps (INTO and DISTINCT) I get not enough memory to complete operation.