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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.
anushahannaAuthor Commented:
I do not see it.

is this the same place you are thinking of, too?
sqlplan.bmp
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.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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

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.
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.