Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. USE [ConferenceFinal]
  2. GO
  3.  
  4. /****** Object: StoredProcedure [dbo].[updateWorkshop] Script Date: 19.01.2017 23:47:22 ******/
  5. SET ANSI_NULLS ON
  6. GO
  7.  
  8. SET QUOTED_IDENTIFIER ON
  9. GO
  10.  
  11. CREATE PROC [dbo].[updateWorkshop]
  12. @id int,
  13. @name varchar(50),
  14. @description varchar(5000) = NULL,
  15. @participants_limit smallint,
  16. @price money
  17. AS
  18. SET NOCOUNT ON
  19. SET XACT_ABORT ON
  20.  
  21. BEGIN TRAN
  22.  
  23. UPDATE [dbo].[Workshop]
  24. SET [name] = @name, [description] = @description, [participants_limit] = @participants_limit, [price] = @price
  25. WHERE [id] = @id
  26.  
  27. COMMIT
  28.  
  29. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement