take a look at this:

http://www.c-sharpcorner.com/UploadFile/Srivi/remove-duplicate-records-in-sql-server-2005/