The script is in three parts:
1. A select statement to determine the number of duplicate records contained within the table
2. The deduping process builds a temporary table called #Duplicates and uses it to compare duplicates across both similar tables whilst deleting records with multiple counts
3. Final test of deduping with no records indicating table is clean of duplicates
The script is run against the database with the duplicate table. Ensure the following is replaced with your objects:
DuplicateTable >>> Your Table
Column1,2,3,... >>> Your Column Names
REQUIRED - The table MUST have an Identity Column
TableID >>> Your Table Identity Column
Another script from DOS but shows alerts
Like the one posted before, the use of the SP is like this: proc_alerts 1,18. This will show the first 18 alerts on the system. OR proc_alerts 20,35 will show from 20 to 35. This lets you manage the list without letting go out of the screen.
2001-11-03
1,042 reads