Is there any T-SQL to search for duplicates ? (*** SOLVED ***)
Hi...
Let's say like this... I have an old database in .DBF format. I transfer the database to SQL Server using DTS. Result of DTS is the table(s) from .DBF with no Primary Key.
When I need to set up the PK (primary key), SQL returns error, and said something likes "Duplicate key found for record .... and ..."
My question is :
before I setup the PK, can I find which record has its duplicate(s) by using T-SQL at Query Analyzer ???
FYI : I'm using SQL Server 2K