Click here to Skip to main content
15,920,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m looking for help with trasactions in sql stored procedure .
i m currently working on reporting with gridview . nd as i am newbie in this field i have no idea related to it. i have to show reporting related to awards and the tables on which i have to fire query contains lac of data and with nested query . can u plz tell me if i can return data table from stored procedure with output of one query in transaction acts as input for another query in same transaction . plz send me such kind of stored procedure. all i want to ask is if i can create data table in using qry and use that data table and fire next qry on that and return that result data table .
Posted
Updated 1-Nov-12 15:07pm
v2

1 solution

If I understand you correctly you want to run a query over the output from another query, within a stored proc?

so

Select * from (select * from table where table.columnname = 'THIS ONE')


will do that.

I suspect I am misunderstanding your requirement, though?
 
Share this answer
 

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