Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO and Data Integrity Checks
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01209224
Message ID:
01209266
Vues:
13
Thanks for your reply Sergey! I was looking for a way to validate the business rules in the server but then I realized it'd be a design error because if anything fails I'll have to send the data back to the server again so I prefer to validate before connecting to the database.

Enmanuel


>You'll have to analyze connection Errors collection.
>
>FOR Each loErr IN loCon.Errors
>  * loErr.Description, loErr.Number
>ENDFOR
>
>>Hi all, I've a table with several check constraints and I'd like to know if there's a way to know exactly what constraint was broken (if that's the case). For example If I have CK_CreditLimit Constraint where the ammount for the field must be >=0, if I try to insert a negative value the constraint is triggered but how can I know back in my Data Layer that this specific check was broken.
>>
>>I'm using ADO to connect to the database.
>>
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform