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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 How to see the data in SP

Author  Topic 

varunm
Starting Member

25 Posts

Posted - 2006-09-18 : 22:17:37
Hello Members,
Can you tell me how to see the records in the SP.Where the SP is having insert command and just want to exec the SP in query analyzer.I mean i need to see the records of the inserted SP(Stored Procedure).
Please help me out.........

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-09-18 : 22:33:29
you wanted to see what are the records the SP is inserting into the tables ?

just mask out the INSERT command run in Query Analyser
For example, if the insert command in the SP is like

-- insert into tabled (col1, col2, . . .)
select cola, colb
from tables


if you are using INSERT INTO ... VALUES then just change to use the above format




KH

Go to Top of Page
   

- Advertisement -