Advertisement
antoshka1312

Untitled

Nov 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. USE [PS_GameData]
  2. GO
  3. /****** Object: StoredProcedure [dbo].[usp_UpdateMapID] Script Date: 19.11.2017 14:17:12 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8.  
  9.  
  10. create Proc [dbo].[usp_UpdateMapID]
  11.  
  12. @CharID int,
  13. @Map smallint
  14.  
  15. AS
  16.  
  17. SET NOCOUNT ON
  18.  
  19. DECLARE @ServerID int
  20. SET @ServerID = 1
  21.  
  22. UPDATE Chars
  23. SET Map = @Map
  24. WHERE CharID = @CharID
  25.  
  26. IF(@@ERROR = 0 AND @@ROWCOUNT = 1)
  27. BEGIN
  28. RETURN 1
  29. END
  30. ELSE
  31. BEGIN
  32. RETURN -1
  33. END
  34.  
  35. SET NOCOUNT OFF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement