Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameters and Stored Procedures

Status
Not open for further replies.

spiego

MIS
Aug 16, 2004
80
0
0
US
I have a stored procedure that I am using to create a report. At the end of the stored procedure I have the following select statement (rptset is a temporary table created in the proc):
Code:
select * from @rptset
      where
      rordered!=rshipped
If I want to use parameters from the report to filter the data from the stored procedure, how would I do that?
 
filter data in report once all data has been returned or filter as part of the query to restrict the data returned in teh 1st place?

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top