Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Simultaneously inserting data in to T1 and T2

$
0
0

Hello,

pls, how to insert new row into T1 and T2 , e.g. PIN, at the same time. In T1, PIN column is PK while, in T2, it is not  (allow null = yes)?

My wish is to insert PIN into T1(of course via App interface and of course it is not problem, there is application interface for it) but, consequently, to have, automatically and within DB, fired trigger that will insert thesame PIN into T2 i.e., to insert new row with the same PIN value into T2. The names of the columns is the same e.g., "PIN"!

THANKS

Viewing all articles
Browse latest Browse all 23857

Trending Articles