In this stored procedure there is an error occured. That is ‘format’ is not a recognized built in function name
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[attendance_updatebyemployee_id]
@Employee_id int,
@AtDate datetime,
@FNLogged bit,
@ANLogged bit,
@LogTime varchar(10),
@LogOuttime varchar(10)
AS
BEGIN
select @AtDate
SET NOCOUNT ON;
update Mst_Attendance set FNLogged=@FNLogged,
ANLogged=@ANLogged,LogTime=@LogTime,LogOuttime=@LogOuttime
where EmployeeId=@Employee_id and Atdate = FORMAT(@AtDate,'MM/DD/YYYY')
select * from Mst_Attendance where Atdate=@AtDate and EmployeeId=@Employee_id
END
Try
However, surely your AtDate column should be a datetime?