Difference between revisions of "HumanResources.uspUpdateEmployeePersonalInfo (procedure)"

From dbscript Online Help
Jump to: navigation, search
Line 33: Line 33:
 
END;
 
END;
 
</pre>
 
</pre>
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 40: Line 39:
 
| '''procedure
 
| '''procedure
 
| HumanResources.uspUpdateEmployeePersonalInfo
 
| HumanResources.uspUpdateEmployeePersonalInfo
|-
+
|- valign="top"
  
 
| '''Description
 
| '''Description
Line 81: Line 80:
 
| '''Object Type
 
| '''Object Type
 
| '''Dependency Type
 
| '''Dependency Type
+
 
 
|-
 
|-
 
| [[HumanResources.Employee_(table)|HumanResources.Employee]]
 
| [[HumanResources.Employee_(table)|HumanResources.Employee]]
Line 90: Line 89:
 
| Procedure
 
| Procedure
 
| Execute
 
| Execute
 +
|-
 +
| [[.HumanResources_(schema)|.HumanResources]]
 +
| Schema
 +
| Schema
 
|}
 
|}

Revision as of 07:26, 30 November 2009

wikibot

procedure HumanResources.uspUpdateEmployeePersonalInfo
CREATE PROCEDURE [HumanResources].[uspUpdateEmployeePersonalInfo]
    @EmployeeID [int], 
    @NationalIDNumber [nvarchar](15), 
    @BirthDate [datetime], 
    @MaritalStatus [nchar](1), 
    @Gender [nchar](1)
WITH EXECUTE AS CALLER
AS
BEGIN
    SET NOCOUNT ON;

    BEGIN TRY
        UPDATE [HumanResources].[Employee] 
        SET [NationalIDNumber] = @NationalIDNumber 
            ,[BirthDate] = @BirthDate 
            ,[MaritalStatus] = @MaritalStatus 
            ,[Gender] = @Gender 
        WHERE [EmployeeID] = @EmployeeID;
    END TRY
    BEGIN CATCH
        EXECUTE [dbo].[uspLogError];
    END CATCH;
END;

automatically generated

procedure HumanResources.uspUpdateEmployeePersonalInfo
Description Updates the Employee table with the values specified in the input parameters for the given EmployeeID.

CREATE PROCEDURE [HumanResources].[uspUpdateEmployeePersonalInfo]
    @EmployeeID [int], 
    @NationalIDNumber [nvarchar](15), 
    @BirthDate [datetime], 
    @MaritalStatus [nchar](1), 
    @Gender [nchar](1)
WITH EXECUTE AS CALLER
AS
BEGIN
    SET NOCOUNT ON;

    BEGIN TRY
        UPDATE [HumanResources].[Employee] 
        SET [NationalIDNumber] = @NationalIDNumber 
            ,[BirthDate] = @BirthDate 
            ,[MaritalStatus] = @MaritalStatus 
            ,[Gender] = @Gender 
        WHERE [EmployeeID] = @EmployeeID;
    END TRY
    BEGIN CATCH
        EXECUTE [dbo].[uspLogError];
    END CATCH;
END;


Referenced Object Object Type Dependency Type
HumanResources.Employee Table Update
dbo.uspLogError Procedure Execute
.HumanResources Schema Schema