Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Eliminate Duplicates

By bcb,

This will find and delete all duplicate rows. You can refine the granularity of uniqueness by including more columns than just the Primary Key. If you are picky about which rows you want to delete, don't use this. Instead use the 'Find Duplicates' script I just submitted and then delete manually.

Total article views: 1078 | Views in the last 30 days: 1
 
Related Articles
FORUM

Deleting Table

Deleting

FORUM

delete table

delete

FORUM

Delete

Delete Query

FORUM

Delete

Performance of Delete

FORUM

Deletion

Deletion of records

 
Contribute