When will SQLServer 2005 fail to insert / update AND ALSO NOT "throw" the exception?
After running a query to insert or update a SQLServer 2005 database, in what scenario (if at all possible) this can happen - SQLServer 2005 does not execute or does the insert / update, AND ALSO DOES NOT "CRUSH" THE EXCEPTION?
Note that we are running an insert or update query through a SqlCommand object. Also note that the table that uses an insert or update query has
- identification fields
- fields that are not null,
- with appropriate data types
- fields that are help keys
- fields where control constraints apply
- and etc.
Suppose that the WHERE clause in the update query finds the fix that needs to be updated.
Is it safe to assume that after we execute SqlCommand.ExecuteNonQuery (), if no insert or update occurs, then the un-handled exception will be ALLWAYS? Otherwise, we can assume that the insert or update request was successful.
0
source to share