Thanks Tom,

Because my database is pretty big (at this moment 300.000 records, just for testing), the WHERE statement could be slower.
I will test your idea, it will be a better solution than just trapping the deadlock error and trying again.

THANKS!

Fedor