In sql server 2012, I have a table with over 25 million rows with duplicates. The table does not have a unique index. It has only a non-clustered index. I wanted to eliminate duplicates and so, I think about below
select distinct * into
truncate primary_table
select * into primary_table from
I wanted to know how expensive it is to choose a separate * request. If my procedure is higher, it is very expensive, I would like to know if there is another alternative way.
source
share