on 2012 Dec 01 4:55 PM
I think the answer is "No, a call to GRAPHICAL_PLAN() will at most execute the query portion of an UPDATE statement but it won't actually update any rows or execute any triggers."
The following SQL produced the attached plan for a single-row UPDATE that takes 30 seconds to execute; the attached plan shows the UPDATE as taking less than 1 second to run:
CALL xp_write_file ( STRING ( 'C:/TEMP/plan_for_update_', @sampling_id, '_', @sample_set_number, '.saplan' ), GRAPHICAL_PLAN ( 'UPDATE rroad_sample_set SET rroad_sample_set.sample_finished_at = @foxhound_probably_stopped_at WHERE rroad_sample_set.sample_set_number = @sample_set_number', 2, -- Detailed statistics including node statistics 'asensitive', 'READ-ONLY' ) );
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.