impluse24,
Here is a recursive sp that works with the specs you gave. Of course, fix the variable names to your implementation.
Cheers :)
NovemberRain
CREATE PROCEDURE dbo.GetCorpITManager
(
@EmpNum CHAR(7)
)
AS
-- DECLARE VARIABLES
DECLARE @ManagerNum CHAR(7)
DECLARE A CURSOR LOCAL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.