Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
9| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_user_id | int | 4 | |
| @p_first_name | varchar | 30 | |
| @p_last_name | varchar | 30 | |
| @p_organization | varchar | 80 | |
| @p_position | varchar | 80 | |
| @p_birthday | datetime | 8 | |
| @p_gender | varchar | 1 | |
| @p_codigo_idioma | varchar | 3 | |
| @p_contraparte | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.Imperium_actualizar_perfil_usuario
-- Add the parameters for the stored procedure here
@p_user_id int = NULL,
@p_first_name varchar(30) = NULL,
@p_last_name varchar(30) = NULL,
@p_organization varchar(80) = NULL,
@p_position varchar(80) = NULL,
@p_birthday datetime = NULL,
@p_gender varchar(1) = NULL,
@p_codigo_idioma varchar(3) = NULL,
@p_contraparte int = NULL
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
if (@p_user_id > 0) begin
update users set
first_name = @p_first_name,
last_name = @p_last_name,
organization = @p_organization,
position = @p_position,
birthday = @p_birthday,
gender = @p_gender
where user_id = @p_user_id
if (@p_codigo_idioma is not null AND @p_contraparte > 0)
update LN_contrapartes set codigo_idioma = @p_codigo_idioma where contraparte = @p_contraparte
end
END
GO
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.Imperium_actualizar_perfil_usuario
-- Add the parameters for the stored procedure here
@p_user_id int = NULL,
@p_first_name varchar(30) = NULL,
@p_last_name varchar(30) = NULL,
@p_organization varchar(80) = NULL,
@p_position varchar(80) = NULL,
@p_birthday datetime = NULL,
@p_gender varchar(1) = NULL,
@p_codigo_idioma varchar(3) = NULL,
@p_contraparte int = NULL
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
if (@p_user_id > 0) begin
update users set
first_name = @p_first_name,
last_name = @p_last_name,
organization = @p_organization,
position = @p_position,
birthday = @p_birthday,
gender = @p_gender
where user_id = @p_user_id
if (@p_codigo_idioma is not null AND @p_contraparte > 0)
update LN_contrapartes set codigo_idioma = @p_codigo_idioma where contraparte = @p_contraparte
end
END
GO
Depends On
2Used By
No items found