Hi i have two column named emp_id and reporting_to
if i login with a emp_id then
how it will return those employees who reporting to the person or who is working under those who is login then what will be the stored procedure for that.
Thanks in Advance
Loading
Rakesh JhaPosted Sep 29, 2011, 12:49 AM
you can find your solution
http://msdn.microsoft.com/en-us/library/aa478959.aspx
sunakshi saxenaPosted Sep 28, 2011, 8:46 AM
this result will show in asp.net page in hierarchical form.please give the code urgently
means i want to add a new form
in that it will show the sp result in hierarchical form
Rakesh JhaPosted Sep 28, 2011, 5:43 AM
(
@EmpId NVARCHAR(20) -- @EmpId of Current Login Person
)
AS
SELECT Emp_id FROM TableName WHERE reporting_to=@EmpId
Mittal SejpalPosted Sep 28, 2011, 5:38 AM
Select Empname from your table where reportinto=your Login empID return after login