Re: Creating a view within a stored procedure
From: Anith Sen (anith_at_bizdatasolutions.com)
Date: 05/07/04
- Next message: Alex: "Time range query problem"
- Previous message: Allan Mitchell: "Re: How to do this from DTS?"
- In reply to: DR Tarheel: "Re: Creating a view within a stored procedure"
- Next in thread: DR Tarheel: "Re: Creating a view within a stored procedure"
- Reply: DR Tarheel: "Re: Creating a view within a stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 10:22:21 -0500
You can simply have the 2 SELECT statements with the UNION in the stored
procedure itself & call the stored procedure from the report-writer. Based
on your narrative, there no need for a #temp table or a view.
CREATE PROC usp @dt DATETIME
AS
SELECT ... FROM
UNION
SELECT ... FROM
-- Anith
- Next message: Alex: "Time range query problem"
- Previous message: Allan Mitchell: "Re: How to do this from DTS?"
- In reply to: DR Tarheel: "Re: Creating a view within a stored procedure"
- Next in thread: DR Tarheel: "Re: Creating a view within a stored procedure"
- Reply: DR Tarheel: "Re: Creating a view within a stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|