dbInitScript_mssqlserver.sql 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335
  1. -- Licensed Materials - Property of IBM
  2. --
  3. -- BI and PM: CM
  4. --
  5. -- (C) Copyright IBM Corp. 2008, 2020
  6. --
  7. -- US Government Users Restricted Rights - Use, duplication or disclosure
  8. -- restricted by GSA ADP Schedule Contract with IBM Corp.
  9. -- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. -- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. CREATE TABLE CMOBJECTS (
  12. CMID int NOT NULL ,
  13. PCMID int NOT NULL ,
  14. VERSION int default (1) NOT NULL ,
  15. CREATED datetime NOT NULL ,
  16. MODIFIED datetime NOT NULL ,
  17. DISABLED tinyint NULL ,
  18. CLASSID int NOT NULL ,
  19. DISPSEQ int default(0) not NULL,
  20. OWNER int NULL,
  21. TENANTID int default(0) not NULL,
  22. CONSTRAINT PK_CMOBJECTS PRIMARY KEY (CMID)
  23. )
  24. create index IDX_CLASS on CMOBJECTS(CLASSID)
  25. create index IDX_CLASS1 on CMOBJECTS(CMID, CLASSID)
  26. create index IDX_PARENT on CMOBJECTS(PCMID)
  27. create index IDX_CREATED on CMOBJECTS(CREATED)
  28. create table CMOBJNAMES (
  29. CMID int not null,
  30. LOCALEID smallint not null,
  31. MAPDLOCALEID smallint,
  32. ISDEFAULT bit not null,
  33. NAME nvarchar(256) not null,
  34. constraint PK_CMOBJNAMES primary key (CMID, LOCALEID)
  35. )
  36. create index IDX_NAME on CMOBJNAMES(NAME)
  37. create trigger CMOBJNAMES_INSORUPD_TR on CMOBJNAMES
  38. instead of insert
  39. as
  40. begin
  41. set nocount on
  42. save transaction SAVEPOINT
  43. if (select count(*) from inserted) > 1
  44. begin
  45. insert into CMOBJNAMES (CMID, LOCALEID, ISDEFAULT, MAPDLOCALEID, NAME) select CMID, LOCALEID, ISDEFAULT, MAPDLOCALEID, NAME from inserted
  46. if @@ERROR <> 0
  47. rollback transaction SAVEPOINT
  48. end
  49. else
  50. begin
  51. declare @icmid int
  52. declare @ilocale int
  53. declare @iname nvarchar(256)
  54. /**/
  55. select @icmid=CMID, @ilocale=LOCALEID, @iname=NAME from inserted
  56. update CMOBJNAMES set NAME=@iname where CMID=@icmid and LOCALEID=@ilocale
  57. if @@ROWCOUNT = 0
  58. insert into CMOBJNAMES (CMID, LOCALEID, ISDEFAULT, MAPDLOCALEID, NAME) select CMID, LOCALEID, ISDEFAULT, MAPDLOCALEID, NAME from inserted
  59. /**/
  60. if @@ERROR <> 0
  61. rollback transaction SAVEPOINT
  62. end
  63. end
  64. CREATE TABLE CMDATA (
  65. CMID int NOT NULL ,
  66. CONTENTTYPE varchar (256) NULL ,
  67. DATASIZE bigint,
  68. DATACOMP bit default(0) not null,
  69. DATAURI varchar (256) NULL,
  70. DATAPROP image NULL,
  71. RESOURCETYPE varchar (32) NULL,
  72. CONSTRAINT PK_CMDATA PRIMARY KEY (CMID)
  73. )
  74. CREATE TABLE CMARCHIVESTATUS (
  75. CMID int NOT NULL,
  76. ARCHSTAT tinyint default(0) not null,
  77. CONSTRAINT PK_CMARCHIVESTATUS PRIMARY KEY (CMID)
  78. )
  79. CREATE TABLE CMSTOREIDS (
  80. CMID int NOT NULL,
  81. STOREID char(33) NULL,
  82. CONSTRAINT PK_CMSTOREIDS PRIMARY KEY (CMID)
  83. )
  84. CREATE TABLE CMOBJPROPS1 (
  85. CMID int NOT NULL ,
  86. BUSPHONE varchar (32) NULL ,
  87. COMMONNAME nvarchar (64) NULL ,
  88. EMAIL nvarchar (128) NULL ,
  89. FAXPHONE varchar (32) NULL ,
  90. GIVENNAME nvarchar (64) NULL ,
  91. HOMEPHONE varchar (32) NULL ,
  92. MOBILEPHONE varchar (32) NULL ,
  93. PAGERPHONE varchar (32) NULL ,
  94. PADDRESS nvarchar (256) NULL ,
  95. SURNAME nvarchar (64) NULL ,
  96. TIMEZONE nvarchar (64) NULL ,
  97. CLOCALEID smallint NULL ,
  98. PRODLOCALE varchar (64) NULL ,
  99. OBJID nvarchar (1024) NULL,
  100. USEACCESSIBILITY bit default(0) not null,
  101. USERNAME nvarchar (64) NULL,
  102. ORIENTATION tinyint NULL ,
  103. HORIZRENDERLIMIT int null,
  104. VERTRENDERLIMIT int null,
  105. MOBILEDEVID nvarchar (256) NULL ,
  106. NOTIFICATIONEMAIL nvarchar (256) NULL ,
  107. CONSTRAINT PK_CMOBJPROPS1 PRIMARY KEY (CMID)
  108. )
  109. CREATE TABLE CMOBJPROPS10 (
  110. CMID int NOT NULL ,
  111. CONTACTEMAIL nvarchar (128) NULL ,
  112. CONTACT nvarchar (4000) NULL,
  113. CONSTRAINT PK_CMOBJPROPS10 PRIMARY KEY (CMID)
  114. )
  115. CREATE TABLE CMOBJPROPS11 (
  116. CMID int NOT NULL ,
  117. STATUSID tinyint NULL,
  118. EVENTID varchar(45) null,
  119. OWNEREVENTID varchar(45) null,
  120. DISPATCHERID varchar(50) null,
  121. MAXDETAILSEVTY tinyint null,
  122. SCHEDTRIGNAME nvarchar(256) null,
  123. SCHEDTYPE tinyint null,
  124. RESTARTEVENTID varchar(45) null,
  125. CONSTRAINT PK_CMOBJPROPS11 PRIMARY KEY (CMID)
  126. )
  127. create index IDX_CMOWNEREVENTID on CMOBJPROPS11(OWNEREVENTID)
  128. create index IDX_CMRESTARTID on CMOBJPROPS11(RESTARTEVENTID)
  129. CREATE TABLE CMOBJPROPS13 (
  130. CMID int NOT NULL,
  131. ORD int NOT NULL,
  132. PARMNAME nvarchar(256) not null,
  133. CPARMVALUE image null,
  134. constraint PK_CMOBJPROPS13 primary key (CMID, ORD)
  135. )
  136. CREATE TABLE CMOBJPROPS14 (
  137. CMID int NOT NULL ,
  138. RELATED ntext NULL,
  139. MYPAGE ntext null,
  140. RETENTION ntext NULL,
  141. RECIPSEMAIL ntext NULL,
  142. CONSTRAINT PK_CMOBJPROPS14 PRIMARY KEY (CMID)
  143. )
  144. create table CMOBJPROPS15 (
  145. CMID int NOT NULL,
  146. BRSHIAFFINECONS int null,
  147. BRSAFFINECONS int null,
  148. BRSMAXPROCS int null,
  149. METADATAMODEL nvarchar(4000) null,
  150. BRSEXECTIMELIMIT int null,
  151. BRSDATASOURCECHG datetime null,
  152. constraint PK_CMOBJPROPS15 primary key (CMID)
  153. )
  154. create table CMOBJPROPS16 (
  155. CMID int not null,
  156. RSHIAFFINECONS int null,
  157. RSAFFINECONS int null,
  158. RSMAXPROCS int null,
  159. RSQUEUELIMIT int null,
  160. RUNNINGSTATE tinyint null,
  161. ADVSETTINGS nvarchar(4000) null,
  162. RSEXECTIMELIMIT int null,
  163. ROUTINGTABLE image null,
  164. constraint PK_CMOBJPROPS16 primary key (CMID)
  165. )
  166. create table CMOBJPROPS17 (
  167. CMID int not null,
  168. NONPEAKBEGINHOUR tinyint null,
  169. NONPEAKMAXJOBS int null,
  170. PEAKBEGINHOUR tinyint null,
  171. PEAKMAXJOBS int null,
  172. NEWNONPEAKBEGINHOUR tinyint null,
  173. NEWNONPEAKMAXJOBS int null,
  174. NEWPEAKBEGINHOUR tinyint null,
  175. NEWPEAKMAXJOBS int null,
  176. USERCAPABILITY tinyint null,
  177. STARTACTIVE bit null,
  178. COMPONENTID tinyint null,
  179. PREVIMGLOCATION nvarchar(256) NULL,
  180. RESRCELOCATION nvarchar(256) NULL,
  181. constraint PK_CMOBJPROPS17 primary key (CMID)
  182. )
  183. create table CMOBJPROPS18 (
  184. CMID int not null,
  185. OUTPUTREFS ntext null,
  186. PATHS ntext null,
  187. constraint PK_CMOBJPROPS18 primary key (CMID)
  188. )
  189. CREATE TABLE CMOBJPROPS2 (
  190. CMID int NOT NULL ,
  191. TASKID varchar (32) NULL ,
  192. STARTDATE datetime NULL ,
  193. ENDDATE datetime NULL ,
  194. ENDTYPE tinyint NULL ,
  195. EVERYNPERIODS int NULL ,
  196. DAILYPERIOD tinyint NULL ,
  197. MONTHLYABSDAY tinyint NULL ,
  198. MONTHLYRELDAY tinyint NULL ,
  199. MONTHLYRELWEEK tinyint NULL ,
  200. TYPE tinyint NULL ,
  201. YEARLYABSDAY tinyint NULL ,
  202. YEARLYABSMONTH tinyint NULL ,
  203. YEARLYRELDAY tinyint NULL ,
  204. YEARLYRELMONTH tinyint NULL ,
  205. YEARLYRELWEEK tinyint NULL ,
  206. ACTIVE bit default(0) NOT NULL,
  207. WEEKLYMONDAY bit default(0) NOT NULL ,
  208. WEEKLYTUESDAY bit default(0) NOT NULL ,
  209. WEEKLYWEDNESDAY bit default(0) NOT NULL ,
  210. WEEKLYTHURSDAY bit default(0) NOT NULL ,
  211. WEEKLYFRIDAY bit default(0) NOT NULL ,
  212. WEEKLYSATURDAY bit default(0) NOT NULL ,
  213. WEEKLYSUNDAY bit default(0) NOT NULL,
  214. PRIORITY int NULL,
  215. INTRARECURSTART char (13) null,
  216. INTRARECUREND char (13) null,
  217. INTRARECURINTERVAL varchar (50) null,
  218. CONSTRAINT PK_CMOBJPROPS2 PRIMARY KEY (CMID)
  219. )
  220. create index IDX_TASKID on CMOBJPROPS2(TASKID)
  221. create index IDX_PRIORITY on CMOBJPROPS2(PRIORITY)
  222. create table CMOBJPROPS20 (
  223. CMID int not null,
  224. EXECLOCALEID smallint null,
  225. EXECFORMAT tinyint null,
  226. EXECPAGEORIENT tinyint null,
  227. EXECPROMPT bit default(1) not null,
  228. DEFPORTACT tinyint null,
  229. ALLOWSUBSCRIBE bit null,
  230. ALLOWNOTIFICATION bit null,
  231. OBJREFS ntext null,
  232. constraint PK_CMOBJPROPS20 primary key (CMID)
  233. )
  234. create table CMOBJPROPS23 (
  235. CMID int not null,
  236. LSAUDITADMINLVL tinyint null,
  237. LSAUDITLVL tinyint null,
  238. LSAUDITOTHERLVL tinyint null,
  239. LSAUDITUSAGELVL tinyint null,
  240. LSAUDITNATIVEQRY bit null,
  241. QSRMEMCACHEROOT nvarchar (256) null,
  242. constraint PK_CMOBJPROPS23 primary key (CMID)
  243. )
  244. create table CMOBJPROPS24 (
  245. CMID int not null,
  246. LOCATION nvarchar(512) null,
  247. MODELNAME nvarchar(256) null,
  248. PRINTERADDRESS nvarchar(2048) null,
  249. constraint PK_CMOBJPROPS24 primary key (CMID)
  250. )
  251. create table CMOBJPROPS25 (
  252. CMID int not null,
  253. DEPLOYOBJECT nvarchar (4000) null,
  254. DEPLOYOBJANC ntext null,
  255. DEPLOYOBJCLASSID int null,
  256. DEPLOYOBJDEFNAME nvarchar(256) null,
  257. DEPLOYOBJDEFSTATUS tinyint null,
  258. DEPLOYOBJUSAGE tinyint null,
  259. MESSAGE image null,
  260. constraint PK_CMOBJPROPS25 primary key (CMID)
  261. )
  262. CREATE TABLE CMOBJPROPS26 (
  263. CMID int not null,
  264. DELIVOPTIONS ntext null,
  265. constraint PK_CMOBJPROPS26 primary key (CMID)
  266. )
  267. CREATE TABLE CMOBJPROPS27 (
  268. CMID int not null,
  269. CUBECONTNAME nvarchar (1024) NULL,
  270. GATEWAY nvarchar (4000) NULL,
  271. HASPROMPTS bit default(0) not null,
  272. PPOPTIONS ntext null,
  273. DATABLOCKS image null,
  274. PPDEFPORTACT tinyint null,
  275. constraint PK_CMOBJPROPS27 primary key (CMID)
  276. )
  277. CREATE TABLE CMOBJPROPS28 (
  278. CMID int NOT NULL,
  279. EVENTKEY ntext NULL,
  280. EVENTTYPES ntext NULL,
  281. FILTERDATAITEM nvarchar(256) null,
  282. PARMASSIGN image NULL,
  283. SEQUENCING tinyint NULL,
  284. ALLOWNOTIFICATION bit null,
  285. DEFPORTACTION tinyint NULL,
  286. RUNCOND tinyint NULL,
  287. SPEC ntext NULL,
  288. CONSTRAINT PK_CMOBJPROPS28 PRIMARY KEY (CMID)
  289. )
  290. CREATE TABLE CMOBJPROPS3 (
  291. CMID int NOT NULL ,
  292. PROPNAME varchar(50) NOT NULL,
  293. LOCALEID smallint NOT NULL,
  294. VALUE nvarchar (3772) NULL,
  295. ISDEFAULT bit null,
  296. MAPDLOCALEID smallint,
  297. CONSTRAINT PK_CMOBJPROPS3 PRIMARY KEY (CMID, PROPNAME, LOCALEID)
  298. )
  299. CREATE TABLE CMOBJPROPS30 (
  300. CMID integer not null,
  301. HANDLE nvarchar (255) NULL,
  302. BINDING ntext NULL,
  303. REGISTRATION ntext NULL,
  304. SERVICEDESCR ntext NULL,
  305. LAYOUT ntext NULL,
  306. REQUIREDCAP ntext NULL,
  307. CANCUSTOMIZE bit null,
  308. CONTEXT ntext NULL,
  309. DEPLOYREFS ntext NULL,
  310. CONSTRAINT PK_CMOBJPROPS30 PRIMARY KEY (CMID)
  311. )
  312. CREATE TABLE CMOBJPROPS31 (
  313. CMID int not null,
  314. ASAUDITLVL tinyint null,
  315. BRSAUDITLVL tinyint null,
  316. CMSAUDITLVL tinyint null,
  317. DISPAUDITLVL tinyint null,
  318. DSAUDITLVL tinyint null,
  319. EMSAUDITLVL tinyint null,
  320. JSAUDITLVL tinyint null,
  321. MDSAUDITLVL tinyint null,
  322. MMSAUDITLVL tinyint null,
  323. MSAUDITLVL tinyint null,
  324. PACSAUDITLVL tinyint null,
  325. PDSAUDITLVL tinyint null,
  326. PRSAUDITLVL tinyint null,
  327. PSAUDITLVL tinyint null,
  328. PTSAUDITLVL tinyint null,
  329. RSAUDITLVL tinyint null,
  330. SSAUDITLVL tinyint null,
  331. BRSAUDITNATIVEQRY bit null,
  332. RSAUDITNATIVEQRY bit null,
  333. DISAUDITLVL tinyint null,
  334. RSDATASOURCECHG datetime null,
  335. IDSAUDITLVL tinyint null,
  336. ISSAUDITLVL tinyint null,
  337. IUSAUDITLVL tinyint null,
  338. RDSAUDITLVL tinyint null,
  339. RDSMAXDATASIZE int null,
  340. MBSAUDITLVL tinyint null,
  341. DDSAUDITLVL tinyint null,
  342. DDSLISPERPRCSR int null,
  343. DMSAUDITLVL tinyint null,
  344. MISAUDITLVL tinyint null,
  345. MDSAFFINECONNECTIONS int null,
  346. MDSNONAFFINECONNCTS int null,
  347. MDSPEAKCONS int null,
  348. MDSPEAKNONAFFINECONNCTS int null,
  349. MDSPEAKMAXPROCS int null,
  350. MDSMAXPROCESSES int null,
  351. MDSEXECUTIONTIMELIMIT int null,
  352. MDSQUEUELIMIT int null,
  353. MDINFOURI nvarchar(4000) null,
  354. DIMSAUDITLVL tinyint null,
  355. EVSAUDITLVL tinyint null,
  356. GSAUDITLVL tinyint null,
  357. AASAUDITLVL tinyint null,
  358. HTSAUDITLVL tinyint null,
  359. CMCSAUDITLVL tinyint null,
  360. QSAUDITLVL tinyint null,
  361. BCSAUDITLVL tinyint null,
  362. CSAUDITLVL tinyint null,
  363. FSAUDITLVL tinyint null,
  364. STSAUDITLVL tinyint null,
  365. ANSAUDITLVL tinyint null,
  366. RMDSAUDITLVL tinyint null,
  367. IDVIZAUDITLVL tinyint null,
  368. REPOSAUDITLVL tinyint null,
  369. SACAMAUDITLVL tinyint null,
  370. constraint PK_CMOBJPROPS31 primary key (CMID)
  371. )
  372. create table CMOBJPROPS32 (
  373. CMID int not null,
  374. STOREDPROCNAME nvarchar(256) null,
  375. constraint PK_CMOBJPROPS32 primary key (CMID)
  376. )
  377. CREATE TABLE CMOBJPROPS33 (
  378. CMID int NOT NULL,
  379. NAME nvarchar(256) null,
  380. USERID nvarchar(1024) null,
  381. LASTLOGIN datetime null,
  382. CAPABILITIES varchar(64) null,
  383. LICENSE smallint null,
  384. constraint PK_CMOBJPROPS33 primary key (CMID)
  385. )
  386. create table CMOBJPROPS34 (
  387. CMID int not null,
  388. ACTION tinyint null,
  389. BOOKMARKITEM nvarchar(256) null,
  390. BOOKMARKTEXT nvarchar(256) null,
  391. DRILLPARMASSIGN image null,
  392. SCOPE image null,
  393. SPEC ntext NULL ,
  394. TARGETOPTIONS ntext null,
  395. DEPLOYREFS ntext NULL,
  396. constraint PK_CMOBJPROPS34 primary key (CMID)
  397. )
  398. CREATE TABLE CMOBJPROPS35 (
  399. CMID int NOT NULL,
  400. BINDINGNAME nvarchar (256) null,
  401. INPUTMESSNAME nvarchar (256) null,
  402. OPERATIONNAME nvarchar (256) null,
  403. OUTPUTMESSNAME nvarchar (256) null,
  404. SERVICENAME nvarchar (256) null,
  405. BULKEVENTS bit null,
  406. constraint PK_CMOBJPROPS35 primary key (CMID)
  407. )
  408. CREATE TABLE CMOBJPROPS36 (
  409. CMID int NOT NULL,
  410. ACTION tinyint NULL,
  411. constraint PK_CMOBJPROPS36 primary key (CMID)
  412. )
  413. CREATE TABLE CMOBJPROPS37 (
  414. CMID int NOT NULL,
  415. ROUTINGHINTS ntext NULL,
  416. PROFILESETTINGS ntext NULL,
  417. PROFILERANK int default(0) NOT NULL,
  418. constraint PK_CMOBJPROPS37 primary key (CMID)
  419. )
  420. CREATE TABLE CMOBJPROPS38 (
  421. CMID int NOT NULL ,
  422. CTITEMCOUNTDEFAULT int null,
  423. CTITEMCOUNTLIMIT int null,
  424. MBRITEMCOUNTDEFAULT int null,
  425. MBRITEMCOUNTLIMIT int null,
  426. CONSTRAINT PK_CMOBJPROPS38 PRIMARY KEY (CMID)
  427. )
  428. CREATE TABLE CMOBJPROPS39 (
  429. PROPID smallint NOT NULL,
  430. CMID int NOT NULL,
  431. VALUE tinyint NOT NULL
  432. )
  433. create index IDX_CMOBJPROPS39 on CMOBJPROPS39 (CMID)
  434. CREATE TABLE CMOBJPROPS4 (
  435. CMID int NOT NULL ,
  436. HEIGHT varchar(20) NULL ,
  437. WIDTH varchar(20) NULL ,
  438. UNIT tinyint NULL,
  439. CONSTRAINT PK_CMOBJPROPS4 PRIMARY KEY (CMID)
  440. )
  441. CREATE TABLE CMOBJPROPS40 (
  442. CMID int NOT NULL ,
  443. APPGUID varchar(50) NULL ,
  444. APPID nvarchar (256) NULL ,
  445. APPSTATE tinyint NULL ,
  446. APPURL nvarchar (4000) NULL ,
  447. CONSTRAINT PK_CMOBJPROPS40 PRIMARY KEY (CMID)
  448. )
  449. CREATE TABLE CMOBJPROPS41 (
  450. CMID int NOT NULL ,
  451. DEPTH int null,
  452. ITEMID nvarchar (256) NULL ,
  453. PARENTID nvarchar (256) NULL ,
  454. CONSTRAINT PK_CMOBJPROPS41 PRIMARY KEY (CMID)
  455. )
  456. CREATE TABLE CMOBJPROPS42 (
  457. CMID int NOT NULL ,
  458. SPEC ntext NULL ,
  459. CONSTRAINT PK_CMOBJPROPS42 PRIMARY KEY (CMID)
  460. )
  461. CREATE TABLE CMOBJPROPS43 (
  462. CMID int NOT NULL ,
  463. SPEC ntext NULL ,
  464. CONSTRAINT PK_CMOBJPROPS43 PRIMARY KEY (CMID)
  465. )
  466. CREATE TABLE CMOBJPROPS44 (
  467. CMID int NOT NULL ,
  468. RDSGATEWMAPPING image null,
  469. CONSTRAINT PK_CMOBJPROPS44 PRIMARY KEY (CMID)
  470. )
  471. CREATE TABLE CMOBJPROPS45 (
  472. CMID int NOT NULL,
  473. LINK tinyint NULL,
  474. constraint PK_CMOBJPROPS45 primary key (CMID)
  475. )
  476. CREATE TABLE CMOBJPROPS46 (
  477. CMID int NOT NULL,
  478. DOCTYPE nvarchar (256) NULL,
  479. constraint PK_CMOBJPROPS46 primary key (CMID)
  480. )
  481. CREATE TABLE CMOBJPROPS47 (
  482. CMID int NOT NULL,
  483. SYSTEMMETRIC tinyint NULL,
  484. PROPERTIES image null,
  485. constraint PK_CMOBJPROPS47 primary key (CMID)
  486. )
  487. CREATE TABLE CMOBJPROPS48 (
  488. CMID int NOT NULL,
  489. ASCONNECTIONS int null,
  490. CMSCONNECTIONS int null,
  491. DDSCONNECTIONS int null,
  492. DISCONNECTIONS int null,
  493. DSCONNECTIONS int null,
  494. IDSCONNECTIONS int null,
  495. ISSCONNECTIONS int null,
  496. IUSCONNECTIONS int null,
  497. JSCONNECTIONS int null,
  498. MBSCONNECTIONS int null,
  499. MMSCONNECTIONS int null,
  500. PACSCONNECTIONS int null,
  501. PRSCONNECTIONS int null,
  502. PTSCONNECTIONS int null,
  503. BRSCHHOTSPOTLIMIT int null,
  504. RSCHHOTSPOTLIMIT int null,
  505. CAPACITY float null,
  506. LOADBALMODE tinyint null,
  507. DMSCONNECTIONS int null,
  508. MISCONNECTIONS int null,
  509. PDSCONNECTIONS int null,
  510. DSCOMPATTACHLIMIT int null,
  511. QSDIAGENABLED bit null,
  512. QSMETENABLED bit null,
  513. QSQUERYEXECTR bit null,
  514. QSPLANTRC bit null,
  515. BCSAFFCONS int null,
  516. BCSEXECLMT int null,
  517. BCSMAXPROCS int null,
  518. BCSNONAFFCONS int null,
  519. BCSPEAKAFFCONS int null,
  520. BCSPEAKMAXPROCS int null,
  521. BCSPEAKNONAFFCONS int null,
  522. CSAFFCONS int null,
  523. CSEXECLMT int null,
  524. CSMAXPROCS int null,
  525. CSNONAFFCONS int null,
  526. CSPEAKAFFCONS int null,
  527. CSPEAKMAXPROCS int null,
  528. CSPEAKNONAFFCONS int null,
  529. FSAFFCONS int null,
  530. FSEXECLMT int null,
  531. FSCMAXPROCS int null,
  532. FSNONAFFCONS int null,
  533. FSPEAKAFFCONS int null,
  534. FSPEAKMAXPROCS int null,
  535. FSPEAKNONAFFCONS int null,
  536. RMDSAFFCONS int null,
  537. RMDSEXECLMT int null,
  538. RMDSNONAFFCONS int null,
  539. RMDSPEAKAFFCONS int null,
  540. RMDSPEAKNONAFFCONS int null,
  541. DASAUDITLVL tinyint null,
  542. RMDSCONS int null,
  543. RMDSPEAKCONS int null,
  544. QSVERBGCLOGLIMIT int null,
  545. QSMDQUERYSIZELIMIT int null,
  546. QSGENCOMINNATSQL bit null,
  547. QSDISVERBGCLOG bit null,
  548. QSINITNURSESIZE int null,
  549. QSNURSESIZELIMIT int null,
  550. QSGCPOLICY tinyint null,
  551. REPOSCACHEOBJTTL int null,
  552. REPOSNUMOBJDISK int null,
  553. REPOSNUMOBJMEM int null,
  554. MAXSTORESZMB int null,
  555. constraint PK_CMOBJPROPS48 primary key (CMID)
  556. )
  557. CREATE TABLE CMOBJPROPS49 (
  558. CMID int NOT NULL ,
  559. URI nvarchar (4000) NULL ,
  560. CONSTRAINT PK_CMOBJPROPS49 PRIMARY KEY (CMID)
  561. )
  562. CREATE TABLE CMOBJPROPS5 (
  563. CMID int NOT NULL ,
  564. ACTEXECTIME datetime NULL ,
  565. ACTCOMPTIME datetime NULL ,
  566. REQEXECTIME datetime NULL ,
  567. USERREF nvarchar (4000) NULL,
  568. DETAILTIME datetime NULL ,
  569. DETAIL ntext NULL,
  570. SEVERITY tinyint NULL,
  571. DETAILTYPE varchar(64) NULL,
  572. INFO ntext NULL,
  573. CONSTRAINT PK_CMOBJPROPS5 PRIMARY KEY (CMID)
  574. )
  575. create index IDX_REQEXECTIME on CMOBJPROPS5(REQEXECTIME)
  576. CREATE TABLE CMOBJPROPS50 (
  577. CMID int NOT NULL,
  578. CONTEXT image NULL,
  579. CONTEXTCOUNT int NULL,
  580. LASTPAGE nvarchar(256) null,
  581. DATADESCRIPTOR ntext null,
  582. METADATA image null,
  583. CONSTRAINT PK_CMOBJPROPS50 PRIMARY KEY (CMID)
  584. )
  585. CREATE TABLE CMOBJPROPS51 (
  586. CMID int NOT NULL ,
  587. SERVERGROUP nvarchar (256) null,
  588. RUNASOWNER bit null,
  589. CANBURST bit null,
  590. SCHEDTRIGNAME nvarchar(256) NULL,
  591. RUNWITHOWNERCAPS bit null,
  592. QUERYMODE ntext NULL,
  593. RUNINADVANCEDVIEWER bit null,
  594. DSMODE varchar(4000) null,
  595. CONSTRAINT PK_CMOBJPROPS51 PRIMARY KEY (CMID)
  596. )
  597. CREATE TABLE CMOBJPROPS52 (
  598. CMID int NOT NULL ,
  599. CONNECTSTR nvarchar (1024) NULL ,
  600. ISOLEVEL tinyint NULL ,
  601. QUALIFIER tinyint NULL ,
  602. REPLACEMENT nvarchar (256) NULL ,
  603. CLOSECONNECTCMD ntext NULL ,
  604. OPENCONNECTCMD ntext NULL ,
  605. CLOSESESSCMD ntext NULL ,
  606. OPENSESSCMD ntext NULL ,
  607. APITOKEN ntext NULL ,
  608. NOTIFYONCHANGE bit NULL,
  609. CONSTRAINT PK_CMOBJPROPS52 PRIMARY KEY (CMID)
  610. )
  611. CREATE TABLE CMOBJPROPS53 (
  612. CMID int NOT NULL ,
  613. SEQUENCING tinyint NULL ,
  614. CONSTRAINT PK_CMOBJPROPS53 PRIMARY KEY (CMID)
  615. )
  616. CREATE TABLE CMOBJPROPS54 (
  617. CMID int NOT NULL ,
  618. FORMAT tinyint NULL ,
  619. OLOCALEID smallint NULL,
  620. CONSTRAINT PK_CMOBJPROPS54 PRIMARY KEY (CMID)
  621. )
  622. CREATE TABLE CMOBJPROPS55 (
  623. CMID int NOT NULL ,
  624. ICONURI nvarchar (1000) NULL ,
  625. UCPOLICIES image NULL,
  626. HIDDEN bit default(0) NOT NULL ,
  627. CONSTRAINT PK_CMOBJPROPS55 PRIMARY KEY (CMID)
  628. )
  629. CREATE TABLE CMOBJPROPS56 (
  630. CMID int NOT NULL ,
  631. SPEC ntext NULL ,
  632. MISSPEC ntext NULL ,
  633. CONSTRAINT PK_CMOBJPROPS56 PRIMARY KEY (CMID)
  634. )
  635. CREATE TABLE CMOBJPROPS57 (
  636. CMID int NOT NULL ,
  637. SPEC ntext NULL ,
  638. CONSTRAINT PK_CMOBJPROPS57 PRIMARY KEY (CMID)
  639. )
  640. CREATE TABLE CMOBJPROPS58 (
  641. CMID int NOT NULL ,
  642. PDSELISTAXSCACHE int NULL,
  643. PDSSHOWCELLANN bit NULL,
  644. PDSMAXPROCS int NULL,
  645. PPSHIAFFINECONS int null,
  646. PPSAFFINECONS int null,
  647. PPSAUDITLEVEL tinyint null,
  648. PPSQUEUELIMIT int null,
  649. PPSEXECTIMELIMIT int null,
  650. BRSPDFCHARENC tinyint null,
  651. BRSPDFCOMPRSLVL int null,
  652. BRSPDFCOMPRSTYPE tinyint null,
  653. BRSPDFEMBEDFONTS tinyint null,
  654. RSPDFCHARENC tinyint null,
  655. RSPDFCOMPRSLVL int null,
  656. RSPDFCOMPRSTYPE tinyint null,
  657. RSPDFEMBEDFONTS tinyint null,
  658. DMSAFFINECONNECTIONS int null,
  659. DMSEXECUTIONTIMELIMIT int null,
  660. DMSMAXPROCESSES int null,
  661. DMSNONAFFINECONNCTS int null,
  662. DMSPEAKMAXPROCESSES int null,
  663. DMSPEAKNONAFFINECONNCTS int null,
  664. DMSQUEUELIMIT int null,
  665. PERDOCVERSRETAGE varchar (50) null,
  666. PERDOCVERSRETCOUNT int NULL,
  667. EDITION varchar(20) null,
  668. EDITIONS image null,
  669. DIMSAFFINECONNECTIONS int null,
  670. DIMSEXECUTIONTIMELIMIT int null,
  671. DIMSMAXPROCESSES int null,
  672. DIMSQUEUELIMIT int null,
  673. GLOSSARYURI nvarchar(4000) NULL,
  674. GSAFFINECONNECTIONS int null,
  675. GSEXECUTIONTIMELIMIT int null,
  676. GSMAXPROCESSES int null,
  677. GSNONAFFINECONNCTS int null,
  678. GSPEAKMAXPROCESSES int null,
  679. GSPEAKNONAFFINECONNCTS int null,
  680. GSQUEUELIMIT int null,
  681. GSPEAKCONS int NULL,
  682. AASAFFINECONNECTIONS int null,
  683. AASEXECUTIONTIMELIMIT int null,
  684. AASMAXPROCESSES int null,
  685. HTSCOMPTASKLIFE varchar (50) null,
  686. CMCSHEAPLIM integer NULL,
  687. ANSANNOTATIONLIFE varchar (50) null,
  688. CONSTRAINT PK_CMOBJPROPS58 PRIMARY KEY (CMID)
  689. )
  690. create table CMOBJPROPS59 (
  691. CMID int NOT NULL ,
  692. CONFIGURATION ntext NULL ,
  693. USERINTERFACE tinyint NULL,
  694. CONSTRAINT PK_CMOBJPROPS59 PRIMARY KEY (CMID)
  695. )
  696. CREATE TABLE CMOBJPROPS6 (
  697. CMID int NOT NULL ,
  698. URI nvarchar (4000) NULL ,
  699. TARGET nvarchar (4000) NULL ,
  700. STEPOBJECT nvarchar (4000) NULL ,
  701. BASE nvarchar (4000) NULL ,
  702. CREDENTIAL nvarchar (4000) NULL ,
  703. DISPATCHERPATH nvarchar (4000) NULL ,
  704. PAGE nvarchar (4000) NULL,
  705. CREDNAMESPACES nvarchar (4000) null,
  706. CONSTRAINT PK_CMOBJPROPS6 PRIMARY KEY (CMID)
  707. )
  708. CREATE TABLE CMOBJPROPS60 (
  709. CMID int NOT NULL ,
  710. CONTEXT image NULL,
  711. CONTEXTCOUNT int NULL,
  712. LASTPAGE nvarchar(256) null,
  713. CONSTRAINT PK_CMOBJPROPS60 PRIMARY KEY (CMID)
  714. )
  715. CREATE TABLE CMOBJPROPS61 (
  716. CMID int NOT NULL ,
  717. BURSTKEY nvarchar (4000) NULL,
  718. CONSTRAINT PK_CMOBJPROPS61 PRIMARY KEY (CMID)
  719. )
  720. CREATE TABLE CMOBJPROPS62 (
  721. CMID int not null,
  722. EXPIRATION datetime null,
  723. ALLOWANNOTATION bit null,
  724. CONSTRAINT PK_CMOBJPROPS62 PRIMARY KEY (CMID)
  725. )
  726. create index IDX_EXPIRATION_62 on CMOBJPROPS62(EXPIRATION)
  727. CREATE TABLE CMOBJPROPS63 (
  728. CMID int NOT NULL ,
  729. SPEC ntext NULL ,
  730. CONSTRAINT PK_CMOBJPROPS63 PRIMARY KEY (CMID)
  731. )
  732. CREATE TABLE CMOBJPROPS64 (
  733. CMID int NOT NULL ,
  734. CONTENTTYPE varchar (256) NULL ,
  735. DATASIZE bigint,
  736. DATACOMP bit default(0) not null,
  737. DATAPROP image NULL,
  738. CONSTRAINT PK_CMOBJPROPS64 PRIMARY KEY (CMID)
  739. )
  740. CREATE TABLE CMOBJPROPS65 (
  741. CMID int NOT NULL ,
  742. BURSTID nvarchar (4000) NULL,
  743. BURSTIDINDEX char (44) NULL,
  744. CONSTRAINT PK_CMOBJPROPS65 PRIMARY KEY (CMID)
  745. )
  746. CREATE INDEX IDX_BURSTIDINDEX ON CMOBJPROPS65(BURSTIDINDEX)
  747. CREATE TABLE CMOBJPROPS66 (
  748. CMID int NOT NULL,
  749. DEFPORTACT tinyint null,
  750. SPEC ntext NULL,
  751. POWERPLAY8CONFIGURATION ntext NULL,
  752. CONSTRAINT PK_CMOBJPROPS66 PRIMARY KEY (CMID)
  753. )
  754. CREATE TABLE CMOBJPROPS67 (
  755. CMID int NOT NULL,
  756. NONPEAKDEMANDBGNH int NULL,
  757. PEAKDEMANDBEGINH int NULL,
  758. ASPEAKCONS int NULL,
  759. BRSPEAKAFFINECONS int NULL,
  760. BRSPEAKMAXPROCS int NULL,
  761. BRSPEAKNONAFFCONS int NULL,
  762. CMSPEAKCONS int NULL,
  763. DDSPEAKCONS int NULL,
  764. DISPEAKCONS int NULL,
  765. DMSPEAKCONS int NULL,
  766. DSPEAKCONS int NULL,
  767. IDSPEAKCONS int NULL,
  768. ISSPEAKCONS int NULL,
  769. IUSPEAKCONS int NULL,
  770. JSPEAKCONS int NULL,
  771. MBSPEAKCONS int NULL,
  772. MISPEAKCONS int NULL,
  773. MMSPEAKCONS int NULL,
  774. PACSPEAKCONS int NULL,
  775. PDSPEAKCONS int NULL,
  776. PDSPEAKMAXPROCS int NULL,
  777. PPSPEAKAFFINECONS int NULL,
  778. PPSPEAKNONAFFCONS int NULL,
  779. PRSPEAKCONS int NULL,
  780. PTSPEAKCONS int NULL,
  781. RSPEAKAFFINECONS int NULL,
  782. RSPEAKMAXPROCS int NULL,
  783. RSPEAKNONAFFCONS int NULL,
  784. DIMSNONAFFINECONNCTS int NULL,
  785. DIMSPEAKCONS int NULL,
  786. DIMSPEAKMAXPROCS int NULL,
  787. DIMSPEAKNONAFFINECONNCTS int NULL,
  788. TEMPOBJLOCATION tinyint NULL,
  789. TEMPOBJLIFETIME varchar (50) null,
  790. AASNONAFFINECONNCTS int NULL,
  791. AASPEAKCONS int NULL,
  792. AASPEAKMAXPROCS int NULL,
  793. AASPEAKNONAFFINECONNCTS int NULL,
  794. STSAFFCONS int NULL,
  795. STSEXECLMT int NULL,
  796. STSCMAXPROCS int NULL,
  797. STSNONAFFCONS int NULL,
  798. STSPEAKAFFCONS int NULL,
  799. STSPEAKMAXPROCS int NULL,
  800. STSPEAKNONAFFCONS int NULL,
  801. OVERRIDEOPTS ntext NULL,
  802. SERVRDEFOPTS ntext NULL,
  803. STSQUEUELIM int NULL,
  804. COLLABDISCURI nvarchar (4000) NULL,
  805. BRSMAXATTACHSIZE int NULL,
  806. DSMAXATTACHSIZE int NULL,
  807. RSMAXATTACHSIZE int NULL,
  808. ASMAXATTACHSIZE int NULL,
  809. PPSMAXATTACHSIZE int NULL,
  810. QSIDLECONTIMEOUT int NULL,
  811. QSDUMPMODEL bit NULL,
  812. QSDISPLAN bit NULL,
  813. ACTIVEJMXPROXYURI ntext NULL,
  814. QSADDJVMARG nvarchar (1024) NULL,
  815. QSINITJVMHEAP int NULL,
  816. QSMANCUBESTRT bit NULL,
  817. QSMAXJVMHEAP int NULL,
  818. QSROLAPCUBECONF image NULL,
  819. QSROLAPCADMINCT int NULL,
  820. QSRSETQUERYTHRES int NULL,
  821. COOKIECAMPASSHTTP bit NULL,
  822. CONSTRAINT PK_CMOBJPROPS67 PRIMARY KEY (CMID)
  823. )
  824. CREATE TABLE CMOBJPROPS68 (
  825. CMID int NOT NULL,
  826. SPEC ntext NULL,
  827. CONSTRAINT PK_CMOBJPROPS68 PRIMARY KEY (CMID)
  828. )
  829. CREATE TABLE CMOBJPROPS69 (
  830. CMID int NOT NULL,
  831. ORD int NOT NULL,
  832. PARMNAME nvarchar(256) not null,
  833. CPARMVALUE image null,
  834. constraint PK_CMOBJPROPS69 primary key (CMID, ORD)
  835. )
  836. CREATE TABLE CMOBJPROPS7 (
  837. CMID int NOT NULL ,
  838. EXECERROR ntext NULL ,
  839. CONFIGURATION ntext NULL ,
  840. PORTALPREFS ntext NULL ,
  841. CCREDENTIALS ntext NULL ,
  842. CMODEL image NULL ,
  843. SRC ntext NULL ,
  844. SPEC ntext NULL ,
  845. STATE ntext NULL,
  846. GOVERNORS ntext null,
  847. NAMESPFORMAT nvarchar (4000) null,
  848. CONSTRAINT PK_CMOBJPROPS7 PRIMARY KEY (CMID)
  849. )
  850. CREATE TABLE CMOBJPROPS70 (
  851. CMID integer not null,
  852. CONTEXT ntext NULL,
  853. DEPLOYREFS ntext NULL,
  854. CONSTRAINT PK_CMOBJPROPS70 PRIMARY KEY (CMID)
  855. )
  856. CREATE TABLE CMOBJPROPS71 (
  857. CMID integer not null,
  858. CONTEXT ntext NULL,
  859. DEPLOYREFS ntext NULL,
  860. CONSTRAINT PK_CMOBJPROPS71 PRIMARY KEY (CMID)
  861. )
  862. CREATE TABLE CMOBJPROPS72 (
  863. CMID integer not null,
  864. CONTEXT ntext NULL,
  865. CONSTRAINT PK_CMOBJPROPS72 PRIMARY KEY (CMID)
  866. )
  867. CREATE TABLE CMOBJPROPS73 (
  868. CMID integer not null,
  869. ALIASROOT nvarchar (256) NULL,
  870. URI nvarchar (4000) NULL,
  871. UNIXURI nvarchar (4000) NULL,
  872. WINDOWSURI nvarchar (4000) NULL,
  873. CONSTRAINT PK_CMOBJPROPS73 PRIMARY KEY (CMID)
  874. )
  875. CREATE TABLE CMOBJPROPS74 (
  876. CMID integer not null,
  877. DEPLOYREFS ntext NULL,
  878. LAUNCHTYPE nvarchar (256) NULL ,
  879. SPEC image NULL,
  880. CONSTRAINT PK_CMOBJPROPS74 PRIMARY KEY (CMID)
  881. )
  882. create index IDX_CMLAUNCHTYPE on CMOBJPROPS74(LAUNCHTYPE)
  883. CREATE TABLE CMOBJPROPS75 (
  884. CMID integer not null,
  885. RESOURCETYPE nvarchar (256) NULL ,
  886. SPEC image NULL,
  887. CONSTRAINT PK_CMOBJPROPS75 PRIMARY KEY (CMID)
  888. )
  889. create index IDX_CMRESOURCETYPE on CMOBJPROPS75(RESOURCETYPE)
  890. CREATE TABLE CMOBJPROPS76 (
  891. CMID integer not null,
  892. CONTENTTYPE nvarchar (256) NULL ,
  893. CONSTRAINT PK_CMOBJPROPS76 PRIMARY KEY (CMID)
  894. )
  895. CREATE TABLE CMOBJPROPS77 (
  896. CMID int NOT NULL ,
  897. DSCONNECTIONNAME nvarchar (256) NULL ,
  898. DSNAME nvarchar (256) NULL ,
  899. CONSTRAINT PK_CMOBJPROPS77 PRIMARY KEY (CMID)
  900. )
  901. CREATE TABLE CMOBJPROPS78 (
  902. CMID integer not null,
  903. BINDINGNAME nvarchar (256) NULL ,
  904. INPUTMESSNAME nvarchar (256) NULL ,
  905. OPERATIONNAME nvarchar (256) NULL ,
  906. OUTPUTMESSNAME nvarchar (256) NULL ,
  907. SERVICENAME nvarchar (256) NULL ,
  908. BULKEVENTS bit null,
  909. URI ntext NULL,
  910. CONSTRAINT PK_CMOBJPROPS78 PRIMARY KEY (CMID)
  911. )
  912. CREATE TABLE CMOBJPROPS79 (
  913. CMID integer not null,
  914. PUBLISHED bit null,
  915. SPEC ntext null,
  916. CONSTRAINT PK_CMOBJPROPS79 PRIMARY KEY (CMID)
  917. )
  918. CREATE TABLE CMOBJPROPS80 (
  919. CMID int NOT NULL ,
  920. REPOSITORYRULES ntext NULL,
  921. NSCAPS ntext NULL,
  922. CONSTRAINT PK_CMOBJPROPS80 PRIMARY KEY (CMID)
  923. )
  924. CREATE TABLE CMOBJPROPS81 (
  925. CMID int NOT NULL ,
  926. AGGREGATES ntext NULL,
  927. CONSTRAINT PK_CMOBJPROPS81 PRIMARY KEY (CMID)
  928. )
  929. CREATE TABLE CMOBJPROPS82 (
  930. CMID int NOT NULL ,
  931. BPMRESTURI nvarchar (4000) NULL ,
  932. CONSTRAINT PK_CMOBJPROPS82 PRIMARY KEY (CMID)
  933. )
  934. CREATE TABLE CMOBJPROPS83 (
  935. CMID int NOT NULL,
  936. MOBILECONFIG image null,
  937. constraint PK_CMOBJPROPS83 primary key (CMID)
  938. )
  939. CREATE TABLE CMOBJPROPS84 (
  940. CMID int NOT NULL ,
  941. SPEC ntext NULL,
  942. DATASIZE bigint,
  943. DATAMODTIME datetime null,
  944. CONSTRAINT PK_CMOBJPROPS84 PRIMARY KEY (CMID)
  945. )
  946. CREATE TABLE CMOBJPROPS85 (
  947. CMID int NOT NULL ,
  948. DATA ntext NULL,
  949. DEPLOYREFS ntext null,
  950. OBJREFS ntext null,
  951. BIVARS ntext null,
  952. EMBEDDING ntext null,
  953. STATUS ntext null,
  954. USAGETRACKMODEL ntext null,
  955. CONSTRAINT PK_CMOBJPROPS85 PRIMARY KEY (CMID)
  956. )
  957. CREATE TABLE CMOBJPROPS86 (
  958. CMID int not null,
  959. KSCHEMA nvarchar (256) null,
  960. KCATALOG nvarchar (256) null,
  961. CPHYSDEF ntext null,
  962. CPHYSANAL ntext null,
  963. CBASEDEF ntext null,
  964. CBASEOVER ntext null,
  965. CBASEANAL ntext null,
  966. STATUSID tinyint null,
  967. SNAPSHOT ntext null,
  968. HISTORY ntext null,
  969. SNAPSHOTENBL bit null,
  970. DEPLOYREFS ntext null,
  971. ALIASROOT nvarchar (256) null,
  972. CONSTRAINT PK_CMOBJPROPS86 PRIMARY KEY (CMID)
  973. )
  974. CREATE TABLE CMOBJPROPS87 (
  975. CMID int NOT NULL,
  976. EXT ntext NULL,
  977. CONSTRAINT PK_CMOBJPROPS87 PRIMARY KEY (CMID)
  978. )
  979. CREATE TABLE CMOBJPROPS88 (
  980. CMID int NOT NULL,
  981. SCHEMATYPE varchar (256) null,
  982. STATUS varchar (256) null,
  983. STATUSINFO ntext null,
  984. CONSTRAINT PK_CMOBJPROPS88 PRIMARY KEY (CMID)
  985. )
  986. CREATE TABLE CMOBJPROPS89 (
  987. CMID int not null,
  988. DOCTYPE varchar(64) not null,
  989. DOCID varchar(64) not null,
  990. CONTENT ntext null,
  991. CONSTRAINT PK_CMOBJPROPS89 PRIMARY KEY (CMID)
  992. )
  993. create index IDX_CMPROPS89_1 on CMOBJPROPS89(DOCID)
  994. CREATE TABLE CMOBJPROPS9 (
  995. CMID int NOT NULL ,
  996. ASOFTIME datetime NULL,
  997. CANBURST bit null,
  998. CONSTRAINT PK_CMOBJPROPS9 PRIMARY KEY (CMID)
  999. )
  1000. CREATE TABLE CMOBJPROPS90 (
  1001. CMID int NOT NULL,
  1002. SPEC ntext NULL,
  1003. CONSTRAINT PK_CMOBJPROPS90 PRIMARY KEY (CMID)
  1004. )
  1005. CREATE TABLE CMOBJPROPS91 (
  1006. CMID int NOT NULL,
  1007. SKDATA ntext NULL,
  1008. CONSTRAINT PK_CMOBJPROPS91 PRIMARY KEY (CMID)
  1009. )
  1010. CREATE TABLE CMOBJPROPS92 (
  1011. CMID int NOT NULL,
  1012. CONTYPE varchar(64) NULL,
  1013. URI ntext NULL,
  1014. SPEC ntext NULL,
  1015. CONSTRAINT PK_CMOBJPROPS92 PRIMARY KEY (CMID)
  1016. )
  1017. CREATE TABLE CMOBJPROPS93 (
  1018. CMID int NOT NULL,
  1019. PROGRESS varchar(1024) NULL,
  1020. JOBID varchar(64) NULL,
  1021. STATE varchar(64) NULL,
  1022. CONFIGURATION ntext NULL,
  1023. CONSTRAINT PK_CMOBJPROPS93 PRIMARY KEY (CMID)
  1024. )
  1025. CREATE TABLE CMTAGS (
  1026. CMID int not null,
  1027. ORD int not null,
  1028. TAG nvarchar(256) null,
  1029. constraint PK_CMTAGS primary key (CMID,ORD)
  1030. )
  1031. create index IDX_CMTAGS on CMTAGS(CMID, TAG)
  1032. CREATE TABLE CMPOLICIES (
  1033. CMID int NOT NULL ,
  1034. POLICIES image NULL,
  1035. CONSTRAINT PK_CMPOLICIES PRIMARY KEY (CMID)
  1036. )
  1037. CREATE TABLE CMVIEWED (
  1038. CMID int NOT NULL ,
  1039. OBJID nvarchar (4000) default ('-') NOT NULL ,
  1040. VIEWED bit default(0) NOT NULL,
  1041. CONSTRAINT PK_CMVIEWED PRIMARY KEY (CMID)
  1042. )
  1043. CREATE TABLE CMGUIDS (
  1044. CMID int NOT NULL ,
  1045. GUID varchar(50) NULL,
  1046. CONSTRAINT PK_CMGUIDS PRIMARY KEY (CMID)
  1047. )
  1048. create trigger CMGUIDS_INSERT_TR on CMGUIDS
  1049. instead of insert
  1050. as
  1051. begin
  1052. set nocount on
  1053. if (select count(*) from inserted) <> 0
  1054. begin
  1055. insert into CMGUIDS ( CMID, GUID ) select CMID, newid() from inserted
  1056. end
  1057. end
  1058. CREATE TABLE CMPROPERTIES (
  1059. PROPID smallint NOT NULL,
  1060. NAME varchar(50) NOT NULL,
  1061. DEF image NULL,
  1062. CONSTRAINT PK_CMPROPERTIES PRIMARY KEY(PROPID)
  1063. )
  1064. CREATE TABLE CMCLASSES (
  1065. CLASSID int NOT NULL,
  1066. NAME varchar(50) NOT NULL,
  1067. USAGE tinyint NULL,
  1068. DEF image NULL,
  1069. CONSTRAINT PK_CMCLASSES PRIMARY KEY(CLASSID)
  1070. )
  1071. create table CMLOCALES (
  1072. LOCALEID smallint not null,
  1073. MAPDLOCALEID smallint not null,
  1074. LOCALE varchar(20) not null,
  1075. constraint PK_CMLOCALES primary key (LOCALEID)
  1076. )
  1077. CREATE TABLE CMREFNOORD1 (
  1078. PROPID smallint NOT NULL,
  1079. CMID int NOT NULL,
  1080. REFCMID int NOT NULL,
  1081. constraint PK_CMREFNOORD1 primary key (CMID, PROPID) )
  1082. create index IDX_CMREFNOORD1 on CMREFNOORD1(REFCMID, PROPID)
  1083. CREATE TABLE CMREFORD1 (
  1084. PROPID smallint NOT NULL,
  1085. CMID int NOT NULL,
  1086. ORD int NOT NULL,
  1087. REFCMID int NOT NULL,
  1088. constraint PK_CMREFORD1 primary key (CMID, PROPID, ORD) )
  1089. create index IDX_CMREFORD1 on CMREFORD1(REFCMID, PROPID, ORD)
  1090. CREATE TABLE CMREFORD2 (
  1091. CMID int NOT NULL,
  1092. ORD int NOT NULL,
  1093. REFCMID int NOT NULL,
  1094. constraint PK_CMREFORD2 primary key (CMID,ORD) )
  1095. create index IDX_CMREFORD2 on CMREFORD2(REFCMID, ORD)
  1096. CREATE TABLE CMREFNOORD2 (
  1097. CMID int NOT NULL,
  1098. REFCMID int NOT NULL,
  1099. constraint PK_CMREFNOORD2 primary key (CMID) )
  1100. create index IDX_CMREFNOORD2 on CMREFNOORD2(REFCMID)
  1101. CREATE PROCEDURE CMPARSEIDS @QUERYID int, @IDS image AS
  1102. SET NOCOUNT ON
  1103. DECLARE @IMAGESIZE AS int
  1104. DECLARE @CURPOS AS int
  1105. SELECT @CURPOS=0
  1106. SELECT @IMAGESIZE = DATALENGTH(@IDS)
  1107. WHILE @CURPOS < @IMAGESIZE
  1108. BEGIN
  1109. INSERT INTO #CMTMPIDS (QUERYID,CMID) SELECT @QUERYID, CAST(SUBSTRING(@IDS, @CURPOS+1, 4) AS int)
  1110. SELECT @CURPOS=@CURPOS+4
  1111. END
  1112. CREATE PROCEDURE CMPARSECOPYIDS @QUERYID int, @GROUPID int, @SOURCEIDS image, @TARGETIDS image AS
  1113. SET NOCOUNT ON
  1114. DECLARE @SOURCEIMAGESIZE AS int
  1115. DECLARE @CURPOS AS int
  1116. SELECT @CURPOS=0
  1117. SELECT @SOURCEIMAGESIZE = DATALENGTH(@SOURCEIDS)
  1118. WHILE @CURPOS < @SOURCEIMAGESIZE
  1119. BEGIN
  1120. INSERT INTO #CMTMPCOPYIDS (QUERYID,GROUPID,SOURCECMID, TARGETCMID) SELECT @QUERYID, @GROUPID, CAST(SUBSTRING(@SOURCEIDS, @CURPOS+1, 4) AS int), CAST(SUBSTRING(@TARGETIDS, @CURPOS+1, 4) AS int)
  1121. SELECT @CURPOS=@CURPOS+4
  1122. END
  1123. create view CMOWNERCOUNT(OBJID, OWN_NUMBER) as
  1124. SELECT p2.OBJID, count(o.CMID)
  1125. FROM CMOBJECTS o left outer join CMREFNOORD2 p1 on p1.CMID = o.CMID
  1126. left outer join CMOBJPROPS1 p2 on p1.REFCMID = p2.CMID
  1127. GROUP BY p2.OBJID
  1128. CREATE TABLE CMDATAUPGRADE (
  1129. PLUGINNAME varchar (255) NOT NULL ,
  1130. VERSION varchar (64) NULL ,
  1131. CONSTRAINT PK_CMDATAUPGRADE PRIMARY KEY (PLUGINNAME)
  1132. )
  1133. CREATE TABLE CMSIZEINFO (
  1134. STOREID varchar(255) NOT NULL,
  1135. CLASSID int NOT NULL ,
  1136. TOTALFORCLASSID int NOT NULL ,
  1137. TOTALCOUNT bigint NULL ,
  1138. TOTALSIZE bigint NULL ,
  1139. CONSTRAINT PK_CMSIZEINFO PRIMARY KEY (STOREID, TOTALFORCLASSID)
  1140. )
  1141. CREATE TABLE CMSPLIT (
  1142. CMID int not null,
  1143. TRANSACTIONID nvarchar(255),
  1144. constraint PK_CMSPLIT primary key (CMID, TRANSACTIONID)
  1145. )
  1146. CREATE TABLE CMDELETEQUEUE (
  1147. OBJID VARCHAR(255) DEFAULT NULL,
  1148. ITEMID VARCHAR(255) NOT NULL,
  1149. QUEUEID VARCHAR(255) NOT NULL,
  1150. WORKFLOW VARCHAR(255) NOT NULL,
  1151. CONSUMERNAME VARCHAR(255) DEFAULT NULL,
  1152. STATE INT NOT NULL,
  1153. INSERTIONTIME DATETIME NOT NULL,
  1154. CONSTRAINT PK_CMDELETEQUEUE PRIMARY KEY (ITEMID)
  1155. )
  1156. CREATE TABLE CMARCHIVEQUEUE (
  1157. OBJID VARCHAR(255) DEFAULT NULL,
  1158. ITEMID VARCHAR(255) NOT NULL,
  1159. QUEUEID VARCHAR(255) NOT NULL,
  1160. WORKFLOW VARCHAR(255) NOT NULL,
  1161. CONSUMERNAME VARCHAR(255) DEFAULT NULL,
  1162. STATE INT NOT NULL,
  1163. INSERTIONTIME DATETIME NOT NULL,
  1164. CONSTRAINT PK_CMARCHIVEQUEUE PRIMARY KEY (ITEMID)
  1165. )
  1166. CREATE TABLE CMINDEXQUEUE (
  1167. OBJID VARCHAR(1024) DEFAULT NULL,
  1168. ITEMID VARCHAR(50) NOT NULL,
  1169. QUEUEID VARCHAR(50) NOT NULL,
  1170. WORKFLOW VARCHAR(50) NOT NULL,
  1171. CONSUMERNAME VARCHAR(50) DEFAULT NULL,
  1172. STATE INT NOT NULL,
  1173. INSERTIONTIME DATETIME NOT NULL,
  1174. INDEXACTION VARCHAR(50) NOT NULL,
  1175. INDEXCLASS VARCHAR(255) NOT NULL,
  1176. INDEXPROPS ntext NULL,
  1177. CONSTRAINT PK_CMINDEXQUEUE PRIMARY KEY (ITEMID)
  1178. )
  1179. create index IDX_CMINDEXQUEUE on CMINDEXQUEUE(STATE, QUEUEID)
  1180. CREATE TABLE CMQUEUELOCK (
  1181. QUEUEID VARCHAR(255) NOT NULL,
  1182. CONSTRAINT PK_CMQUEUELOCK PRIMARY KEY (QUEUEID)
  1183. )
  1184. CREATE TABLE CMTENANTID (
  1185. TENANTID INT NOT NULL,
  1186. TENANTNAME NVARCHAR(255) NOT NULL,
  1187. CONSTRAINT PK_CMTENANTID PRIMARY KEY (TENANTID)
  1188. )
  1189. INSERT INTO CMTENANTID (TENANTID,TENANTNAME) VALUES (0,'')
  1190. INSERT INTO CMSYSPROPS (PROPNAME, PROPVALUE)
  1191. VALUES ('CMStoreVersion', '7.7003')