Bonjour à toutes et à tous et merci à ceux qui nous aident et font vivre ce forum

Je rencontre des problèmes avec une application, des traitements me génèrent souvent les erreurs ci-dessous et j'aimerai avoir votre avis, la cause de ces deadlocked et quel outil sqlserver utiliser pour m'aider à trouver la source du problème, trace etc

La version sqlserver utilisée et 2008

Je vous remercie par avance

exemple numéro 1 :

J'ai remplacé certaines infos pour raison de confidentialité

An Error has occurred while Executing Query:
UPDATE nom de ma table
SET amount = amount + 0.000000
WHERE client = 'TOTO' AND period = 201003 AND ple_amount > 0.0
AND dim1 = '75-201000145'

ERROR 1205: [Microsoft][SQL Native Client][SQL Server]Transaction (Process ID 173) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
16:13:56 > ERROR 1205: Error in AGRExecSql: Couldn't execute statement when Update funds
16:13:56 > Aborting transaction.

Exemple numéro 2 :

An Error has occurred while Executing Query:
UPDATE a
SET a.apar_name = b.name , a.apar_bank = b.bank_account ,
a.apar_addr = b.address , a.apar_place = b.place ,
a.apar_zipcode = b.zip_code
FROM ##Hxxxx_DEP00000 a , aagaXXXXX b
WHERE b.client = 'TOTO' AND b.dim_value = a.xxxxx AND
b.apar_type = a.apar_type AND b.attribute_id in ( 'xx' ,
'yy' )

ERROR 1205: [Microsoft][SQL Native Client][SQL Server]Transaction (Process ID 243) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Error in UpdateTableId; Table name: ##Hxxxx_DEP00000 avalue: SET a.apar_name = b.name, a.apar_bank = b.bank_account, a.apar_addr = b.address, a.apar_place = b.place, a.apar_zipcode = b.zip_codeindex:

Message:Error in XXXUpdTable: Cannot execute update when xxxxxxxxx

Arrêt du traitement