Hi,
I got an below 2 error's,
Error 1:
[SQL
Server Native Client 10.0][SQL Server]Transaction (Process ID 238) was
deadlocked on lock resources with another process and has been chosen as the
deadlock victim. Rerun the transaction.
Native
Error Code: 1205
DELETE
FROM dbo.PriceList_ClassRecord WHERE PriceListGUID in ( Select GUID
from dbo.PriceList_C WHERE GUID in
('3E5E14E5F006EB4AA41F5E6571C2C3AD'))
Error :2
[SQL
Server Native Client 10.0][SQL Server]The DELETE statement conflicted with the
REFERENCE constraint
"FK__PriceList_ClassRecord_PriceList_ClassRecord_". The
conflict occurred in database "test", table "dbo._PriceList_ClassRecord",
column 'PriceListGUID'.
Native
Error Code: 547
ODBC
Status 01000 at SQLExecDirect:
[Microsoft]
[SQL
Server Native Client 10.0][SQL Server]The statement has been terminated.
Native
Error Code: 3621
DELETE
FROM dbo.PriceList_C WHERE GUID in ('3E5E14E5F006EB4AA41F5E6571C2C3AD')
table design
Table: PriceList
GUID - varchar2(36), notnull -- PK
Price - decimal (18,2)
Table : PriceList_ClassRecord
GUID - varchar2(36), notnull -- PK
PricelistGUID- varchar2(36), notnull - "FK_Pricelist_calssRecord_PriceList_classReocrd"(ForeignKEy)
How to avoid this error and i am not able to reproduce this same error. Why this error occured.
Could you give your suggestion . please help me.