We help IT Professionals succeed at work.
Get Started

How do I run a stored procedure and ignore the returned output in Management Studio?

soozh
soozh asked
on
730 Views
Last Modified: 2012-05-09
Hello,

I have written a stored procedure that returns a couple of columns of data.  This stored procedure is normally executed from my application and the returned information is important.

However I need to run it once on my table for each row (+400000) from Management Studio. I have tried to do this but the returned columns are displayed in the results pane each time the stored procedure is called.  Eventually Managment Studio crashes because of the large amount of data in the result pane.
 
Is there any way to execute a stored procedure and direct the output away from the results pane?  i.e. hide it or send it somewhere like a black hole?
Comment
Watch Question
CERTIFIED EXPERT
Expert of the Quarter 2010
Expert of the Year 2010
Commented:
This problem has been solved!
Unlock 3 Answers and 6 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE