Stored Procedures [HumanResources].[uspUpdateEmployeeLogin]
Updates the Employee table with the values specified in the input parameters for the given BusinessEntityID.
PropertyValue
ANSI Nulls OnTrue
Quoted Identifier OnTrue
NameData TypeMax Length (Bytes)Description
@BusinessEntityIDint4Input parameter for the stored procedure uspUpdateEmployeeLogin. Enter a valid EmployeeID from the Employee table.
@OrganizationNodehierarchyid892Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a valid ManagerID for the employee.
@LoginIDnvarchar(256)512Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a valid login for the employee.
@JobTitlenvarchar(50)100Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a title for the employee.
@HireDatedatetime8Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a hire date for the employee.
@CurrentFlagFlag1Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter the current flag for the employee.

CREATE PROCEDURE [HumanResources].[uspUpdateEmployeeLogin]
   @BusinessEntityID [int],
   @OrganizationNode [hierarchyid],
   @LoginID [nvarchar](256),
   @JobTitle [nvarchar](50),
   @HireDate [datetime],
   @CurrentFlag [dbo].[Flag]
WITH EXECUTE AS CALLER
AS
BEGIN
   SET NOCOUNT ON;

   BEGIN TRY
       UPDATE [HumanResources].[Employee]
       SET [OrganizationNode] = @OrganizationNode
           ,[LoginID] = @LoginID
           ,[JobTitle] = @JobTitle
           ,[HireDate] = @HireDate
           ,[CurrentFlag] = @CurrentFlag
       WHERE [BusinessEntityID] = @BusinessEntityID;
   END TRY
   BEGIN CATCH
       EXECUTE [dbo].[uspLogError];
   END CATCH;
END;
GO
EXEC sp_addextendedproperty N'MS_Description', N'Updates the Employee table with the values specified in the input parameters for the given BusinessEntityID.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', NULL, NULL
GO
EXEC sp_addextendedproperty N'MS_Description', N'Input parameter for the stored procedure uspUpdateEmployeeLogin. Enter a valid EmployeeID from the Employee table.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', 'PARAMETER', N'@BusinessEntityID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter the current flag for the employee.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', 'PARAMETER', N'@CurrentFlag'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a hire date for the employee.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', 'PARAMETER', N'@HireDate'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a title for the employee.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', 'PARAMETER', N'@JobTitle'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a valid login for the employee.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', 'PARAMETER', N'@LoginID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Input parameter for the stored procedure uspUpdateEmployeeHireInfo. Enter a valid ManagerID for the employee.', 'SCHEMA', N'HumanResources', 'PROCEDURE', N'uspUpdateEmployeeLogin', 'PARAMETER', N'@OrganizationNode'
GO