swallow.pa
سه شنبه 22 فروردین 1391, 18:10 عصر
سلام به همه
من یک تریگر یرای حذف نوشتم این کده واین خطاهاشه بنظر شما اشکال کجاست
ممنون
Create trigger [dbo].[DeleteAccount] on [dbo].[person]
for Delete
as
declare @id as int
set @id=inserted.personid
Delete
From dbo.AccountDetail WHERE AccountDetailId in(@id)
Msg 4104, Level 16, State 1, Procedure DeleteAccount, Line 5
The multi-part identifier "inserted.personid" could not be bound.
منظور این خطا چیه و چطور اصلاحات رو انجام بدم
من یک تریگر یرای حذف نوشتم این کده واین خطاهاشه بنظر شما اشکال کجاست
ممنون
Create trigger [dbo].[DeleteAccount] on [dbo].[person]
for Delete
as
declare @id as int
set @id=inserted.personid
Delete
From dbo.AccountDetail WHERE AccountDetailId in(@id)
Msg 4104, Level 16, State 1, Procedure DeleteAccount, Line 5
The multi-part identifier "inserted.personid" could not be bound.
منظور این خطا چیه و چطور اصلاحات رو انجام بدم