Microsoft
Software
Hardware
Network
Question : How do I run a stored procedure and ignore the returned output in Management Studio?
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?
Answer : How do I run a stored procedure and ignore the returned output in Management Studio?
Do you know the output column types?
If you do, you can direct them to a temp table, then discard it.
create table #tmp (col1 int, col2 varchar(100), col3 decimal);
set nocount on;
insert #tmp exec myproc;
drop table #tmp;
Random Solutions
Restoring information store Exchange 2003
Server 2008 R2 - Can't connect to a remote app through rdweb
Help formating a output in Powershell
Batch file to copy folders with a certain name
IIS 7 Handler Mappings
getting Windows XP to see Kodak i200 scanner with any software to input images
How do I transfer from SQL 2005 to SQL 2008 on a new server?
Two 2008 R2 Domains on Same Subnet - is this ok?
Foreign key on same table
Coldfusion and IIS book