Click here to Skip to main content
13,097,884 members (54,016 online)
Click here to Skip to main content
Articles » Database » Database » SQL Server » Alternatives
Alternatives (1)
Add your own
alternative version

Stats

24.3K views
16 bookmarked
Posted 20 Feb 2011

How to remove duplicate rows in SQL Server 2005 when no key is present

, 20 Dec 2012
This tip describes how to delete duplicate rows from a table that doesn't have a key.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

22 Feb 2011
Costica U
Here is another solution:IF OBJECT_ID( 'tempdb..#TestTable' ) IS NOT NULL BEGIN DROP TABLE #TestTable ENDCREATE TABLE #TestTable ( Column1 varchar(1), Column2 int )INSERT INTO #TestTable VALUES ('A', 1);INSERT INTO #TestTable VALUES ('A', 1); --...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Wendelius
Architect
Finland Finland
No Biography provided

Pro
Pro
| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 20 Dec 2012
Article Copyright 2011 by Wendelius
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid