Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am having a little doubt regarding the stored procedure output.

If I know the structure of source table I can create destination table and copy a table.
But When I use system stored Procedure I don't know the proper structure of a system table. Theb How to copy that particular to an anonymous table.

select * from sys.tables
select * from sys.procedures


So I get a particular output but I need that output to store in a new table or views.
Posted
Comments
KUMAR619 23-Feb-15 6:37am    
SELECT * INTO ProcList FROM (select * from sys.procedures) as [Procedures]

1 solution

SQL
select * into my_tables from sys.tables
select * into my_procs from sys.procedures
 
Share this answer
 
Comments
KUMAR619 23-Feb-15 6:31am    
Thanks @John C Rayan for your help. It worked for me
John C Rayan 23-Feb-15 6:53am    
Glad it helped you.
KUMAR619 23-Feb-15 6:37am    
SELECT * INTO ProcList FROM (select * from sys.procedures) as [Procedures]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900