Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Help on Stored Procedure results
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 10/27/2005 :  07:57:31  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Manvinder Singh writes "I want to store informaion returned by System stored procedure into a temporary table.
e.g.
I want to filter information returned by sp_who2.

How can I do it using T-SQL.

Please provide help on this."

chiragkhabaria
Flowing Fount of Yak Knowledge

India
1907 Posts

Posted - 10/27/2005 :  09:20:02  Show Profile  Visit chiragkhabaria's Homepage  Send chiragkhabaria a Yahoo! Message  Reply with Quote
you create the table which matches the sp_who2 ouput..
and then run the

Insert <Table_Name>
Exec Sp_who2



Complicated things can be done by simple thinking

Edited by - chiragkhabaria on 10/27/2005 09:21:43
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000