SHOWPLAN_ALL

Hello everyone...

I'm here to ask you if it is possible to store SHOWPLAN_ALL results in a table or view from a SQL Stored Procedure?

This because since from my application I'm connecting to SQL Server 2005 without DSN via ADO query, if I open the recordset that should return to me the data explained it goes getting Communication Link Failure error...maybe you could suggest me a solution to avoid that error from my application's code...

If it could be usable, the connection string I use is:
DRIVER={SQL Native Client};uid=usercreatedinsql;Network=DBMSSOCN;DATABASE=LOCALDBNAME;APP={Microsoft Data Access Component};Trusted_Connection=Yes;SERVER=SERVERNAME\SQLEXPRESS;

Thanks you in advance to all!
Ciao,
Luigi

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

Aneesh RetnakaranDatabase AdministratorCommented:
Hi npuleio,


yoy need to store it manually...Copy the Plan text and insert it ito a table...
0
npuleioAuthor Commented:
Hi anee...

but I said before if I try to store the plan text manually from C++, when opening the query it returns an "Communication Link Failure" error...is there maybe another way to store it manually in a table so I can query that table and obtaining the plan on my C++ grid?

Thanks again in advance!
Ciao
Luigi
0
Aneesh RetnakaranDatabase AdministratorCommented:
Did u try the same in Query analyzer
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

npuleioAuthor Commented:
Yes it works on Query Analyzer and also in EMS SQL Manager 2005....
But I've solved it casually right now!...

I had just to install and change the provider of the connection string to make avoiding the "communication link failure" error using MDAC's provider instead of SQLNCLI (MSDASQL.1 instead of SQLNCLI.1's provider)

I guess I could retire the question but anyway thanks for the illumination :-)

Ciao!
Luigi
0
Aneesh RetnakaranDatabase AdministratorCommented:
K. that's fine
0
npuleioAuthor Commented:
For a moderator: Because I figured the solution by myself, explained in my last comment, can I retire the question?

Thanks in advance!
Ciao,
Luigi
0
GranModCommented:
PAQed with points refunded (250)

GranMod
Community Support Moderator
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
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

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.