schaf (dlocke (AT) mysunrise (DOT) ch) writes:
Quote:
Is it possible to configure the DB or Index like that, that the unique
constraint is just checked with the commit statement. I mean that the
DB is inconsistent for my unique number,until the commit statement has
been called. |
No, SQL Server does not have commit-time constraints.
But it sounds like the problem stems from a poor implementation. If you
are on SQL 2008, the best solution is probably to send down all your
data with in table-valued parameter, and then perform all updates in a
single MERGE statement.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx