Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Iteration in Triggers

Author  Topic 

gurusamy.senthil
Yak Posting Veteran

65 Posts

Posted - 2008-09-24 : 09:34:59
Dear All,

In storeed procedure we have cursors to do iteration. Is there anyway that I can iterate the records in triggers for doing update?

Any help is greatly appreciated.

Regards,
Senthil .G

bjoerns
Posting Yak Master

154 Posts

Posted - 2008-09-24 : 10:13:25
First question should always be: "Do I need to iterate at all?" So please post some information, what's the trigger supposed to do etc.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-24 : 10:55:38
quote:
Originally posted by gurusamy.senthil

Dear All,

In storeed procedure we have cursors to do iteration. Is there anyway that I can iterate the records in triggers for doing update?

Any help is greatly appreciated.

Regards,
Senthil .G


why iterate? cant you go for set based approach?
Go to Top of Page
   

- Advertisement -