|
-
Jun 13th, 2004, 10:25 PM
#1
Thread Starter
Fanatic Member
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
Last edited by Wen Lie; Jun 13th, 2004 at 10:42 PM.
Regards,
[-w-]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|