say i have a query like:
UPDATE table SET status = 1 WHERE id = 1000
if i have a trigger on that table, is there anyway i can get the id ?
i know i can get the status by SELECT status FROM Inserted, but anyway to get what the id is? or would i just have to update the id as well?
thankshmm, looks like i can't even get the id if i try to update since it's an identity column|||How about:SELECT id FROM inserted-PatP|||inserted AND deleted are full blown copies of the table that's affected for the rows that are be modified or added.
You [Id] should be there
What are you trying to do?|||oops, actually i just realized SELECT id from inserted works fine even though id isn't updated
thanks
Showing posts with label 1000if. Show all posts
Showing posts with label 1000if. Show all posts
Tuesday, March 27, 2012
Subscribe to:
Posts (Atom)