Hi Guys,
Is it possible to pass a select statement as a parameter on stored procedures?
The Idea is to create a Stored Procedure that will accept a Select Statement as a parameter from the calling program.
The parameter will then be used in the stored procedure when declaring cursors.
Ex. DECLARE mycur CURSOR FOR @selectparam (Something like this...)
Thanks in advance...
Music Rocks
www.musicreserve.blogspot.comSuccess is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.