I have Following Procedure
alter PROCEDURE GET_REQUEST_FOR_LEAVE_N_ATTENDANCE
@ENAME VARCHAR(100),
@FR_DT DATETIME,
@TO_DT DATETIME
AS
BEGIN
SET NOCOUNT ON
SELECT B.CEMPLOYEE_NAME,A.* FROM TRN_EMPLOYEE_ATTENDANCE_REQUEST A
INNER JOIN MST_EMPLOYEE B
ON A.EMPLOYEE_ID = B.EMPLOYEE_ID
WHERE B.CEMPLOYEE_NAME LIKE '%' + @ENAME + '%'
AND ABSENT_DATE BETWEEN @FR_DT AND @TO_DT
SELECT B.CEMPLOYEE_NAME,A.* FROM TRN_LEAVE_REQUEST A
INNER JOIN MST_EMPLOYEE B
ON A.EMPLOYEE_ID = B.EMPLOYEE_ID
WHERE B.CEMPLOYEE_NAME LIKE '%' + @ENAME + '%'
AND REQUESTED_FOR BETWEEN @FR_DT AND @TO_DT
END
when i run this procedure on Microsoft SQl server manager on output window it shows two
output for this procedure.
Same i want to store in two gridview
How can i do the same