Reply to Re: MS SQL copy new and modified rows from TABLE1 to TABLE2

Your name:

Reply:


Posted by Hugo Kornelis on 08/18/07 06:25

On Fri, 17 Aug 2007 19:47:32 -0700, Yas wrote:

>On 17 Aug, 08:11, Erland Sommarskog <esq...@sommarskog.se> wrote:
>> Yas(yas...@gmail.com) writes:
>> > DOH!!! what a silly mistake. :-)
>>
>> It's often that when you work with something you are not really confident
>> that you look for the difficult mistakes and overlook the simple typos.
>>
>> > do you think apart from that its fine
>> > for inserting new rows into Table2 from Table1 trigger?
>>
>> Looks good to me. I would have used NOT EXISTS rather than the LEFT JOIN,
>> as I think that expresses more clearly what is going on. But that's a matter
>> of taste.
>>
>
>Thanks for all your advise and help! by the way do you if there is a
>way to edit/change a Trigger once it has been created in MS SQL?

Hi Yas,

Yes. Simply use ALTER TRIGGER instead of CREATE TRIGGER.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация