Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Table1 Autocounter used for PK - Trigger: on AddNew Record copy new PK and add new record on Table2

$
0
0

Table1 - Autocounter the Autocounter is the PK

Table2 - no autocounter. Holds Metadata for Rules Engine

Trigger: After Table1 completes a NewRecord - copy the autocounter (pk) and insert new record on Table2, updating the first field with the same autocounter number.


Rx


Viewing all articles
Browse latest Browse all 7129

Trending Articles