-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate-db-79.sql
4091 lines (4088 loc) · 147 KB
/
generate-db-79.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
USE [master]
GO
CREATE DATABASE [NlsyLinks79]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'NlsyLinks79', FILENAME = N'D:\database\nlsy-links\nlsy_links.mdf' , SIZE = 761216KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'NlsyLinks79_log', FILENAME = N'D:\database\nlsy-links\nlsy_links_log.ldf' , SIZE = 2876352KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [NlsyLinks79] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [NlsyLinks79].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [NlsyLinks79] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [NlsyLinks79] SET ANSI_NULLS OFF
GO
ALTER DATABASE [NlsyLinks79] SET ANSI_PADDING OFF
GO
ALTER DATABASE [NlsyLinks79] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [NlsyLinks79] SET ARITHABORT OFF
GO
ALTER DATABASE [NlsyLinks79] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [NlsyLinks79] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [NlsyLinks79] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [NlsyLinks79] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [NlsyLinks79] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [NlsyLinks79] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [NlsyLinks79] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [NlsyLinks79] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [NlsyLinks79] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [NlsyLinks79] SET DISABLE_BROKER
GO
ALTER DATABASE [NlsyLinks79] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [NlsyLinks79] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [NlsyLinks79] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [NlsyLinks79] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [NlsyLinks79] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [NlsyLinks79] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [NlsyLinks79] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [NlsyLinks79] SET RECOVERY SIMPLE
GO
ALTER DATABASE [NlsyLinks79] SET MULTI_USER
GO
ALTER DATABASE [NlsyLinks79] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [NlsyLinks79] SET DB_CHAINING OFF
GO
ALTER DATABASE [NlsyLinks79] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [NlsyLinks79] SET TARGET_RECOVERY_TIME = 60 SECONDS
GO
ALTER DATABASE [NlsyLinks79] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [NlsyLinks79] SET QUERY_STORE = OFF
GO
USE [NlsyLinks79]
GO
ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = OFF;
GO
ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0;
GO
ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = ON;
GO
ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = OFF;
GO
USE [NlsyLinks79]
GO
CREATE USER [NlsyReadWrite] FOR LOGIN [NlsyReadWrite] WITH DEFAULT_SCHEMA=[dbo]
GO
ALTER ROLE [db_datareader] ADD MEMBER [NlsyReadWrite]
GO
ALTER ROLE [db_datawriter] ADD MEMBER [NlsyReadWrite]
GO
CREATE ASSEMBLY [SqlServerNlsLinks]
FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C0103005C5BB54E0000000000000000E00002210B0108000006000000060000000000009E2500000020000000400000000040000020000000020000040000000000000004000000000000000080000000020000000000000300408500001000001000000000100000100000000000001000000000000000000000004425000057000000004000007803000000000000000000000000000000000000006000000C000000C42400001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000A4050000002000000006000000020000000000000000000000000000200000602E7273726300000078030000004000000004000000080000000000000000000000000000400000402E72656C6F6300000C0000000060000000020000000C00000000000000000000000000004000004200000000000000000000000000000000802500000000000048000000020005005020000074040000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042534A4201000100000000000C00000076322E302E35303732370000000005006C0000005C010000237E0000C80100000802000023537472696E677300000000D00300000800000023555300D8030000100000002347554944000000E80300008C00000023426C6F620000000000000002000001071400000900000000FA253300160000010000000E000000010000000D0000000B000000010000000100000000000A0001000000000006003B0029000600580029000600750029000600940029000600AD0029000600C60029000600E10029000600FC0029000600340115010600480129000600740161012F00880100000600B70197010600D70197010000000001000000000001000100090052000A00110052000A00190052000A00210052000A00290052000A00310052000A00390052000A00410052000A00490052000F00510052000A00590052001400690052001A00710052001F002E000B0023002E0013003A002E001B003A002E0023003A002E002B0023002E00330040002E003B003A002E004B003A002E005B0058002E00630061002E006B006A000480000001000000E6103E45000000000000F501000002000000000000000000000001002000000000000000003C4D6F64756C653E0053716C5365727665724E6C734C696E6B732E646C6C006D73636F726C69620053797374656D2E5265666C656374696F6E00417373656D626C795469746C65417474726962757465002E63746F7200417373656D626C794465736372697074696F6E41747472696275746500417373656D626C79436F6E66696775726174696F6E41747472696275746500417373656D626C79436F6D70616E7941747472696275746500417373656D626C7950726F6475637441747472696275746500417373656D626C79436F7079726967687441747472696275746500417373656D626C7954726164656D61726B41747472696275746500417373656D626C7943756C747572654174747269627574650053797374656D2E52756E74696D652E496E7465726F70536572766963657300436F6D56697369626C6541747472696275746500417373656D626C7956657273696F6E4174747269627574650053797374656D2E446961676E6F73746963730044656275676761626C6541747472696275746500446562756767696E674D6F6465730053797374656D2E52756E74696D652E436F6D70696C6572536572766963657300436F6D70696C6174696F6E52656C61786174696F6E734174747269627574650052756E74696D65436F6D7061746962696C6974794174747269627574650053716C5365727665724E6C734C696E6B73000000032000000000007C15CF8065A4A74EA3CA5E72EC97CD060008B77A5C561934E089042001010E04200101020520010111310420010108032000011601001153716C5365727665724E6C734C696E6B73000005010000000017010012436F7079726967687420C2A920203230313100000801000701000000000801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F777301000000000000005C5BB54E000000000200000064000000E0240000E006000052534453C42A10A4AFEFE94B815B787BCDC8195402000000463A5C50726F6A656374735C4E6C735C4C696E6B73323031315C53716C5365727665724E6C734C696E6B735C6F626A5C44656275675C53716C5365727665724E6C734C696E6B732E706462006C25000000000000000000008E250000002000000000000000000000000000000000000000000000802500000000000000000000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF2500204000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100100000001800008000000000000000000000000000000100010000003000008000000000000000000000000000000100000000004800000058400000200300000000000000000000200334000000560053005F00560045005200530049004F004E005F0049004E0046004F0000000000BD04EFFE00000100000001003E45E610000001003E45E6103F000000000000000400000002000000000000000000000000000000440000000100560061007200460069006C00650049006E0066006F00000000002400040000005400720061006E0073006C006100740069006F006E00000000000000B00480020000010053007400720069006E006700460069006C00650049006E0066006F0000005C02000001003000300030003000300034006200300000004C0012000100460069006C0065004400650073006300720069007000740069006F006E0000000000530071006C005300650072007600650072004E006C0073004C0069006E006B007300000040000F000100460069006C006500560065007200730069006F006E000000000031002E0030002E0034003300320036002E0031003700370032003600000000004C001600010049006E007400650072006E0061006C004E0061006D0065000000530071006C005300650072007600650072004E006C0073004C0069006E006B0073002E0064006C006C0000004800120001004C006500670061006C0043006F007000790072006900670068007400000043006F0070007900720069006700680074002000A90020002000320030003100310000005400160001004F0072006900670069006E0061006C00460069006C0065006E0061006D0065000000530071006C005300650072007600650072004E006C0073004C0069006E006B0073002E0064006C006C000000440012000100500072006F0064007500630074004E0061006D00650000000000530071006C005300650072007600650072004E006C0073004C0069006E006B007300000044000F000100500072006F006400750063007400560065007200730069006F006E00000031002E0030002E0034003300320036002E00310037003700320036000000000048000F00010041007300730065006D0062006C0079002000560065007200730069006F006E00000031002E0030002E0034003300320036002E00310037003700320036000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000C000000A03500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
WITH PERMISSION_SET = SAFE
GO
ALTER ASSEMBLY [SqlServerNlsLinks]
ADD FILE FROM 0x4D6963726F736F667420432F432B2B204D534620372E30300D0A1A445300000000020000010000000F0000004C000000000000000D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008D8FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF30E7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0BCA3101380000000010000000100000000000000900FFFF0400000003800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF1A092FF1000000000000000065000000000000001900000000000000100000002C000000000000000C00000003000000060000000900000007000000080000000A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF77093101020000000A00008A07006F760800010000000000040000000400000004000000000000000000000000000000190000000000EEC0000000002DBA2EF10000000000000000FEEFFEEF0100000001000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000BCA310138000000001000000010000000000000FFFFFFFF040000000380000000000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FEEFFEEF0100000001000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000800000000000000000FFFFFFFF1A092FF10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000942E31011C5BB54E02000000C42A10A4AFEFE94B815B787BCDC81954220000002F4C696E6B496E666F002F6E616D6573002F7372632F686561646572626C6F636B000300000006000000010000001A0000000000000011000000060000000A0000000500000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B000000300000007200000038000000650000000000000019000000000000002C00000000000000FFFFFFFF100000000B0000000900000006000000050000000700000008000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000000480000007200000038000000FFFFFFFF00000000190000000000000004000000030000000600000007000000002F7372632F686561646572626C6F636B000300000006000000010000001A0000000000000011000000060000000A0000000500000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B00000018000000720000003800000065000000000000001900000000000000100000002C00000000000000030000000B000000060000000900000007000000080000000A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
AS N'bin\Debug\SqlServerNlsLinks.pdb'
GO
ALTER ASSEMBLY [SqlServerNlsLinks]
ADD FILE FROM 0xEFBBBF7573696E672053797374656D2E5265666C656374696F6E3B0D0A7573696E672053797374656D2E52756E74696D652E436F6D70696C657253657276696365733B0D0A7573696E672053797374656D2E52756E74696D652E496E7465726F7053657276696365733B0D0A7573696E672053797374656D2E446174612E53716C3B0D0A0D0A2F2F2047656E6572616C20496E666F726D6174696F6E2061626F757420616E20617373656D626C7920697320636F6E74726F6C6C6564207468726F7567682074686520666F6C6C6F77696E670D0A2F2F20736574206F6620617474726962757465732E204368616E6765207468657365206174747269627574652076616C75657320746F206D6F646966792074686520696E666F726D6174696F6E0D0A2F2F206173736F636961746564207769746820616E20617373656D626C792E0D0A5B617373656D626C793A20417373656D626C795469746C65282253716C5365727665724E6C734C696E6B7322295D0D0A5B617373656D626C793A20417373656D626C794465736372697074696F6E282222295D0D0A5B617373656D626C793A20417373656D626C79436F6E66696775726174696F6E282222295D0D0A5B617373656D626C793A20417373656D626C79436F6D70616E79282222295D0D0A5B617373656D626C793A20417373656D626C7950726F64756374282253716C5365727665724E6C734C696E6B7322295D0D0A5B617373656D626C793A20417373656D626C79436F707972696768742822436F7079726967687420C2A920203230313122295D0D0A5B617373656D626C793A20417373656D626C7954726164656D61726B282222295D0D0A5B617373656D626C793A20417373656D626C7943756C74757265282222295D0D0A0D0A5B617373656D626C793A20436F6D56697369626C652866616C7365295D0D0A0D0A2F2F0D0A2F2F2056657273696F6E20696E666F726D6174696F6E20666F7220616E20617373656D626C7920636F6E7369737473206F662074686520666F6C6C6F77696E6720666F75722076616C7565733A0D0A2F2F0D0A2F2F2020202020204D616A6F722056657273696F6E0D0A2F2F2020202020204D696E6F722056657273696F6E0D0A2F2F2020202020204275696C64204E756D6265720D0A2F2F2020202020205265766973696F6E0D0A2F2F0D0A2F2F20596F752063616E207370656369667920616C6C207468652076616C756573206F7220796F752063616E2064656661756C7420746865205265766973696F6E20616E64204275696C64204E756D626572730D0A2F2F206279207573696E672074686520272A272061732073686F776E2062656C6F773A0D0A5B617373656D626C793A20417373656D626C7956657273696F6E2822312E302E2A22295D0D0A0D0A
AS N'Properties\AssemblyInfo.cs'
GO
CREATE SCHEMA [Archive]
GO
CREATE SCHEMA [Enum]
GO
CREATE SCHEMA [Extract]
GO
CREATE SCHEMA [Metadata]
GO
CREATE SCHEMA [Outcome]
GO
CREATE SCHEMA [Process]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Process].[tblSubject](
[SubjectTag] [int] NOT NULL,
[ExtendedID] [smallint] NOT NULL,
[SubjectID] [int] NOT NULL,
[Generation] [tinyint] NOT NULL,
[Gender] [tinyint] NOT NULL,
CONSTRAINT [PK_Process.tblSubject] PRIMARY KEY CLUSTERED
(
[SubjectTag] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Process].[tblSubjectDetails](
[SubjectTag] [int] NOT NULL,
[RaceCohort] [tinyint] NOT NULL,
[SiblingCountInNls] [tinyint] NOT NULL,
[BirthOrderInNls] [tinyint] NOT NULL,
[SimilarAgeCount] [tinyint] NOT NULL,
[HasMzPossibly] [bit] NOT NULL,
[KidCountBio] [tinyint] NULL,
[KidCountInNls] [tinyint] NULL,
[Mob] [date] NULL,
[LastSurveyYearCompleted] [smallint] NULL,
[AgeAtLastSurvey] [float] NULL,
[IsDead] [bit] NOT NULL,
[DeathDate] [date] NULL,
[IsBiodadDead] [bit] NULL,
[BiodadDeathDate] [date] NULL
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[vewOutcomesOLD]
AS
SELECT Process.tblSubject.SubjectTag, Process.tblSubject.SubjectID, Process.tblSubject.ExtendedID, Process.tblSubject.Generation, Process.tblSubject.Gender,
Process.tblSubjectDetails.Mob, Process.tblOutcomesOLD.HeightInchesLateTeens, Process.tblOutcomesOLD.WeightPoundsLateTeens,
Process.tblOutcomesOLD.AfqtRescaled2006Bounded
FROM Process.tblSubject INNER JOIN
Process.tblSubjectDetails ON Process.tblSubject.SubjectTag = Process.tblSubjectDetails.SubjectTag INNER JOIN
Process.tblOutcomesOLD ON Process.tblSubject.SubjectTag = Process.tblOutcomesOLD.SubjectTag
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Process].[tblRelatedStructure](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ExtendedID] [smallint] NOT NULL,
[SubjectTag_S1] [int] NOT NULL,
[SubjectTag_S2] [int] NOT NULL,
[RelationshipPath] [tinyint] NOT NULL,
[EverSharedHouse] [bit] NOT NULL,
CONSTRAINT [PK_tblRelatednessStructure] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Process].[tblRelatedValues](
[ID] [int] NOT NULL,
[MultipleBirthIfSameSex] [tinyint] NOT NULL,
[IsMz] [tinyint] NOT NULL,
[LastSurvey_S1] [smallint] NULL,
[LastSurvey_S2] [smallint] NULL,
[ImplicitShareBiomomPass1] [tinyint] NULL,
[ImplicitShareBiodadPass1] [tinyint] NULL,
[ExplicitShareBiomomPass1] [tinyint] NULL,
[ExplicitShareBiodadPass1] [tinyint] NULL,
[ShareBiomomPass1] [tinyint] NULL,
[ShareBiodadPass1] [tinyint] NULL,
[RImplicitPass1] [float] NULL,
[RImplicit] [float] NULL,
[RImplicitSubject] [float] NULL,
[RImplicitMother] [float] NULL,
[RImplicit2004] [float] NULL,
[RExplicitOlderSibVersion] [float] NULL,
[RExplicitYoungerSibVersion] [float] NULL,
[RExplicitPass1] [float] NULL,
[RExplicit] [float] NULL,
[RPass1] [float] NULL,
[R] [float] NULL,
[RFull] [float] NULL,
[RPeek] [float] NULL
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[vewRelatedValues]
AS
SELECT Process.tblRelatedStructure.ExtendedID, Process.tblRelatedStructure.SubjectTag_S1, Process.tblRelatedStructure.SubjectTag_S2,
Process.tblRelatedStructure.RelationshipPath, Process.tblRelatedStructure.EverSharedHouse, Process.tblRelatedValues.R, Process.tblRelatedValues.RFull,
Process.tblRelatedValues.MultipleBirthIfSameSex, Process.tblRelatedValues.IsMz, Process.tblRelatedValues.LastSurvey_S1,
Process.tblRelatedValues.LastSurvey_S2, Process.tblRelatedValues.RImplicitPass1, Process.tblRelatedValues.RImplicit, Process.tblRelatedValues.RImplicit2004,
Process.tblRelatedValues.RImplicit - Process.tblRelatedValues.RImplicit2004 AS RImplicitDifference, Process.tblRelatedValues.RExplicit,
Process.tblRelatedValues.RExplicitPass1, Process.tblRelatedValues.RPass1, Process.tblRelatedValues.RExplicitOlderSibVersion,
Process.tblRelatedValues.RExplicitYoungerSibVersion, Process.tblRelatedValues.RImplicitSubject, Process.tblRelatedValues.RImplicitMother
FROM Process.tblRelatedValues INNER JOIN
Process.tblRelatedStructure ON Process.tblRelatedValues.ID = Process.tblRelatedStructure.ID
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Process].[tblRosterGen1](
[RelatedID] [int] NOT NULL,
[RosterAssignmentID] [tinyint] NOT NULL,
[ResponseLower] [smallint] NOT NULL,
[ResponseUpper] [smallint] NOT NULL,
[Resolved] [bit] NOT NULL,
[R] [float] NULL,
[RBoundLower] [float] NOT NULL,
[RBoundUpper] [float] NOT NULL,
[SameGeneration] [tinyint] NOT NULL,
[ShareBiodad] [tinyint] NOT NULL,
[ShareBiomom] [tinyint] NOT NULL,
[ShareBiograndparent] [tinyint] NOT NULL,
[Inconsistent] [bit] NOT NULL
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[vewRelatedValuesGen1Only]
AS
SELECT Process.tblRelatedStructure.ExtendedID, Process.tblRelatedStructure.SubjectTag_S1, Process.tblRelatedStructure.SubjectTag_S2,
Process.tblRelatedStructure.RelationshipPath, Process.tblRelatedValues.R, Process.tblRelatedValues.MultipleBirthIfSameSex, Process.tblRelatedValues.IsMz,
Process.tblRelatedValues.LastSurvey_S1, Process.tblRelatedValues.LastSurvey_S2, Process.tblRelatedValues.RImplicitPass1, Process.tblRelatedValues.RImplicit,
Process.tblRelatedValues.RImplicit2004, Process.tblRelatedValues.RImplicit - Process.tblRelatedValues.RImplicit2004 AS RImplicitDifference,
Process.tblRelatedValues.RExplicit, Process.tblRelatedValues.RExplicitPass1, Process.tblRelatedValues.RPass1,
Process.tblRelatedValues.RExplicitOlderSibVersion, Process.tblRelatedValues.RExplicitYoungerSibVersion, Process.tblRosterGen1.RosterAssignmentID,
Process.tblRosterGen1.R AS RosterR, Process.tblRelatedValues.RFull, Process.tblRosterGen1.SameGeneration
FROM Process.tblRelatedValues INNER JOIN
Process.tblRelatedStructure ON Process.tblRelatedValues.ID = Process.tblRelatedStructure.ID INNER JOIN
Process.tblRosterGen1 ON Process.tblRelatedStructure.ID = Process.tblRosterGen1.RelatedID
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[vewSubjectDetails79Heavy]
AS
SELECT Process.tblSubject.SubjectTag, Process.tblSubject.ExtendedID, Process.tblSubject.Generation, Process.tblSubject.Gender, Process.tblSubjectDetails.RaceCohort,
Process.tblSubjectDetails.SiblingCountInNls, Process.tblSubjectDetails.BirthOrderInNls, Process.tblSubjectDetails.SimilarAgeCount,
Process.tblSubjectDetails.HasMzPossibly, Process.tblSubjectDetails.KidCountBio, Process.tblSubjectDetails.KidCountInNls, Process.tblSubjectDetails.Mob,
Process.tblSubjectDetails.LastSurveyYearCompleted, Process.tblSubjectDetails.AgeAtLastSurvey, Process.tblSubjectDetails.IsDead,
Process.tblSubjectDetails.DeathDate
FROM Process.tblSubject INNER JOIN
Process.tblSubjectDetails ON Process.tblSubject.SubjectTag = Process.tblSubjectDetails.SubjectTag
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [Process].[vewSubjectDetails]
AS
SELECT Process.tblSubject.SubjectTag, Process.tblSubject.ExtendedID, Process.tblSubject.SubjectID, Process.tblSubject.Generation, Process.tblSubject.Gender,
Process.tblSubjectDetails.Mob, Process.tblSubjectDetails.RaceCohort
FROM Process.tblSubject INNER JOIN
Process.tblSubjectDetails ON Process.tblSubject.SubjectTag = Process.tblSubjectDetails.SubjectTag
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Process].[tblSurveyTime](
[ID] [int] IDENTITY(1,1) NOT NULL,
[SubjectTag] [int] NOT NULL,
[SurveySource] [tinyint] NOT NULL,
[SurveyYear] [smallint] NOT NULL,
[SurveyDate] [date] NULL,
[AgeSelfReportYears] [float] NULL,
[AgeCalculateYears] [float] NULL
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [Process].[vewSurveyTimeMostRecent]
AS
SELECT TOP (100) PERCENT SubjectTag, MAX(SurveyYear) AS SurveyYearMostRecent
FROM Process.tblSurveyTime
WHERE (SurveySource > 0)
GROUP BY SubjectTag
ORDER BY SubjectTag
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Archive].[tblArchiveDescription](
[AlgorithmVersion] [smallint] NOT NULL,
[Description] [varchar](255) NOT NULL,
[Date] [date] NULL,
CONSTRAINT [PK_tblArchiveDescription] PRIMARY KEY CLUSTERED
(
[AlgorithmVersion] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Archive].[tblRelatedValuesArchive](
[ID] [int] IDENTITY(1,1) NOT NULL,
[AlgorithmVersion] [smallint] NOT NULL,
[SubjectTag_S1] [int] NOT NULL,
[SubjectTag_S2] [int] NOT NULL,
[MultipleBirthIfSameSex] [tinyint] NOT NULL,
[IsMz] [tinyint] NOT NULL,
[SameGeneration] [tinyint] NULL,
[RosterAssignmentID] [tinyint] NULL,
[RRoster] [float] NULL,
[LastSurvey_S1] [smallint] NULL,
[LastSurvey_S2] [smallint] NULL,
[RImplicitPass1] [float] NULL,
[RImplicit] [float] NULL,
[RImplicitSubject] [float] NULL,
[RImplicitMother] [float] NULL,
[RImplicit2004] [float] NULL,
[RExplicitOldestSibVersion] [float] NULL,
[RExplicitYoungestSibVersion] [float] NULL,
[RExplicitPass1] [float] NULL,
[RExplicit] [float] NULL,
[RPass1] [float] NULL,
[R] [float] NULL,
[RFull] [float] NULL,
[RPeek] [float] NULL
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUBioparent-not-used](
[ID] [tinyint] NOT NULL,
[Label] [char](3) NOT NULL,
CONSTRAINT [PK_tblLUBioparent] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUExtractSource](
[ID] [tinyint] NOT NULL,
[Label] [char](25) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUExtractSource] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUGender](
[ID] [tinyint] NOT NULL,
[Label] [char](15) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUGender] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUMarkerEvidence](
[ID] [tinyint] NOT NULL,
[Label] [char](20) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUMarkerEvidence] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUMarkerType](
[ID] [tinyint] NOT NULL,
[Label] [char](40) NOT NULL,
[Explicit] [bit] NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUMarkerType] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUMultipleBirth](
[ID] [tinyint] NOT NULL,
[Label] [char](10) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUMultipleBirth] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLURaceCohort](
[ID] [tinyint] NOT NULL,
[Label] [varchar](15) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLURaceCohort] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLURelationshipPath](
[ID] [tinyint] NOT NULL,
[Label] [char](20) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLURelationshipPath] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLURosterGen1](
[ID] [smallint] NOT NULL,
[Label] [varchar](255) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLURosterGen1] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUSurveySource](
[ID] [tinyint] NOT NULL,
[Label] [char](12) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUSurvey] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUTristate](
[ID] [tinyint] NOT NULL,
[Label] [char](10) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_tblLUIsMZ] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Enum].[tblLUYesNo](
[ID] [smallint] NOT NULL,
[Label] [char](40) NOT NULL,
[Active] [varchar](5) NOT NULL,
[Notes] [varchar](255) NULL,
CONSTRAINT [PK_[tblLUYesNoGen1] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Extract].[tbl97Roster](
[R0000100] [int] NULL,
[R0536300] [int] NULL,
[R0536401] [int] NULL,
[R0536402] [int] NULL,
[R1097800] [int] NULL,
[R1097900] [int] NULL,
[R1098000] [int] NULL,
[R1098100] [int] NULL,
[R1098200] [int] NULL,
[R1098300] [int] NULL,
[R1098400] [int] NULL,
[R1098500] [int] NULL,
[R1098600] [int] NULL,
[R1098700] [int] NULL,
[R1098800] [int] NULL,
[R1098900] [int] NULL,
[R1099000] [int] NULL,
[R1099100] [int] NULL,
[R1099200] [int] NULL,
[R1099300] [int] NULL,
[R1101000] [int] NULL,
[R1101100] [int] NULL,
[R1101200] [int] NULL,
[R1101300] [int] NULL,
[R1101400] [int] NULL,
[R1101500] [int] NULL,
[R1101600] [int] NULL,
[R1101700] [int] NULL,
[R1101800] [int] NULL,
[R1101900] [int] NULL,
[R1102000] [int] NULL,
[R1102100] [int] NULL,
[R1102200] [int] NULL,
[R1102300] [int] NULL,
[R1102400] [int] NULL,
[R1102500] [int] NULL,
[R1102501] [int] NULL,
[R1102600] [int] NULL,
[R1102700] [int] NULL,
[R1102800] [int] NULL,
[R1102900] [int] NULL,
[R1103000] [int] NULL,
[R1103100] [int] NULL,
[R1103200] [int] NULL,
[R1103300] [int] NULL,
[R1103400] [int] NULL,
[R1103500] [int] NULL,
[R1103600] [int] NULL,
[R1103700] [int] NULL,
[R1103800] [int] NULL,
[R1103900] [int] NULL,
[R1104000] [int] NULL,
[R1104100] [int] NULL,
[R1117000] [int] NULL,
[R1117100] [int] NULL,
[R1117200] [int] NULL,
[R1117300] [int] NULL,
[R1117400] [int] NULL,
[R1117500] [int] NULL,
[R1117600] [int] NULL,
[R1117700] [int] NULL,
[R1117800] [int] NULL,
[R1117900] [int] NULL,
[R1118000] [int] NULL,
[R1118100] [int] NULL,
[R1118200] [int] NULL,
[R1118300] [int] NULL,
[R1118400] [int] NULL,
[R1118500] [int] NULL,
[R1118600] [int] NULL,
[R1118700] [int] NULL,
[R1118800] [int] NULL,
[R1118900] [int] NULL,
[R1119000] [int] NULL,
[R1119100] [int] NULL,
[R1119200] [int] NULL,
[R1119300] [int] NULL,
[R1119400] [int] NULL,
[R1119500] [int] NULL,
[R1119600] [int] NULL,
[R1119700] [int] NULL,
[R1119800] [int] NULL,
[R1119900] [int] NULL,
[R1120000] [int] NULL,
[R1120100] [int] NULL,
[R1120200] [int] NULL,
[R1120300] [int] NULL,
[R1120400] [int] NULL,
[R1120500] [int] NULL,
[R1120600] [int] NULL,
[R1120700] [int] NULL,
[R1120800] [int] NULL,
[R1120900] [int] NULL,
[R1121000] [int] NULL,
[R1121100] [int] NULL,
[R1121200] [int] NULL,
[R1121300] [int] NULL,
[R1121400] [int] NULL,
[R1121500] [int] NULL,
[R1121600] [int] NULL,
[R1121700] [int] NULL,
[R1121800] [int] NULL,
[R1121900] [int] NULL,
[R1122000] [int] NULL,
[R1122100] [int] NULL,
[R1122200] [int] NULL,
[R1122300] [int] NULL,
[R1122400] [int] NULL,
[R1122500] [int] NULL,
[R1122600] [int] NULL,
[R1122700] [int] NULL,
[R1122800] [int] NULL,
[R1122900] [int] NULL,
[R1123000] [int] NULL,
[R1123100] [int] NULL,
[R1123200] [int] NULL,
[R1123300] [int] NULL,
[R1123400] [int] NULL,
[R1123500] [int] NULL,
[R1123600] [int] NULL,
[R1123700] [int] NULL,
[R1123800] [int] NULL,
[R1123900] [int] NULL,
[R1124000] [int] NULL,
[R1124100] [int] NULL,
[R1124200] [int] NULL,
[R1124300] [int] NULL,
[R1124400] [int] NULL,
[R1124500] [int] NULL,
[R1124600] [int] NULL,
[R1124700] [int] NULL,
[R1124800] [int] NULL,
[R1124900] [int] NULL,
[R1125000] [int] NULL,
[R1125100] [int] NULL,
[R1125200] [int] NULL,
[R1125300] [int] NULL,
[R1125400] [int] NULL,
[R1125500] [int] NULL,
[R1125600] [int] NULL,
[R1125700] [int] NULL,
[R1125800] [int] NULL,
[R1125900] [int] NULL,
[R1126000] [int] NULL,
[R1126100] [int] NULL,
[R1126200] [int] NULL,
[R1126300] [int] NULL,
[R1126400] [int] NULL,
[R1126500] [int] NULL,
[R1126600] [int] NULL,
[R1126700] [int] NULL,
[R1126800] [int] NULL,
[R1126900] [int] NULL,
[R1127000] [int] NULL,
[R1127100] [int] NULL,
[R1127200] [int] NULL,
[R1127300] [int] NULL,
[R1127400] [int] NULL,
[R1127500] [int] NULL,
[R1127600] [int] NULL,
[R1127700] [int] NULL,
[R1127800] [int] NULL,
[R1127900] [int] NULL,
[R1128000] [int] NULL,
[R1128100] [int] NULL,
[R1128200] [int] NULL,
[R1128300] [int] NULL,
[R1128400] [int] NULL,
[R1128500] [int] NULL,
[R1128600] [int] NULL,
[R1128700] [int] NULL,
[R1128800] [int] NULL,
[R1128900] [int] NULL,
[R1129000] [int] NULL,
[R1129100] [int] NULL,
[R1129200] [int] NULL,
[R1129300] [int] NULL,
[R1129400] [int] NULL,
[R1129500] [int] NULL,
[R1129600] [int] NULL,
[R1129700] [int] NULL,
[R1131900] [int] NULL,
[R1132000] [int] NULL,
[R1132100] [int] NULL,
[R1132200] [int] NULL,
[R1132300] [int] NULL,
[R1132400] [int] NULL,
[R1132500] [int] NULL,
[R1132600] [int] NULL,
[R1132700] [int] NULL,
[R1132800] [int] NULL,
[R1132900] [int] NULL,
[R1133000] [int] NULL,
[R1133100] [int] NULL,
[R1133200] [int] NULL,
[R1133300] [int] NULL,
[R1133400] [int] NULL,
[R1134200] [int] NULL,
[R1134300] [int] NULL,
[R1134400] [int] NULL,
[R1134500] [int] NULL,
[R1134600] [int] NULL,
[R1134700] [int] NULL,
[R1134800] [int] NULL,
[R1134900] [int] NULL,
[R1135000] [int] NULL,
[R1135100] [int] NULL,
[R1135200] [int] NULL,
[R1135300] [int] NULL,
[R1135400] [int] NULL,
[R1135500] [int] NULL,
[R1135600] [int] NULL,
[R1135700] [int] NULL,
[R1135800] [int] NULL,
[R1135900] [int] NULL,
[R1136000] [int] NULL,
[R1136100] [int] NULL,
[R1136200] [int] NULL,
[R1136300] [int] NULL,
[R1136400] [int] NULL,
[R1136500] [int] NULL,
[R1136600] [int] NULL,
[R1136700] [int] NULL,
[R1136800] [int] NULL,
[R1136900] [int] NULL,
[R1137000] [int] NULL,
[R1137100] [int] NULL,
[R1137200] [int] NULL,
[R1137300] [int] NULL,
[R1137400] [int] NULL,
[R1137500] [int] NULL,
[R1137600] [int] NULL,
[R1137700] [int] NULL,
[R1137800] [int] NULL,
[R1137900] [int] NULL,
[R1138000] [int] NULL,
[R1138100] [int] NULL,
[R1138200] [int] NULL,
[R1138300] [int] NULL,
[R1138400] [int] NULL,
[R1138500] [int] NULL,
[R1138600] [int] NULL,
[R1138700] [int] NULL,
[R1138800] [int] NULL,
[R1138900] [int] NULL,
[R1139000] [int] NULL,
[R1139100] [int] NULL,
[R1139200] [int] NULL,
[R1139300] [int] NULL,
[R1139400] [int] NULL,
[R1139500] [int] NULL,
[R1139600] [int] NULL,
[R1139700] [int] NULL,
[R1139800] [int] NULL,
[R1139900] [int] NULL,
[R1140000] [int] NULL,
[R1140100] [int] NULL,
[R1140200] [int] NULL,
[R1140300] [int] NULL,
[R1162100] [int] NULL,
[R1162200] [int] NULL,
[R1162300] [int] NULL,
[R1162400] [int] NULL,
[R1162500] [int] NULL,
[R1162600] [int] NULL,
[R1162700] [int] NULL,
[R1162800] [int] NULL,
[R1162900] [int] NULL,
[R1163000] [int] NULL,
[R1163100] [int] NULL,
[R1163200] [int] NULL,
[R1163300] [int] NULL,
[R1163400] [int] NULL,
[R1163500] [int] NULL,
[R1163600] [int] NULL,
[R1163601] [int] NULL,
[R1163700] [int] NULL,
[R1163800] [int] NULL,
[R1163900] [int] NULL,
[R1164000] [int] NULL,
[R1164100] [int] NULL,
[R1164200] [int] NULL,
[R1164300] [int] NULL,
[R1164400] [int] NULL,
[R1164500] [int] NULL,
[R1164600] [int] NULL,
[R1164700] [int] NULL,
[R1164800] [int] NULL,
[R1164900] [int] NULL,
[R1165000] [int] NULL,
[R1165100] [int] NULL,
[R1165200] [int] NULL,
[R1165300] [int] NULL,
[R1165400] [int] NULL,
[R1165500] [int] NULL,
[R1190700] [int] NULL,
[R1190800] [int] NULL,
[R1190900] [int] NULL,
[R1191000] [int] NULL,
[R1191100] [int] NULL,
[R1191200] [int] NULL,
[R1191400] [int] NULL,
[R1191600] [int] NULL,
[R1191700] [int] NULL,
[R1191800] [int] NULL,
[R1191900] [int] NULL,
[R1192000] [int] NULL,
[R1192100] [int] NULL,
[R1192200] [int] NULL,
[R1192300] [int] NULL,
[R1192400] [int] NULL,
[R1192500] [int] NULL,
[R1192600] [int] NULL,
[R1192700] [int] NULL,
[R1192800] [int] NULL,
[R1192900] [int] NULL,
[R1192901] [int] NULL,
[R1192902] [int] NULL,
[R1235800] [int] NULL,
[R1315800] [int] NULL,
[R1315900] [int] NULL,
[R1316000] [int] NULL,
[R1316100] [int] NULL,
[R1316200] [int] NULL,
[R1316300] [int] NULL,
[R1316400] [int] NULL,
[R1316500] [int] NULL,
[R1316600] [int] NULL,
[R1316700] [int] NULL,
[R1316800] [int] NULL,
[R1316900] [int] NULL,
[R1317000] [int] NULL,
[R1317100] [int] NULL,
[R1317200] [int] NULL,
[R1317300] [int] NULL,
[R1317400] [int] NULL,
[R1482600] [int] NULL,
[R2409300] [int] NULL,
[R2409400] [int] NULL,
[R2409500] [int] NULL,
[R2409600] [int] NULL,
[R2409700] [int] NULL,
[R2409800] [int] NULL,
[R2409900] [int] NULL,
[R2410000] [int] NULL,
[R2410100] [int] NULL,
[R2410200] [int] NULL,
[R2410300] [int] NULL,
[R2410400] [int] NULL,
[R2410500] [int] NULL,
[R2410600] [int] NULL,
[R2416300] [int] NULL,
[R2416400] [int] NULL,
[R2416500] [int] NULL,
[R2416600] [int] NULL,
[R2416700] [int] NULL,
[R2416800] [int] NULL,
[R2416900] [int] NULL,
[R2417000] [int] NULL,
[R2417100] [int] NULL,
[R2417200] [int] NULL,
[R2417300] [int] NULL,
[R2417400] [int] NULL,
[R2417500] [int] NULL,
[R2417600] [int] NULL,
[U1258700] [int] NULL,
[U1258800] [int] NULL,
[U1258900] [int] NULL,
[U1259000] [int] NULL,
[U1259100] [int] NULL,
[U1259200] [int] NULL,
[U1259300] [int] NULL,
[U1259400] [int] NULL,
[U1259500] [int] NULL,
[U1259600] [int] NULL,
[U1259700] [int] NULL,
[U1259800] [int] NULL,
[U1259900] [int] NULL,
[U1260000] [int] NULL,
[U1260100] [int] NULL,
[U1260200] [int] NULL,
[U1260300] [int] NULL,
[U1261700] [int] NULL,
[U1261800] [int] NULL,
[U1261900] [int] NULL,
[U1262000] [int] NULL,
[U1262100] [int] NULL,
[U1262200] [int] NULL,
[U1262300] [int] NULL,
[U1262400] [int] NULL,
[U1262500] [int] NULL,
[U1262600] [int] NULL,
[U1262700] [int] NULL,
[U1262800] [int] NULL,
[U1262900] [int] NULL,
[U1263000] [int] NULL,
[U1263100] [int] NULL,
[U1263200] [int] NULL,
[U1263300] [int] NULL,
[U1266000] [int] NULL,
[U1266100] [int] NULL,
[U1266200] [int] NULL,
[U1266300] [int] NULL,
[U1266400] [int] NULL,
[U1266500] [int] NULL,
[U1266600] [int] NULL,
[U1266700] [int] NULL,
[U1266800] [int] NULL,
[U1266900] [int] NULL,
[U1267000] [int] NULL,
[U1267100] [int] NULL,
[U1267200] [int] NULL,
[U1267300] [int] NULL,
[U1267400] [int] NULL,
[U1267500] [int] NULL,
[U1267600] [int] NULL
) ON [PRIMARY]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Extract].[tblGen1Explicit](
[R0000100] [int] NOT NULL,
[R0000149] [int] NULL,
[R0000150] [int] NULL,
[R0000151] [int] NULL,
[R0000152] [int] NULL,
[R0000153] [int] NULL,
[R0000154] [int] NULL,
[R0000155] [int] NULL,
[R0000156] [int] NULL,
[R0000157] [int] NULL,
[R0000158] [int] NULL,
[R0000159] [int] NULL,
[R0000162] [int] NULL,
[R0000163] [int] NULL,
[R0000164] [int] NULL,
[R0000165] [int] NULL,
[R0000166] [int] NULL,
[R0173600] [int] NULL,
[R0214700] [int] NULL,
[R0214800] [int] NULL,
[R4125101] [int] NULL,
[R4125801] [int] NULL,
[R4126501] [int] NULL,
[R4127201] [int] NULL,
[R4127901] [int] NULL,
[R4128601] [int] NULL,
[R4129301] [int] NULL,