Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.94 KB | None | 0 0
  1. USE [SRO_VT_ACCOUNT]
  2. GO
  3. /****** Object: Table [dbo].[SK_GameBang_IP] ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. CREATE TABLE [dbo].[SK_GameBang_IP](
  9.     [ip] [nchar](10) NULL,
  10.     [capacity] [nchar](10) NULL
  11. ) ON [PRIMARY]
  12. GO
  13.  
  14. DROP TABLE [dbo].[_PrivilegedIP]
  15.  
  16. CREATE TABLE [dbo].[_PrivilegedIP](
  17.     [IP1] [tinyint] NOT NULL,
  18.     [IP2] [tinyint] NOT NULL,
  19.     [IP3] [tinyint] NOT NULL,
  20.     [IP4] [tinyint] NOT NULL,
  21.     [IP5] [tinyint] NOT NULL,
  22.     [IP6] [tinyint] NOT NULL,
  23.     [IP7] [tinyint] NOT NULL,
  24.     [IP8] [tinyint] NOT NULL
  25. ) ON [PRIMARY]
  26.  
  27. USE SRO_VT_SHARD
  28. /****** Object: StoredProcedure [dbo].[_ExistsServiceOffRentItem] ******/
  29. SET ANSI_NULLS ON
  30. GO
  31. SET QUOTED_IDENTIFIER ON
  32. GO
  33. CREATE procedure [dbo].[_ExistsServiceOffRentItem]  
  34. as  
  35.  
  36. if( exists (select * from _Items with (nolock) where RefItemID in (select RefItemID from _RefRentItem where Service = 0 ) ) )  
  37. begin
  38.  return -1
  39. end
  40. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement