|
Posted by Hugo Kornelis on 01/26/06 00:51
On Wed, 25 Jan 2006 22:27:44 +0000 (UTC), Erland Sommarskog wrote:
>serge (sergea@nospam.ehmail.com) writes:
>> When i debug a trigger is it possible to add a WATCH
>> on the INSERTED or DELETED?
>>
>> I think not, at least I couldn't figure out a way to do so.
>> Does someone have a suggestion on how I can see the values?
>>
>> I did try to do something like
>>
>> INSERT INTO TABLE1(NAME)
>> SELECT NAME FROM INSERTED
>>
>> but this didn't work. When the trigger completed and I
>> went to see the TABLE1, there were no records in it.
>
>In additions to Hugo's suggestions, keep in mind that if the trigger
>fails, then the statement will be rolled back, and that includs the
>data insertedvinto Table1
Ah, of course. How could I forget it?
Time for bed, I guess :-)
Thanks, Erland!
--
Hugo Kornelis, SQL Server MVP
Navigation:
[Reply to this message]
|