Click here to Skip to main content
15,890,557 members
Articles / Database Development / SQL Server

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

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
22 Feb 2011CPOL 14.3K   2  
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); --...

Views

Daily Counts

License

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


Written By
Software Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions