Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Duplicate rows indentified while creating an unique non-clustered index

$
0
0

Just take Brets sql

 

select <keys>, count(*)

from <tablename>
group by <keys>
having count(*) > 1

 

and change the word <keys> into your list of column in the unique index

and change the word <tablename> for the table you're creating the index on.

 

Run the SQL and you'll see the list of rows which fail due to a unique index violation.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>