Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

How to add unique key constraint on CRM entity column

$
0
0

Hello,

I am trying to create an unique key constraint on the CRM entity via database.

When I execute the alter script it throws an error as,

Msg 1505, Level 16, State 1, Line 1

The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.LeadBase' and the index name 'uc_lead'. The duplicate key value is (<NULL>, <NULL>).

Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
The statement has been terminated.

There are some records in the database which have null values.

How can we add the constraint from database?



Viewing all articles
Browse latest Browse all 8223

Trending Articles



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