• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 41
  • Last Modified:

sql server 2012

iam having one sp every ten min once the sp will run in scheduled. i have one doubt in that. iam having trigger table in that trigger table any updation and insertion happens pkid will store in trigger table. by joining trigger pkid and my original table i'll get the  changed record.  by checking this i'll update the changed record in one table  (loln_lnmistranprocess)  if not that record i'll insert  (loln_lnmistranprocess)

For Eg: in that table already some cases are processes and marked as record processed as Y . my doubt is some old record processed  y  anything again changed in trigger ( 15 records are tere 5th record got again changed it processed in loln_lnmistranprocess this table how can i identified)

how can i identify in between records changed?

i'll attach my sp
kowsika devi
kowsika devi
  • 3
1 Solution
HuaMin ChenSystem AnalystCommented:
The trigger would be fired whenever there is ANY change to original table. Each record change (like insert/update), would fire the trigger (of table) once.
HuaMin ChenSystem AnalystCommented:
Hi Kowsika,

Is this resolved?
HuaMin ChenSystem AnalystCommented:
Details are given to resolve this
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now