IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_delete1user]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_delete1user]
GO
create proc [dbo].[mps_delete1user](
@employeecuid bigint
)
as
begin
if(@employeecuid>0)
begin
delete mps_employee where cu_id = @employeecuid
delete mps_login_role where lgu_cuid = @employeecuid
delete mps_login where cu_id = @employeecuid and cu_objid = @employeecuid
end
end