-
Notifications
You must be signed in to change notification settings - Fork 22
/
BabelfishCompassUser.Optimistic.cfg
855 lines (349 loc) · 10.8 KB
/
BabelfishCompassUser.Optimistic.cfg
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
#
# BabelfishCompassUser.Optimistic.cfg
#
# Version
# -------
# Distributed with Compass v.2023-12
#
# What is this file?
# ------------------
# This file is a predefined version of the generic user-defined .cfg file
# for Babelfish. See the header of BabelfishCompassUser.cfg, and the
# Babelfish User Guide, for details about usage, file contents and
# required formatting conventions.
#
# Why 'optimistic'?
# -----------------
# This file is labeled 'optimistic' because it reclassifies various T-SQL
# features that are not supported by Babelfish as 'Ignored'. As a result,
# these features will no longer show up in the 'Not Supported' section of
# the Compass report, as they have moved to the 'Ignored' section.
# This file only reclassifies SQL features that are unlikely to have a significant
# impact on the functionality of the application being migrated.
# For example, ALTER DATABASE may not be supported by Babelfish but it
# will occur about 30 times in every SSMS-generated DDL script, in most
# cases with default values only. To avoid littering the Compass report
# with 'Not Supported' features that will likely end up being ignored or
# removed anyway, using this .cfg file will present a slightly more optimistic
# and realistic view and avoid unnecessary negative perceptions for users who
# are less familiar with Compass and Babelfish.
#
# How to use this .cfg file?
# --------------------------
# By default, Compass does not use this .cfg file, but instead uses the
# default user-defined .cfg file (that's BabelfishCompassUser.cfg; by default,
# this file does not contain any overrides).
# To use this 'optimistic' .cfg file, specify the following flag:
# -userconfigfile BabelfishCompassUser.Optimistic.cfg
#
# File location
# -------------
# Like all user-defined Compass .cfg files, this file is located in
# the Compass reports directory. This is located at
# C:\Users\<username>\Documents\BabelfishCompass (Windows) or
# /Users/<username>/BabelfishCompassReports (Mac) or
# /home/<username>/BabelfishCompassReports (Linux).
#
# Can I customize BabelfishCompassUser.Optimistic.cfg?
# ----------------------------------------------------
# Yes. You can customize this file any way you like. See the Compass
# User Guide as well as the header of BabelfishCompassUser.cfg for
# guidance on how to customize.
# However, it is recommended to copy BabelfishCompassUser.Optimistic.cfg
# to a different filename first (e.g. myBBFconfig.cfg) and customize the copy
# instead, to avoid your customizations being overwritten after the next Compass upgrade.
# Run Compass with this flag to use your customized copy:
# -userconfigfile myBBFconfig.cfg
# Make sure to keep your customized copy in the same directory (see above).
#
# Compass upgrades
# ----------------
# When a new version of Compass is installed, it may contain an updated version
# of BabelfishCompassUser.Optimistic.cfg: this will overwrite the previous
# version. So if you modified BabelfishCompassUser.Optimistic.cfg
# (see previous point), your modifications will be lost.
# After downloading a new version of Compass, there will be a file named
# BabelfishCompassUser.Optimistic.cfg in the Compass installation directory.
# This file is automatically moved to the Compass reports directory (see above)
# the next time Compass runs. It is recommended not to interfere with this
# process, though no harm should be expected other than the latest version of
# BabelfishCompassUser.Optimistic.cfg not being made available for use.
#
#------------------------------------------------------------------------------
[@@variable]
[@@ERROR value]
[Regular variable named @@v]
[Datatypes]
[TIMESTAMP column without column name]
[NUMERIC/DECIMAL column with non-numeric default]
[Maximum precision IDENTITY column]
[SQL graph]
[Table variables]
[Table value constructor]
[XML features]
[JSON features]
[HIERARCHYID features]
[Geospatial features]
[STGEOMFROMTEXT]
[CURSOR variables]
[CURSOR parameters]
[Aggregate functions]
[Built-in functions]
default_classification-Ignored=FILEGROUPPROPERTY,FILEGROUP_ID,FILEGROUP_NAME,FILEPROPERTY,FILEPROPERTYEX,FILE_ID,FILE_IDEX,FILE_NAME
[HASHBYTES]
[DATEPART]
[DATENAME]
[DATEDIFF]
[DATEADD]
[CHECKSUM]
[STRING_AGG() WITHIN GROUP]
[expression AT TIME ZONE]
[Variable aggregates across rows]
[Variable assignment dependency]
[TRIGGER_NESTLEVEL with N arguments]
[SCHEMA_NAME with N arguments]
[SCHEMA_ID with N arguments]
[Numeric representation of datetime]
[Numeric assignment to datetime variable/parameter/column]
[Datetime converted to numeric]
[Column attribute]
[Inline index]
[CLUSTERED index]
[NONCLUSTERED HASH index]
[DESC constraint]
[FK constraint referencing DB name]
[ALTER TABLE]
default_classification-Ignored=SET LOCK_ESCALATION
[ALTER INDEX]
[IGNORE_DUP_KEY index]
[Index options]
[Index attribute]
[Maximum columns per index]
[Nullable column]
[Partitioning]
[FOR REPLICATION]
[NOT FOR REPLICATION]
[Non-PERSISTED computed columns]
[Features in computed columns]
[Scalar UDF in table DDL]
[Global Temporary Tables]
[DROP multiple objects]
[DROP IF EXISTS]
[DROP INDEX]
[SERVERPROPERTY]
[CONNECTIONPROPERTY]
[DATABASEPROPERTYEX]
[SQL_VARIANT_PROPERTY]
[COLLATIONPROPERTY]
[SESSIONPROPERTY]
[LOGINPROPERTY]
[COLUMNPROPERTY]
[OBJECTPROPERTY]
[OBJECTPROPERTYEX]
[TYPEPROPERTY]
[INDEXPROPERTY]
[INDEXKEY_PROPERTY]
[ALTER VIEW]
[ALTER PROCEDURE]
default_classification=Ignored
[ALTER FUNCTION]
default_classification=Ignored
[ALTER TRIGGER]
[DDL TRIGGER]
[Instead-Of Trigger]
[View options]
[Indexed view]
[Materialized view]
[Parameter value DEFAULT]
[Maximum parameters per procedure]
[Maximum parameters per function]
[Procedure options]
[Execute procedure options]
[Execute string options]
[Temporary procedures]
[Function options]
[Missing AS keyword in scalar CREATE FUNCTION]
[EXECUTE SQL function]
[Trigger options]
[Transition table reference for multi-DML trigger]
[Trigger created with schema name]
[ENABLE TRIGGER]
[DISABLE TRIGGER]
[Procedure versioning (declaration)]
[Procedure versioning (execution)]
[Variable procedure name]
[CREATE DATABASE options]
default_classification-Ignored=CATALOG_COLLATION DATABASE_DEFAULT,CONTAINMENT=PARTIAL
[ALTER DATABASE]
default_classification=Ignored
[ALTER DATABASE options]
default_classification=Ignored
[Delimited database name]
[Double-quoted string]
[Unquoted string]
[Line continuation character]
[SET QUOTED_IDENTIFIER in batch]
[MONEY literal]
[LIKE '[...]
[SELECT TOP without ORDER BY]
[ODBC scalar function]
[ODBC literal]
[ODBC Outer Join]
[ODBC {ESCAPE} clause]
[Query hint]
[Join hint]
[Table hint]
[Cross-database reference]
[Remote object reference]
[Leading dots in identifier]
[Special column names]
[Special characters in identifier]
[Special characters in parameter]
[Maximum identifier length]
[WAITFOR]
[GOTO]
[CHECKPOINT]
[NEXT VALUE FOR]
[Cursor options]
[GLOBAL cursor]
[FETCH cursor]
[DBA statements]
[ALTER SERVER CONFIGURATION]
[DBCC statements]
default_classification=Ignored
[Traceflags]
[Transactions]
[::function call (old syntax)]
[IF-ELSE-block containing only DECLARE]
[Collations]
[Case-sensitive collation]
default_classification=Ignored
[Catalogs]
default_classification-Ignored=sysfiles,sysfilegroups,sysaltfiles
[INFORMATION_SCHEMA]
[System Stored Procedures]
default_classification-Ignored=sp_db_vardecimal_storage_format,sp_addextendedproperty,sp_refreshview,sp_helpfile,xp_fixeddrives,sp_msreplraiserror,sp_trace_create,sp_trace_setevent,sp_trace_setfilter,sp_trace_setstatus
[System Functions]
default_classification-Ignored=fn_cdc_check_parameters,dm_db_index_operational_stats,dm_db_index_physical_stats,dm_db_log_stats,dm_db_stats_properties,dm_exec_plan_attributes,dm_exec_query_plan,dm_exec_query_statistics_xml,dm_exec_sql_text,dm_exec_text_query_plan,dm_io_virtual_file_stats,dm_os_volume_stats,dm_sql_referenced_entities,dm_sql_referencing_entities,dm_os_enumerate_filesystem,dm_os_file_exists,dm_io_virtual_file_stats,fn_virtualfilestats,fn_xe_file_target_read_file
[GRANT]
default_classification=Ignored
[REVOKE]
default_classification=Ignored
[DENY]
default_classification=Ignored
[ALTER AUTHORIZATION]
default_classification=Ignored
[EXECUTE AS]
[SECURITY DEFINER transaction mgmt]
[OPEN KEY]
[CLOSE KEY]
[SELECT..PIVOT]
[SELECT..UNPIVOT]
[SELECT TOP WITH TIES]
[SELECT TOP PERCENT]
[SELECT TOP in Table-Valued Function]
[Lateral join]
[T-SQL Outer Join operator]
[Compound operator containing whitespace]
[PG operator requiring whitespace]
[GROUP BY ROLLUP/CUBE (old syntax)]
[GROUP BY ALL]
[INSERT]
[BULK INSERT]
[INSERT BULK]
[UPDATE]
[DELETE]
[MERGE]
[DML Table Source]
[TRUNCATE TABLE]
[READTEXT]
[WRITETEXT]
[UPDATETEXT]
[UPDATE STATISTICS]
[SET, multiple options combined]
[SET NOCOUNT]
[SET NOEXEC]
[SET IDENTITY_INSERT]
[SET ROWCOUNT]
[SET TRANSACTION ISOLATION LEVEL]
[SET IMPLICIT_TRANSACTIONS]
[SET XACT_ABORT]
[SET ANSI_NULLS]
[SET ANSI_NULL_DFLT_ON]
[SET ANSI_NULL_DFLT_OFF]
[SET ANSI_PADDING]
[SET ANSI_WARNINGS]
[SET ARITHABORT]
[SET ARITHIGNORE]
[SET CURSOR_CLOSE_ON_COMMIT]
[SET CONCAT_NULL_YIELDS_NULL]
[SET QUOTED_IDENTIFIER]
[SET FMTONLY]
[SET PARSEONLY]
[SET NUMERIC_ROUNDABORT]
[SET TEXTSIZE]
[SET CONTEXT_INFO]
[SET STATISTICS]
[SET SHOWPLAN_ALL]
[SET SHOWPLAN_TEXT]
[SET SHOWPLAN_XML]
[SET FORCEPLAN]
default_classification=Ignored
[SET OFFSETS]
[SET DATEFIRST]
[SET DATEFORMAT]
default_classification-Ignored=mdy
[SET DEADLOCK_PRIORITY]
default_classification=Ignored
[SET LOCK_TIMEOUT]
[SET LANGUAGE]
[SET NO_BROWSETABLE]
[SET QUERY_GOVERNOR_COST_LIMIT]
[Login options]
default_classification=Ignored
[User options]
[CREATE ROLE]
[ALTER ROLE]
[DB role options]
[DB roles]
default_classification=Ignored
[CREATE SERVER ROLE]
[ALTER SERVER ROLE]
default_classification=Ignored
[Server role options]
[SETUSER]
[ALTER SCHEMA]
[SCHEMA options]
[SEQUENCE options]
[Miscellaneous objects]
[ADD SIGNATURE]
[Temporal table]
[Service Broker]
[Syntax Issues]
[Dynamic SQL]
[FORMAT() culture]
[SET BABELFISH_STATISTICS]
[SET BABELFISH_SHOWPLAN_ALL]
[DISTINCT FROM]
[STRING_SPLIT with N arguments]
[TRIM]
[NEXT VALUE FOR context]
[Dynamically created cursor]
[Comparison operator]
[SET ANSI_DEFAULTS]
[sp_serveroption]
[sqlcmd command]
[sqlcmd variable]
[Extended property type]
default_classification=Ignored
[Datetime converted to (VAR)BINARY]
[Binary representation of datetime]
[SELECT..INTO]
[NUMERIC datatype for IDENTITY]
[User-defined datatype for IDENTITY]
[DROP SIGNATURE]
[ADD SENSITIVITY CLASSIFICATION]
[DROP SENSITIVITY CLASSIFICATION]
[FULLTEXT INDEX]
[FULLTEXT CONTAINS]
# end