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)

Find Duplicates

By bcb,

Find duplicates in any table, and report the number of duplicates. Enter in the table name, and the field or fields
for which there should only be one row for each of that field, but you suspect are more. For example, if an employee table has more than one record for an employee
this will find any multiple instances of his emplid.

Total article views: 553 | Views in the last 30 days: 2
 
Related Articles
FORUM
SCRIPT

Auto generation key field

Auto generation key field

FORUM

change collation field

change collation field

FORUM

Incrementing a field

Incrementing a field

FORUM

JOIN on two fields

JOIN on 2 fields

 
Contribute