How to access results window in Sql Server Management Studio

Hi,

I am working with a plugin for Sql Server Management Studio. After executing a query in SSMS the results are output in a results tab. How would I be able to hook in to get acess to this data programmatically?

Any pointers of either how to do it or where to find the info that might help me are appreciated.

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

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
>> How would I be able to hook in to get acess to this data programmatically?

Why can't you write a simple application to open up a connection to your SQL Server and display the results in a dynamic datatable..

You can't dynamically access the data pro-grammatically like this..
0
nanderEireAuthor Commented:
I need to be able to compare the results from a query the user enters, to the results we expect them to achieve. Like a tutorial type thing.
0
Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
Then you can fetch both the results into a data table and can compare it in your application right..
0
nanderEireAuthor Commented:
I guess so. I'm now thinking a more straightforward way would be to capture the SQL when the user hits execute and re-run the query myself, capturing the results in code.
0
Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
Yes, that should be the efficient way to do it..
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
C#

From novice to tech pro — start learning today.