SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 I want trigger to affect one raw at one time
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dhh166
Starting Member

2 Posts

Posted - 06/23/2012 :  03:55:30  Show Profile  Reply with Quote
I wrote an UPDATE trigger AFTER INSERT, but it affects each row in each time ,I want to affect only last raw I inserted in each time , please help

khtan
In (Som, Ni, Yak)

Singapore
16769 Posts

Posted - 06/23/2012 :  04:46:13  Show Profile  Reply with Quote
why do you want to do that ?


KH
Time is always against us

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
48076 Posts

Posted - 06/23/2012 :  13:36:24  Show Profile  Reply with Quote
do you've an identity column or an audit column like datecreated?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Lamprey
Flowing Fount of Yak Knowledge

3859 Posts

Posted - 06/25/2012 :  11:58:26  Show Profile  Reply with Quote
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000