x

execution plan doesn't showing completely

hi

I have SP which is having more than 1100 query's, when ever i am running execution plan for this SP i am getting execution plan till 200th query.

![alt text][1]

[1]: http://ask.sqlservercentral.com/storage/temp/184-download.png
download.png (34.8 kB)
download.png (34.8 kB)
more ▼

asked May 02 '12 at 12:01 PM in Default

thanner gravatar image

thanner
0 1 1 1

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

1,100 queries... that doesn't make it very easy to troubleshoot does it?

I'm not sure if this will do the job for you but from the SSMS menu open Query->Query Options...
And on the Results section under Maximum Characters Received try bumping up the settings for XML Data
more ▼

answered May 02 '12 at 12:29 PM

Blackhawk-17 gravatar image

Blackhawk-17
11.8k 28 30 35

(comments are locked)
10|1200 characters needed characters left

Yep, it's a limit on the system. That's an extremely large number of queries to have within a single stored procedure.

You could use extended events to capture each individual execution plan for each statement. That's how I'd solve the problem of getting the plans. You could also use a server-side trace to do the same thing, but it's going to put more of a load on the system than extended events will.
more ▼

answered May 02 '12 at 12:30 PM

Grant Fritchey gravatar image

Grant Fritchey ♦♦
90.9k 19 21 74

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1816
x562

asked: May 02 '12 at 12:01 PM

Seen: 688 times

Last Updated: May 02 '12 at 12:30 PM