You are here: Trigger to populate table or database « MsSQL Server « IT news, forums, messages
Trigger to populate table or database

Posted by Jchick on 06/02/06 23:08

Im a newbie with a sql table in a MSDE database that contains fields of
CustName, BrokerName, Type, Status.

I am trying to write a trigger that does this:

1. When a new record in a table is added, I would like the selected
fields to be copied to another table (call it Master).
2. If that Master table already contains a record where the CustName =
CustName, then simply ignore. If CustName does not match anything, then
add the record to the Master Table

In other words, I am trying to create a table (or even a new database)
that has unique records in it - making a master customer list.

Any hints on how to get started on this?

 

Navigation:

[Reply to this 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

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