copy from sqlplan gui

when you open the sqlplan you are able to see the code of the query in the top bar. But I am not able to copy it to run the query again. Is there a command to copy the text of the query, without having to go to the XML code?

thanks
LVL 6
anushahannaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chapmandewCommented:
you should be able to right click it, and select copy query text.
0
anushahannaAuthor Commented:
I do not see it.

is this the same place you are thinking of, too?
sqlplan.bmp
0
chapmandewCommented:
ahh...thought you meant the saved plan (the .sqlplan file).  If you open up a saved .sqlplan file, there is an option for "Edit SQL text", and you can copy it from there.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

anushahannaAuthor Commented:
Where do we find the Edit SQL text option?
sqlplan.bmp
0
chapmandewCommented:
right click where it says Query 1:
0
anushahannaAuthor Commented:
that's what I did and the picture in post # 32346005
0
chapmandewCommented:
did you save the execution plan and then open it again?
0
anushahannaAuthor Commented:
yes. are you using 2005 SSMS also?
0
chapmandewCommented:
2008 ssms
0
anushahannaAuthor Commented:
maybe it is not an option in 2005?
0
chapmandewCommented:
doesn't seem to be.  :(
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anushahannaAuthor Commented:
hmm. OK. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.