Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

275 lines
7.9 KiB

  1. -- Script: uddi.v2.ent.dml.sql
  2. -- Author: [email protected]
  3. -- Description: Loads required rows into tables. This script is designed to be run once only at initial build time.
  4. -- Note: This file is best viewed and edited with a tab width of 2.
  5. --
  6. -- UDO_config values
  7. --
  8. INSERT INTO [UDO_config] VALUES('LastChange','Jan 01 0001 12:00AM')
  9. INSERT INTO [UDO_config] VALUES('CurrentAPIVersion','2.0')
  10. INSERT INTO [UDO_config] VALUES('DefaultDiscoveryURL','http://localhost/uddipublic/discovery.ashx?businessKey=')
  11. INSERT INTO [UDO_config] VALUES('OperatorID','4')
  12. INSERT INTO [UDO_config] VALUES('Database.Version','2.0.0001.3')
  13. INSERT INTO [UDO_config] VALUES('Debug.DebuggerLevel','0')
  14. INSERT INTO [UDO_config] VALUES('Debug.EventLogLevel','2')
  15. INSERT INTO [UDO_config] VALUES('Debug.FileLogLevel','0')
  16. INSERT INTO [UDO_config] VALUES('Find.MaxRowsDefault','1000')
  17. INSERT INTO [UDO_config] VALUES('GroupName.Administrators','S-1-5-32-544')
  18. -- TODO: Change to Security.AdministratorGroup
  19. INSERT INTO [UDO_config] VALUES('GroupName.Coordinators','S-1-5-32-544')
  20. -- TODO: Change to Security.CoordinatorGroup
  21. INSERT INTO [UDO_config] VALUES('GroupName.Publishers','S-1-5-32-544')
  22. -- TODO: Change to Security.PublisherGroup
  23. INSERT INTO [UDO_config] VALUES('GroupName.Users','S-1-5-32-545')
  24. -- TODO: Change to Security.UserGroup
  25. INSERT INTO [UDO_config] VALUES('Replication.ResponseLimitCountDefault','1000')
  26. INSERT INTO [UDO_config] VALUES('Security.AuthenticationMode','3')
  27. INSERT INTO [UDO_config] VALUES('Security.AutoRegister', '1')
  28. INSERT INTO [UDO_config] VALUES('Security.HTTPS', '0')
  29. INSERT INTO [UDO_config] VALUES('Security.Timeout', '60')
  30. INSERT INTO [UDO_config] VALUES('Security.KeyTimeout', '7')
  31. INSERT INTO [UDO_config] VALUES('Security.KeyAutoReset', '1')
  32. INSERT INTO [UDO_config] VALUES('TModelKey.GeneralKeywords','uuid:a035a07c-f362-44dd-8f95-e2b134bf43b4')
  33. INSERT INTO [UDO_config] VALUES('TModelKey.Operators','uuid:327A56F0-3299-4461-BC23-5CD513E95C55')
  34. GO
  35. --
  36. -- URLTypes standard values
  37. --
  38. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(0,'mailto',4)
  39. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(1,'http',1)
  40. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(2,'https',2)
  41. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(3,'ftp',3)
  42. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(4,'fax',5)
  43. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(5,'phone',6)
  44. INSERT INTO [UDC_URLTypes]([URLTypeID], [URLType],[SortOrder]) VALUES(6,'other',7)
  45. GO
  46. --
  47. -- [UDO_publisherStatus] standard values
  48. --
  49. INSERT INTO [UDO_publisherStatus] VALUES(0, 'loggedOut') -- Default status for publishers
  50. INSERT INTO [UDO_publisherStatus] VALUES(1, 'loggedIn') -- This status is used only when publishers are logged in
  51. INSERT INTO [UDO_publisherStatus] VALUES(2, 'disabled') -- This status is used to disable a publisher to prevent logins
  52. GO
  53. --
  54. -- [UDO_elementNames] standard values
  55. --
  56. INSERT [UDO_elementNames] VALUES(0,'tModel')
  57. INSERT [UDO_elementNames] VALUES(1,'overviewDoc')
  58. INSERT [UDO_elementNames] VALUES(2,'overviewURL')
  59. INSERT [UDO_elementNames] VALUES(3,'tModelInstanceInfo')
  60. INSERT [UDO_elementNames] VALUES(4,'instanceDetails')
  61. GO
  62. --
  63. -- [UDO_entityTypes] standard values
  64. --
  65. INSERT INTO [UDO_entityTypes] VALUES (0,'tModel')
  66. INSERT INTO [UDO_entityTypes] VALUES (1,'businessEntity')
  67. INSERT INTO [UDO_entityTypes] VALUES (2,'businessService')
  68. INSERT INTO [UDO_entityTypes] VALUES (3,'bindingTemplate')
  69. GO
  70. --
  71. -- [UDO_changeTypes] standard values
  72. --
  73. INSERT INTO [UDO_changeTypes] VALUES(0, 'changeRecordNull')
  74. INSERT INTO [UDO_changeTypes] VALUES(1, 'changeRecordNewData')
  75. INSERT INTO [UDO_changeTypes] VALUES(2, 'changeRecordDelete')
  76. INSERT INTO [UDO_changeTypes] VALUES(3, 'changeRecordHide')
  77. INSERT INTO [UDO_changeTypes] VALUES(4, 'changeRecordPublisherAssertion')
  78. INSERT INTO [UDO_changeTypes] VALUES(5, 'changeRecordDeleteAssertion')
  79. INSERT INTO [UDO_changeTypes] VALUES(6, 'changeRecordCustodyTransfer')
  80. INSERT INTO [UDO_changeTypes] VALUES(7, 'changeRecordAcknowledgement')
  81. INSERT INTO [UDO_changeTypes] VALUES(8, 'changeRecordCorrection')
  82. INSERT INTO [UDO_changeTypes] VALUES(9, 'changeRecordSetAssertions')
  83. GO
  84. --
  85. -- [UDO_changeTypes] standard values
  86. --
  87. INSERT INTO [UDO_queryTypes] VALUES (0, 'get')
  88. INSERT INTO [UDO_queryTypes] VALUES (1, 'find')
  89. GO
  90. --
  91. -- [UDO_contextTypes] standard values
  92. --
  93. INSERT INTO [UDO_contextTypes]([contextTypeID], [contextType]) VALUES(0, 'Other')
  94. INSERT INTO [UDO_contextTypes]([contextTypeID], [contextType]) VALUES(1, 'API')
  95. INSERT INTO [UDO_contextTypes]([contextTypeID], [contextType]) VALUES(2, 'UI')
  96. INSERT INTO [UDO_contextTypes]([contextTypeID], [contextType]) VALUES(3, 'Replication')
  97. GO
  98. --
  99. -- [UDO_operatorStatus] standard values
  100. --
  101. INSERT INTO [UDO_operatorStatus]([operatorStatusID], [operatorStatus]) VALUES(0, 'disabled')
  102. INSERT INTO [UDO_operatorStatus]([operatorStatusID], [operatorStatus]) VALUES(1, 'new')
  103. INSERT INTO [UDO_operatorStatus]([operatorStatusID], [operatorStatus]) VALUES(2, 'normal')
  104. INSERT INTO [UDO_operatorStatus]([operatorStatusID], [operatorStatus]) VALUES(3, 'resigned')
  105. GO
  106. --
  107. -- [UDO_replStatus] standard values, outbound status
  108. --
  109. INSERT INTO [UDO_replStatus]([replStatusID], [replStatus]) VALUES(0, 'success')
  110. INSERT INTO [UDO_replStatus]([replStatusID], [replStatus]) VALUES(1, 'communicationError')
  111. INSERT INTO [UDO_replStatus]([replStatusID], [replStatus]) VALUES(2, 'validationError')
  112. GO
  113. --
  114. -- [UDO_replStatus] standard values, inbound status
  115. --
  116. INSERT INTO [UDO_replStatus]([replStatusID], [replStatus]) VALUES(128, 'notify')
  117. GO
  118. --
  119. -- [UDO_publishers] standard values
  120. --
  121. SET IDENTITY_INSERT [UDO_publishers] ON
  122. GO
  123. INSERT INTO [UDO_publishers] (
  124. [publisherID],
  125. [publisherStatusID],
  126. [PUID],
  127. [email],
  128. [name],
  129. [isoLangCode],
  130. [tModelLimit],
  131. [businessLimit],
  132. [serviceLimit],
  133. [bindingLimit], [assertionLimit])
  134. VALUES(
  135. 4,
  136. 2,
  137. 'System',
  138. '',
  139. 'System',
  140. 'en',
  141. NULL,
  142. NULL,
  143. NULL,
  144. NULL,
  145. NULL)
  146. GO
  147. SET IDENTITY_INSERT [UDO_publishers] OFF
  148. GO
  149. --
  150. -- [UDO_operators] standard values
  151. --
  152. SET IDENTITY_INSERT [UDO_operators] ON
  153. GO
  154. INSERT INTO [UDO_operators] (
  155. [operatorID],
  156. [operatorKey],
  157. [publisherID],
  158. [operatorStatusID],
  159. [name],
  160. [soapReplicationURL],
  161. [certSerialNo],
  162. [certIssuer],
  163. [certSubject],
  164. [flag])
  165. VALUES(
  166. 4,
  167. NEWID(),
  168. 4,
  169. 2,
  170. 'Microsoft UDDI Services',
  171. 'not initialized',
  172. NEWID(),
  173. 'not initialized',
  174. 'not initialized',
  175. 0)
  176. GO
  177. SET IDENTITY_INSERT [UDO_operators] OFF
  178. GO
  179. --
  180. -- Insert [UDO_reportStatus] standard values
  181. --
  182. INSERT [UDO_reportStatus] VALUES(0, 'Available')
  183. INSERT [UDO_reportStatus] VALUES(1, 'Processing')
  184. --
  185. -- Insert [UDO_reports] standard values
  186. --
  187. INSERT [UDO_reports] VALUES('UI_getEntityCounts', 0, GETDATE())
  188. INSERT [UDO_reports] VALUES('UI_getPublisherStats', 0, GETDATE())
  189. INSERT [UDO_reports] VALUES('UI_getTopPublishers', 0, GETDATE())
  190. INSERT [UDO_reports] VALUES('UI_getTaxonomyStats', 0, GETDATE())
  191. GO
  192. --
  193. -- Insert [UDO_reportLines] standard values
  194. --
  195. INSERT [UDO_reportLines] (
  196. [reportID],
  197. [section],
  198. [label],
  199. [value])
  200. VALUES(
  201. 'UI_getEntityCounts',
  202. 'HEADING_STATISTICS_LABEL_REFRESH',
  203. 'HEADING_STATISTICS_LABEL_REFRESH',
  204. '')
  205. INSERT [UDO_reportLines] (
  206. [reportID],
  207. [section],
  208. [label],
  209. [value])
  210. VALUES(
  211. 'UI_getPublisherStats',
  212. 'HEADING_STATISTICS_LABEL_REFRESH',
  213. 'HEADING_STATISTICS_LABEL_REFRESH',
  214. '')
  215. INSERT [UDO_reportLines] (
  216. [reportID],
  217. [section],
  218. [label],
  219. [value])
  220. VALUES(
  221. 'UI_getTopPublishers',
  222. 'HEADING_STATISTICS_LABEL_REFRESH',
  223. 'HEADING_STATISTICS_LABEL_REFRESH',
  224. '')
  225. INSERT [UDO_reportLines] (
  226. [reportID],
  227. [section],
  228. [label],
  229. [value])
  230. VALUES(
  231. 'UI_getTaxonomyStats',
  232. 'HEADING_STATISTICS_LABEL_REFRESH',
  233. 'HEADING_STATISTICS_LABEL_REFRESH',
  234. '')
  235. GO