Advertisement
Guest User

Untitled

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