Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.12 KB | None | 0 0
  1. USE [l3dev2]
  2. GO
  3. /****** Object:  StoredProcedure [dbo].[usp_profileUserSaveCouple]    Script Date: 11/30/2015 3:09:51 PM ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. ALTER PROCEDURE [dbo].[usp_profileUserSaveCouple]
  9. (
  10.     @UserId INT,
  11.     @CoupleType INT,
  12.     @CoupleGender nvarchar(2),
  13.     @CoupleOrientation INT,
  14.     @DOB nvarchar(10),
  15.     @Gender nvarchar(1),
  16.     @Height INT,
  17.     @Ethnicity INT,
  18.     @HairColour INT,
  19.     @BodyType INT,
  20.     @EyeColour INT,
  21.     @SexualOrientation INT,
  22.     @Occupation INT,
  23.     @Personality INT,
  24.     @Interests nvarchar(255)
  25. )
  26. AS
  27. BEGIN
  28.    
  29.     SET NOCOUNT ON;
  30.            
  31.         UPDATE
  32.             [dbo].[user_couple]
  33.         SET
  34.             [user_id] = @UserId,
  35.             [couple_type] = @CoupleType,
  36.             [couple_gender] = @CoupleGender,
  37.             [couple_orientation] = @CoupleOrientation,
  38.             [dob] = @DOB,
  39.             [gender] = @Gender,
  40.             [height] = @Height,
  41.             [ethnicity] = @Ethnicity,
  42.             [hair_colour] = @HairColour,
  43.             [body_type] = @BodyType,
  44.             [eye_colour] = @EyeColour,
  45.             [sexual_orientation] = @SexualOrientation,
  46.             [occupation] = @Occupation,
  47.             [personality] = @Personality,
  48.             [interests] = @interests
  49.         WHERE [user_id] = @UserId
  50.        
  51. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement