Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Failed to Enable Constraints
Message
De
29/11/2006 16:18:01
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Failed to Enable Constraints
Versions des environnements
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01173507
Message ID:
01173507
Vues:
59
I am getting an error:

Failed to enable constraints. One or more rows contain values violating
non-null, unique, or foreign-key constraints.

when read I GetDataSet() for a view. The view is a composite of several tables (primarily Inventory and Units Of Measure). There is no primary key for the view (although I tried adding one and nothing changed) and in this instance, almost all of the columns are identical. I checked and verified I do not have any duplicate field names (I don't think SQL would have allowed it anyway).

I set the business object's PrimaryKey = "". This made no difference.

Any assistance would be greatly appreciated.

Jeff
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform