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

Tracking inserts and filtering by it

$
0
0
Hello everyone.  I would like some advice on how to keep track of items involved in an insert, while the insert query is running.  Once an item goes into a table, I don't want other items, related to it to be picked up for the insert.  So, the order that the select query retrieves the data will determine which items actually make it into the table.  I tried populating a temp table, and inserting anything not already existing in the temp table.  I seemed to get every record.  Please advise how to do this.  Thanks. 

RS


Viewing all articles
Browse latest Browse all 23857

Trending Articles