Back to OIM Explorer

dbo.QBM_FTSQLKeywords

Inline Table FunctionSQL_INLINE_TABLE_VALUED_FUNCTIONSandbox DB

Inline Table Function.

Source: sandbox-db sys.sql_modules

Source size: 30.753 characters

Interpretation

  • Database function. Usually supports views, validation, or calculated predicates; look at referenced-by entries for callers.

Relations

  • No extracted relations.

Typed Edges

  • references source dbo.TSB_PMapAccountToPerson source text reference

Complete Source

SQL290 lines
1CREATE FUNCTION dbo.QBM_FTSQLKeywords(2  @NativeSQLOnly BIT3) RETURNS TABLE4  WITH SCHEMABINDING5AS6RETURN(7SELECT8  x.KeyWord,9  x.KeyWordArea,10  x.KeywordFlagCS,11  isnull(vd.floatValue, 0.0) AS Risk,12CASE13  WHEN x.KeyWord LIKE '%*' THEN14115ELSE 016END AS IsPattern17FROM(18VALUES('@@bauer@@', 'SystemFunction', 'None', NULL),('sys.', '23995', 'None', 'SystemRisk'),('sp_*', '23995',19'None', 'SystemRisk'),('INFORMATION_SCHEMA.', '23995', 'None', 'SystemRisk'),('msdb..', '23995', 'None',20'SystemRisk'),('@@trancount', 'SystemFunction', 'None', NULL),('@@servername', 'SystemFunction', 'None',21'SystemRisk'),('SERVERPROPERTY', 'SystemFunction', 'None', 'SystemRisk'),('@@rowcount', 'SystemFunction',22'None', NULL),('ERROR_SEVERITY', 'SystemFunction', 'None', NULL),('ERROR_NUMBER', 'SystemFunction', 'None',23NULL),('ERROR_STATE', 'SystemFunction', 'None', NULL),('ERROR_MESSAGE', 'SystemFunction', 'None', NULL),24('ERROR_LINE', 'SystemFunction', 'None', NULL),('ERROR_PROCEDURE', 'SystemFunction', 'None', 'SystemRisk'),25('sp_executeSQL', 'SystemFunction', 'DML', 'SystemRisk'),('sp_bindefault', 'SystemFunction', 'None', 'SystemRisk'),26('sp_autostats', 'SystemFunction', 'None', 'SystemRisk'),('sp_settriggerorder', 'SystemFunction', 'DDL',27'SystemRisk'),('sp_indexoption', 'SystemFunction', 'DDL', 'SystemRisk'),('sp_unbindefault', 'SystemFunction',28'DDL', 'SystemRisk'),('msdb..sp_delete_job', 'SystemFunction', 'None', 'SystemRisk'),('msdb..sp_update_job',29'SystemFunction', 'None', 'SystemRisk'),('msdb..sp_add_job', 'SystemFunction', 'None', 'SystemRisk'),30('msdb..sp_update_schedule', 'SystemFunction', 'None', 'SystemRisk'),('msdb..sp_update_jobstep', 'SystemFunction',31'None', 'SystemRisk'),('msdb..sp_start_job', 'SystemFunction', 'None', 'SystemRisk'),('msdb..sp_stop_job',32'SystemFunction', 'None', 'SystemRisk'),('msdb..sp_add_jobstep', 'SystemFunction', 'None', 'SystemRisk'),33('msdb..sp_add_jobschedule', 'SystemFunction', 'None', 'SystemRisk'),('msdb..sp_add_jobserver', 'SystemFunction',34'None', 'SystemRisk'),('xp_servicecontrol', 'SystemFunction', 'None', 'SystemRisk'),('INFORMATION_SCHEMA.TABLES',35'SystemFunction', 'None', 'SystemRisk'),('INFORMATION_SCHEMA.COLUMNS', 'SystemFunction', 'None', 'SystemRisk'),36('datediff', 'SystemFunction', 'None', NULL),('@@procid', 'SystemFunction', 'None', NULL),('rand', 'SystemFunction',37'None', NULL),('dateadd', 'SystemFunction', 'None', NULL),('sign', 'SystemFunction', 'None', NULL),('replicate',38'SystemFunction', 'None', NULL),('rtrim', 'SystemFunction', 'None', NULL),('ltrim', 'SystemFunction',39'None', NULL),('charindex', 'SystemFunction', 'None', 'LinearSearch'),('IS_NULLABLE', 'SystemFunction',40'None', NULL),('patindex', 'SystemFunction', 'None', 'LinearSearch'),('datepart', 'SystemFunction', 'None',41NULL),('abs', 'SystemFunction', 'None', NULL),('power', 'SystemFunction', 'None', NULL),('hashbytes',42'SystemFunction', 'None', NULL),('db_name', 'SystemFunction', 'None', 'SystemRisk'),('unicode', 'SystemFunction',43'None', 'CodeToChar'),('datalength', 'SystemFunction', 'None', NULL),('XACT_STATE', 'SystemFunction',44'None', NULL),('@@spid', 'SystemFunction', 'None', 'SystemRisk'),('newid', 'SystemFunction', 'None', NULL),45('getutcdate', 'SystemFunction', 'None', NULL),('GetDate', 'SystemFunction', 'None', NULL),('ascii', 'SystemFunction',46'None', 'CodeToChar'),('replace', 'SystemFunction', 'None', NULL),('STR', 'SystemFunction', 'None', NULL),47('isnull', 'SystemFunction', 'None', NULL),('len', 'SystemFunction', 'None', NULL),('isnumeric', 'SystemFunction',48'None', NULL),('ROW_NUMBER', 'SystemFunction', 'None', NULL),('SQL_Latin1_General_CP1_CS_AS', 'SystemFunction',49'None', NULL),('SQL_Latin1_General_CP1_CI_AS', 'SystemFunction', 'None', NULL),('Latin1_General_100_CS_AS',50'SystemFunction', 'None', NULL),('Latin1_General_100_CI_AS', 'SystemFunction', 'None', NULL),('FORWARD_ONLY',51'own defined', 'None', NULL),('FAST_FORWARD', 'own defined', 'None', NULL),('READ_ONLY', 'own defined',52'None', NULL),('@@fetch_status', 'own defined', 'None', NULL),('database_default', 'own defined', 'None',53NULL),('nvarchar', 'own defined', 'None', NULL),('round', 'own defined', 'None', NULL),('try', 'own defined',54'None', NULL),('catch', 'own defined', 'None', NULL),('tablock', 'own defined', 'None', 'SystemRisk'),55('delay', 'own defined', 'None', NULL),('NOWAIT', 'own defined', 'None', NULL),('nolock', 'own defined',56'None', NULL),('fastfirstrow', 'own defined', 'None', NULL),('fast', 'own defined', 'None', NULL),('nocount',57'own defined', 'None', NULL),('yy', 'own defined', 'None', NULL),('qq', 'own defined', 'None', NULL),58('mm', 'own defined', 'None', NULL),('dy', 'own defined', 'None', NULL),('dd', 'own defined', 'None',59NULL),('ww', 'own defined', 'None', NULL),('hh', 'own defined', 'None', NULL),('mi', 'own defined', 'None',60NULL),('ss', 'own defined', 'None', NULL),('ms', 'own defined', 'None', NULL),('ACTION', 'T-SQL Future',61'None', NULL),('ADA', 'ODBC', 'None', NULL),('ADD', 'T-SQL', 'None', NULL),('ADMIN', 'T-SQL Future', 'None',62NULL),('AFTER', 'T-SQL Future', 'None', NULL),('AGGREGATE', 'T-SQL Future', 'None', NULL),('ALIAS', 'T-SQL Future',63'None', NULL),('ALL', 'T-SQL', 'None', NULL),('ALLOCATE', 'T-SQL Future', 'None', NULL),('ALTER', 'T-SQL',64'DDL', 'SystemRisk'),('AND', 'T-SQL', 'None', NULL),('ANY', 'T-SQL', 'None', NULL),('ARE', 'T-SQL Future',65'None', NULL),('ARRAY', 'T-SQL Future', 'None', NULL),('AS', 'T-SQL', 'None', NULL),('ASC', 'T-SQL', 'None',66NULL),('ASENSITIVE', 'T-SQL Future', 'None', NULL),('ASSERTION', 'T-SQL Future', 'None', NULL),('ASYMMETRIC',67'T-SQL Future', 'None', NULL),('AT', 'T-SQL Future', 'None', NULL),('ATOMIC', 'T-SQL Future', 'None',68NULL),('AUTHORIZATION', 'T-SQL', 'None', NULL),('AVG', 'ODBC', 'None', NULL),('BACKUP', 'T-SQL', 'DML',69'SystemRisk'),('BEFORE', 'T-SQL Future', 'None', NULL),('BEGIN', 'T-SQL', 'None', NULL),('BETWEEN', 'T-SQL',70'None', NULL),('BINARY', 'T-SQL Future', 'None', NULL),('BIT', 'T-SQL Future', 'None', NULL),('BIT_LENGTH',71'ODBC', 'None', NULL),('BLOB', 'T-SQL Future', 'None', NULL),('BOOLEAN', 'T-SQL Future', 'None', NULL),72('BOTH', 'T-SQL Future', 'None', NULL),('BREADTH', 'T-SQL Future', 'None', NULL),('BREAK', 'T-SQL', 'None',73NULL),('BROWSE', 'T-SQL', 'DML', 'SystemRisk'),('BULK', 'T-SQL', 'DML', 'SystemRisk'),('BY', 'T-SQL',74'None', NULL),('CALL', 'T-SQL Future', 'None', NULL),('CALLED', 'T-SQL Future', 'None', NULL),('CARDINALITY',75'T-SQL Future', 'None', NULL),('CASCADE', 'T-SQL', 'DML', 'SystemRisk'),('CASCADED', 'T-SQL Future', 'None',76NULL),('CASE', 'T-SQL', 'None', NULL),('CAST', 'T-SQL Future', 'None', NULL),('CATALOG', 'T-SQL Future',77'None', NULL),('CHAR', 'T-SQL Future', 'None', 'BinarySearch'),('char(7)', 'own defined', 'None', NULL),78('char(10)', 'own defined', 'None', NULL),('char(13)', 'own defined', 'None', NULL),('char(0)', 'own defined',79'None', NULL),('convert(char', 'own defined', 'None', NULL),('as char', 'own defined', 'None', NULL),80('CHAR_LENGTH', 'ODBC', 'None', NULL),('CHARACTER', 'T-SQL Future', 'None', NULL),('CHARACTER_LENGTH',81'ODBC', 'None', NULL),('CHECK', 'T-SQL', 'None', NULL),('CHECKPOINT', 'T-SQL', 'DML', 'SystemRisk'),('CLASS',82'T-SQL Future', 'None', NULL),('CLOB', 'T-SQL Future', 'None', NULL),('CLOSE', 'T-SQL', 'None', NULL),83('CLUSTERED', 'T-SQL', 'DML', 'SystemRisk'),('COALESCE', 'T-SQL', 'None', NULL),('COLLATE', 'T-SQL', 'None',84NULL),('COLLATION', 'T-SQL Future', 'None', NULL),('COLLECT', 'T-SQL Future', 'None', NULL),('COLUMN',85'T-SQL', 'None', NULL),('COMMIT', 'T-SQL', 'DML', 'SystemRisk'),('COMPLETION', 'T-SQL Future', 'None',86NULL),('COMPUTE', 'T-SQL', 'None', NULL),('CONDITION', 'T-SQL Future', 'None', NULL),('CONNECT', 'T-SQL Future',87'None', NULL),('CONNECTION', 'T-SQL Future', 'None', NULL),('CONSTRAINT', 'T-SQL', 'DML', 'SystemRisk'),88('CONSTRAINTS', 'T-SQL Future', 'None', NULL),('CONSTRUCTOR', 'T-SQL Future', 'None', NULL),('CONTAINS',89'T-SQL', 'None', NULL),('CONTAINSTABLE', 'T-SQL', 'None', NULL),('CONTINUE', 'T-SQL', 'None', NULL),('CONVERT',90'T-SQL', 'None', NULL),('CORR', 'T-SQL Future', 'None', NULL),('CORRESPONDING', 'T-SQL Future', 'None',91NULL),('COUNT', 'ODBC', 'None', NULL),('COVAR_POP', 'T-SQL Future', 'None', NULL),('COVAR_SAMP', 'T-SQL Future',92'None', NULL),('CREATE', 'T-SQL', 'DML', 'SystemRisk'),('CROSS', 'T-SQL', 'None', NULL),('CUBE', 'T-SQL Future',93'None', NULL),('CUME_DIST', 'T-SQL Future', 'None', NULL),('CURRENT', 'T-SQL', 'None', NULL),('CURRENT_CATALOG',94'T-SQL Future', 'None', NULL),('CURRENT_DATE', 'T-SQL', 'None', NULL),('CURRENT_DEFAULT_TRANSFORM_GROUP',95'T-SQL Future', 'None', NULL),('CURRENT_PATH', 'T-SQL Future', 'None', NULL),('CURRENT_ROLE', 'T-SQL Future',96'None', NULL),('CURRENT_SCHEMA', 'T-SQL Future', 'None', NULL),('CURRENT_TIME', 'T-SQL', 'None', NULL),97('CURRENT_TIMESTAMP', 'T-SQL', 'None', NULL),('CURRENT_TRANSFORM_GROUP_FOR_TYPE', 'T-SQL Future', 'None',98NULL),('CURRENT_USER', 'T-SQL', 'None', 'SystemInformation'),('CUR' + 'SOR', 'T-SQL', 'None', NULL),('CYCLE',99'T-SQL Future', 'None', NULL),('DATA', 'T-SQL Future', 'None', NULL),('DATABASE', 'T-SQL', 'DML', 'SystemRisk'),100('DATE', 'T-SQL Future', 'None', NULL),('DAY', 'T-SQL Future', 'None', NULL),('DBCC', 'T-SQL', 'DML',101'SystemRisk'),('DEALLOCATE', 'T-SQL', 'None', NULL),('DEC', 'T-SQL Future', 'None', NULL),('DECIMAL',102'T-SQL Future', 'None', NULL),('DECLARE', 'T-SQL', 'None', NULL),('DEFAULT', 'T-SQL', 'None', NULL),('DEFERRABLE',103'T-SQL Future', 'None', NULL),('DEFERRED', 'T-SQL Future', 'None', NULL),('DELETE', 'T-SQL', 'DML', 'SystemRisk'),104('DENY', 'T-SQL', 'DML', 'SystemRisk'),('DEPTH', 'T-SQL Future', 'None', NULL),('DEREF', 'T-SQL Future',105'None', NULL),('DESC', 'T-SQL', 'None', NULL),('DESCRIBE', 'T-SQL Future', 'None', NULL),('DESCRIPTOR',106'T-SQL Future', 'None', NULL),('DESTROY', 'T-SQL Future', 'None', NULL),('DESTRUCTOR', 'T-SQL Future',107'None', NULL),('DETERMINISTIC', 'T-SQL Future', 'None', NULL),('DIAGNOSTICS', 'T-SQL Future', 'None',108NULL),('DICTIONARY', 'T-SQL Future', 'None', NULL),('DISCONNECT', 'T-SQL Future', 'None', NULL),('DISK',109'T-SQL', 'DML', 'SystemRisk'),('DISTINCT', 'T-SQL', 'None', NULL),('DISTRIBUTED', 'T-SQL', 'DML', 'SystemRisk'),110('DOMAIN', 'T-SQL Future', 'None', NULL),('DOUBLE', 'T-SQL', 'None', NULL),('DROP', 'T-SQL', 'DDL', 'SystemRisk'),111('DUMP', 'T-SQL', 'DML', 'SystemRisk'),('DYNAMIC', 'T-SQL Future', 'None', NULL),('EACH', 'T-SQL Future',112'None', NULL),('ELEMENT', 'T-SQL Future', 'None', NULL),('ELSE', 'T-SQL', 'None', NULL),('END', 'T-SQL',113'None', NULL),('END-EXEC', 'T-SQL Future', 'None', NULL),('EQUALS', 'T-SQL Future', 'None', NULL),('ERRLVL',114'T-SQL', 'None', NULL),('ESCAPE', 'T-SQL', 'None', NULL),('EVERY', 'T-SQL Future', 'None', NULL),('EXCEPT',115'T-SQL', 'None', NULL),('EXCEPTION', 'T-SQL Future', 'None', NULL),('EXEC', 'T-SQL', 'DML', 'SystemRisk'),116('EXECUTE', 'T-SQL', 'DML', 'SystemRisk'),('EXISTS', 'T-SQL', 'None', NULL),('EXIT', 'T-SQL', 'None',117NULL),('EXTERNAL', 'T-SQL', 'None', NULL),('EXTRACT', 'ODBC', 'None', NULL),('FALSE', 'T-SQL Future',118'None', NULL),('FETCH', 'T-SQL', 'None', NULL),('FILE', 'T-SQL', 'DML', 'SystemRisk'),('FILLFACTOR', 'T-SQL',119'DML', 'SystemRisk'),('FILTER', 'T-SQL Future', 'None', NULL),('FIRST', 'T-SQL Future', 'None', NULL),120('FLOAT', 'T-SQL Future', 'None', NULL),('FOR', 'T-SQL', 'None', NULL),('FOREIGN', 'T-SQL', 'DML', 'SystemRisk'),121('FORTRAN', 'ODBC', 'None', NULL),('FOUND', 'T-SQL Future', 'None', NULL),('FREE', 'T-SQL Future', 'None',122NULL),('FREETEXT', 'T-SQL', 'None', NULL),('FREETEXTTABLE', 'T-SQL', 'None', NULL),('FROM', 'T-SQL', 'None',123NULL),('FULL', 'T-SQL', 'None', NULL),('FUNCTION', 'T-SQL', 'DML', 'SystemRisk'),('FUSION', 'T-SQL Future',124'None', NULL),('GENERAL', 'T-SQL Future', 'None', NULL),('GET', 'T-SQL Future', 'None', NULL),('GLOBAL',125'T-SQL Future', 'None', NULL),('GO', 'T-SQL Future', 'None', NULL),('GOTO', 'T-SQL', 'None', NULL),('GRANT',126'T-SQL', 'DML', 'SystemRisk'),('GROUP', 'T-SQL', 'None', NULL),('GROUPING', 'T-SQL Future', 'None', NULL),127('HAVING', 'T-SQL', 'None', NULL),('HOLD', 'T-SQL Future', 'None', NULL),('HOLDLOCK', 'T-SQL', 'DML',128'SystemRisk'),('HOST', 'T-SQL Future', 'None', NULL),('HOUR', 'T-SQL Future', 'None', NULL),('IDENTITY',129'T-SQL', 'None', NULL),('IDENTITY_INSERT', 'T-SQL', 'None', NULL),('IDENTITYCOL', 'T-SQL', 'None', NULL),130('IF', 'T-SQL', 'None', NULL),('IGNORE', 'T-SQL Future', 'None', NULL),('IMMEDIATE', 'T-SQL Future', 'None',131NULL),('IN', 'T-SQL', 'None', NULL),('INCLUDE', 'ODBC', 'None', NULL),('INDEX', 'T-SQL', 'None', NULL),132('INDICATOR', 'T-SQL Future', 'None', NULL),('INITIALIZE', 'T-SQL Future', 'None', NULL),('INITIALLY',133'T-SQL Future', 'None', NULL),('INNER', 'T-SQL', 'None', NULL),('INOUT', 'T-SQL Future', 'None', NULL),134('INPUT', 'T-SQL Future', 'None', NULL),('INSENSITIVE', 'ODBC', 'None', NULL),('INSERT', 'T-SQL', 'DML',135'SystemRisk'),('INT', 'T-SQL Future', 'None', NULL),('INTEGER', 'T-SQL Future', 'None', NULL),('INTERSECT',136'T-SQL', 'None', NULL),('INTERSECTION', 'T-SQL Future', 'None', NULL),('INTERVAL', 'T-SQL Future', 'None',137NULL),('INTO', 'T-SQL', 'None', NULL),('IS', 'T-SQL', 'None', NULL),('ISOLATION', 'T-SQL Future', 'None',138NULL),('ITERATE', 'T-SQL Future', 'None', NULL),('JOIN', 'T-SQL', 'DQL', NULL),('KEY', 'T-SQL', 'None',139NULL),('KILL', 'T-SQL', 'DML', 'SystemRisk'),('LANGUAGE', 'T-SQL Future', 'None', NULL),('LARGE', 'T-SQL Future',140'None', NULL),('LAST', 'T-SQL Future', 'None', NULL),('LATERAL', 'T-SQL Future', 'None', NULL),('LEADING',141'T-SQL Future', 'None', NULL),('LEFT', 'T-SQL', 'None', 'BinarySearch'),('LEFT join', 'own defined', 'None',142NULL),('LEFT outer join', 'own defined', 'None', NULL),('LESS', 'T-SQL Future', 'None', NULL),('LEVEL',143'T-SQL Future', 'None', NULL),('LIKE', 'T-SQL', 'None', 'LinearSearch'),('LIKE_REGEX', 'T-SQL Future',144'None', 'LinearSearch'),('[*] > ''*'' and [*] < ''*''', 'own defined', 'None', 'LinearSearch'),('[*] > ''*'' and [*] <= ''*''',145'own defined', 'None', 'LinearSearch'),('[*] >= ''*'' and [*] < ''*''', 'own defined', 'None', 'LinearSearch'),146('[*] >= ''*'' and [*] <= ''*''', 'own defined', 'None', 'LinearSearch'),('[*] < ''*'' and [*] > ''*''',147'own defined', 'None', 'LinearSearch'),('[*] <= ''*'' and [*] > ''*''', 'own defined', 'None', 'LinearSearch'),148('[*] < ''*'' and [*] >= ''*''', 'own defined', 'None', 'LinearSearch'),('[*] <= ''*'' and [*] >= ''*''',149'own defined', 'None', 'LinearSearch'),('[*] between ''*'' and ''*''', 'own defined', 'None', 'LinearSearch'),150('> '' ''', 'own defined', 'None', NULL),('> N'' ''', 'own defined', 'None', NULL),('>= '' ''', 'own defined',151'None', NULL),('>= N'' ''', 'own defined', 'None', NULL),('> 0', 'own defined', 'None', NULL),('>= 0',152'own defined', 'None', NULL),('< 0', 'own defined', 'None', NULL),('<= 0', 'own defined', 'None', NULL),153('<> 0', 'own defined', 'None', NULL),('> ''1899-12-30''', 'own defined', 'None', NULL),('>= ''1899-12-30''',154'own defined', 'None', NULL),('< ''1899-12-30''', 'own defined', 'None', NULL),('<= ''1899-12-30''', 'own defined',155'None', NULL),('<> ''1899-12-30''', 'own defined', 'None', NULL),('> ''1899-12-31''', 'own defined', 'None',156NULL),('>= ''1899-12-31''', 'own defined', 'None', NULL),('< ''1899-12-31''', 'own defined', 'None', NULL),157('<= ''1899-12-31''', 'own defined', 'None', NULL),('<> ''1899-12-31''', 'own defined', 'None', NULL),158('> ''1900-01-01''', 'own defined', 'None', NULL),('>= ''1900-01-01''', 'own defined', 'None', NULL),159('< ''1900-01-01''', 'own defined', 'None', NULL),('<= ''1900-01-01''', 'own defined', 'None', NULL),160('<> ''1900-01-01''', 'own defined', 'None', NULL),('> ''2200-01-01''', 'own defined', 'None', NULL),161('>= ''2200-01-01''', 'own defined', 'None', NULL),('< ''2200-01-01''', 'own defined', 'None', NULL),162('<= ''2200-01-01''', 'own defined', 'None', NULL),('<> ''2200-01-01''', 'own defined', 'None', NULL),163('AccessLevelMin >=', 'own defined', 'None', NULL),('AccessLevelMin <=', 'own defined', 'None', NULL),164('LIMIT', 'T-SQL Future', 'None', NULL),('LINENO', 'T-SQL', 'None', NULL),('LN', 'T-SQL Future', 'None',165NULL),('LOAD', 'T-SQL', 'None', NULL),('LOCAL', 'T-SQL Future', 'None', NULL),('LOCALTIME', 'T-SQL Future',166'None', NULL),('LOCALTIMESTAMP', 'T-SQL Future', 'None', NULL),('LOCATOR', 'T-SQL Future', 'None', NULL),167('LOWER', 'ODBC', 'None', NULL),('MAP', 'T-SQL Future', 'None', NULL),('MATCH', 'T-SQL Future', 'None',168NULL),('MAX', 'ODBC', 'None', NULL),('MEMBER', 'T-SQL Future', 'None', NULL),('MERGE', 'T-SQL', 'None',169NULL),('METHOD', 'T-SQL Future', 'None', NULL),('MIN', 'ODBC', 'None', NULL),('MINUTE', 'T-SQL Future',170'None', NULL),('MOD', 'T-SQL Future', 'None', NULL),('MODIFIES', 'T-SQL Future', 'None', NULL),('MODIFY',171'T-SQL Future', 'None', NULL),('MODULE', 'T-SQL Future', 'None', NULL),('MONTH', 'T-SQL Future', 'None',172NULL),('MULTISET', 'T-SQL Future', 'None', NULL),('NAMES', 'T-SQL Future', 'None', NULL),('NATIONAL',173'T-SQL', 'None', NULL),('NATURAL', 'T-SQL Future', 'None', NULL),('NCHAR', 'T-SQL Future', 'None', 'BinarySearch'),174('nchar(7)', 'own defined', 'None', NULL),('nchar(10)', 'own defined', 'None', NULL),('nchar(13)', 'own defined',175'None', NULL),('nchar(0)', 'own defined', 'None', NULL),('convert(nchar', 'own defined', 'None', NULL),176('as nchar', 'own defined', 'None', NULL),('NCLOB', 'T-SQL Future', 'None', NULL),('NEW', 'T-SQL Future',177'None', NULL),('NEXT', 'T-SQL Future', 'None', NULL),('NO', 'T-SQL Future', 'None', NULL),('NOCHECK',178'T-SQL', 'DML', 'SystemRisk'),('NONCLUSTERED', 'T-SQL', 'DML', 'SystemRisk'),('NONE', 'T-SQL Future',179'None', NULL),('NORMALIZE', 'T-SQL Future', 'None', NULL),('NOT', 'T-SQL', 'None', NULL),('NULL', 'T-SQL',180'None', NULL),('NULLIF', 'T-SQL', 'None', NULL),('NUMERIC', 'T-SQL Future', 'None', NULL),('OBJECT', 'T-SQL Future',181'None', NULL),('OCCURRENCES_REGEX', 'T-SQL Future', 'None', NULL),('OCTET_LENGTH', 'ODBC', 'None', NULL),182('OF', 'T-SQL', 'None', NULL),('OFF', 'T-SQL', 'None', NULL),('OFFSETS', 'T-SQL', 'None', NULL),('OLD',183'T-SQL Future', 'None', NULL),('ON', 'T-SQL', 'None', NULL),('ONLY', 'T-SQL Future', 'None', NULL),('OPEN',184'T-SQL', 'None', NULL),('OPENDATASOURCE', 'T-SQL', 'DML', 'SystemRisk'),('OPENQUERY', 'T-SQL', 'DML',185'SystemRisk'),('OPENROWSET', 'T-SQL', 'DML', 'SystemRisk'),('OPENXML', 'T-SQL', 'DML', 'SystemRisk'),186('OPERATION', 'T-SQL Future', 'None', NULL),('OPTION', 'T-SQL', 'None', NULL),('OR', 'T-SQL', 'None',187NULL),('ORDER', 'T-SQL', 'None', NULL),('ORDINALITY', 'T-SQL Future', 'None', NULL),('OUT', 'T-SQL Future',188'None', NULL),('OUTER', 'T-SQL', 'None', NULL),('OUTPUT', 'T-SQL', 'None', NULL),('OVER', 'T-SQL', 'None',189NULL),('OVERLAPS', 'ODBC', 'None', NULL),('OVERLAY', 'T-SQL Future', 'None', NULL),('PAD', 'T-SQL Future',190'None', NULL),('PARAMETER', 'T-SQL Future', 'None', NULL),('PARAMETERS', 'T-SQL Future', 'None', NULL),191('PARTIAL', 'T-SQL Future', 'None', NULL),('PARTITION', 'T-SQL Future', 'None', NULL),('PASCAL', 'ODBC',192'None', NULL),('PATH', 'T-SQL Future', 'None', NULL),('PERCENT', 'T-SQL', 'None', NULL),('PERCENT_RANK',193'T-SQL Future', 'None', NULL),('PERCENTILE_CONT', 'T-SQL Future', 'None', NULL),('PERCENTILE_DISC', 'T-SQL Future',194'None', NULL),('PIVOT', 'T-SQL', 'None', NULL),('PLAN', 'T-SQL', 'DML', 'SystemRisk'),('POSITION', 'ODBC',195'None', NULL),('POSITION_REGEX', 'T-SQL Future', 'None', NULL),('POSTFIX', 'T-SQL Future', 'None', NULL),196('PRECISION', 'T-SQL', 'None', NULL),('PREFIX', 'T-SQL Future', 'None', NULL),('PREORDER', 'T-SQL Future',197'None', NULL),('PREPARE', 'T-SQL Future', 'None', NULL),('PRESERVE', 'T-SQL Future', 'None', NULL),('PRIMARY',198'T-SQL', 'None', NULL),('PRINT', 'T-SQL', 'None', NULL),('PRIOR', 'T-SQL Future', 'None', NULL),('PRIVILEGES',199'T-SQL Future', 'None', NULL),('PROC', 'T-SQL', 'DML', 'SystemRisk'),('PROCEDURE', 'T-SQL', 'DML', 'SystemRisk'),200('PUBLIC', 'T-SQL', 'None', NULL),('RAISERROR', 'T-SQL', 'DML', 'SystemRisk'),('RANGE', 'T-SQL Future',201'None', NULL),('READ', 'T-SQL', 'None', NULL),('READS', 'T-SQL Future', 'None', NULL),('READTEXT', 'T-SQL',202'None', NULL),('REAL', 'T-SQL Future', 'None', NULL),('RECONFIGURE', 'T-SQL', 'DML', 'SystemRisk'),('RECURSIVE',203'T-SQL Future', 'None', NULL),('REF', 'T-SQL Future', 'None', NULL),('REFERENCES', 'T-SQL', 'DML', 'SystemRisk'),204('REFERENCING', 'T-SQL Future', 'None', NULL),('REGR_AVGX', 'T-SQL Future', 'None', NULL),('REGR_AVGY',205'T-SQL Future', 'None', NULL),('REGR_COUNT', 'T-SQL Future', 'None', NULL),('REGR_INTERCEPT', 'T-SQL Future',206'None', NULL),('REGR_R2', 'T-SQL Future', 'None', NULL),('REGR_SLOPE', 'T-SQL Future', 'None', NULL),207('REGR_SXX', 'T-SQL Future', 'None', NULL),('REGR_SXY', 'T-SQL Future', 'None', NULL),('REGR_SYY', 'T-SQL Future',208'None', NULL),('RELATIVE', 'T-SQL Future', 'None', NULL),('RELEASE', 'T-SQL Future', 'None', NULL),('REPLICATION',209'T-SQL', 'DML', 'SystemRisk'),('RESTORE', 'T-SQL', 'DML', 'SystemRisk'),('RESTRICT', 'T-SQL', 'DML', 'SystemRisk'),210('RESULT', 'T-SQL Future', 'None', NULL),('RETURN', 'T-SQL', 'None', NULL),('RETURNS', 'T-SQL Future',211'None', NULL),('REVERT', 'T-SQL', 'None', NULL),('REVOKE', 'T-SQL', 'DML', 'SystemRisk'),('RIGHT', 'T-SQL',212'None', 'BinarySearch'),('RIGHT join', 'own defined', 'None', NULL),('RIGHT outer join', 'own defined',213'None', NULL),('ROLE', 'T-SQL Future', 'None', NULL),('ROLLBACK', 'T-SQL', 'DML', 'SystemRisk'),('ROLLUP',214'T-SQL Future', 'None', NULL),('ROUTINE', 'T-SQL Future', 'None', NULL),('ROW', 'T-SQL Future', 'None',215NULL),('ROWCOUNT', 'T-SQL', 'None', NULL),('ROWGUIDCOL', 'T-SQL', 'None', NULL),('ROWS', 'T-SQL Future',216'None', NULL),('RULE', 'T-SQL', 'None', NULL),('SAVE', 'T-SQL', 'None', NULL),('SAVEPOINT', 'T-SQL Future',217'None', NULL),('SCHEMA', 'T-SQL', 'None', NULL),('SCOPE', 'T-SQL Future', 'None', NULL),('SCROLL', 'T-SQL Future',218'None', NULL),('SEARCH', 'T-SQL Future', 'None', NULL),('SECOND', 'T-SQL Future', 'None', NULL),('SECTION',219'T-SQL Future', 'None', NULL),('SECURITYAUDIT', 'T-SQL', 'None', NULL),('SELECT', 'T-SQL', 'DQL', NULL),220('SEMANTICKEYPHRASETABLE', 'T-SQL', 'None', NULL),('SEMANTICSIMILARITYDETAILSTABLE', 'T-SQL', 'None',221NULL),('SEMANTICSIMILARITYTABLE', 'T-SQL', 'None', NULL),('SENSITIVE', 'T-SQL Future', 'None', NULL),222('SEQUENCE', 'T-SQL Future', 'None', NULL),('SESSION', 'T-SQL Future', 'None', NULL),('SESSION_USER',223'T-SQL', 'None', 'SystemRisk'),('SET', 'T-SQL', 'None', NULL),('SETS', 'T-SQL Future', 'None', NULL),224('SETUSER', 'T-SQL', 'DML', 'SystemRisk'),('SHUTDOWN', 'T-SQL', 'DCL', 'SystemRisk'),('SIMILAR', 'T-SQL Future',225'None', NULL),('SIZE', 'T-SQL Future', 'None', NULL),('SMALLINT', 'T-SQL Future', 'None', NULL),('SOME',226'T-SQL', 'None', NULL),('SPACE', 'T-SQL Future', 'None', NULL),('SPECIFIC', 'T-SQL Future', 'None', NULL),227('SPECIFICTYPE', 'T-SQL Future', 'None', NULL),('SQL', 'T-SQL Future', 'None', NULL),('SQLCA', 'ODBC',228'None', NULL),('SQLCODE', 'ODBC', 'None', NULL),('SQLERROR', 'ODBC', 'None', NULL),('SQLEXCEPTION', 'T-SQL Future',229'None', NULL),('SQLSTATE', 'T-SQL Future', 'None', NULL),('SQLWARNING', 'T-SQL Future', 'None', NULL),230('START', 'T-SQL Future', 'None', NULL),('STATEMENT', 'T-SQL Future', 'None', NULL),('STATIC', 'T-SQL Future',231'None', NULL),('STATISTICS', 'T-SQL', 'None', NULL),('STDDEV_POP', 'T-SQL Future', 'None', NULL),('STDDEV_SAMP',232'T-SQL Future', 'None', NULL),('STRUCTURE', 'T-SQL Future', 'None', NULL),('SUBMULTISET', 'T-SQL Future',233'None', NULL),('SUBSTRING', 'T-SQL', 'None', 'BinarySearch'),('SUBSTRING_REGEX', 'T-SQL Future', 'None',234'BinarySearch'),('SUM', 'ODBC', 'None', NULL),('SYMMETRIC', 'T-SQL Future', 'None', NULL),('SYSTEM', 'T-SQL Future',235'None', NULL),('SYSTEM_USER', 'T-SQL', 'None', 'SystemRisk'),('TABLE', 'T-SQL', 'None', NULL),('TABLESAMPLE',236'T-SQL', 'None', NULL),('TEMPORARY', 'T-SQL Future', 'None', NULL),('TERMINATE', 'T-SQL Future', 'None',237NULL),('TEXTSIZE', 'T-SQL', 'None', NULL),('THAN', 'T-SQL Future', 'None', NULL),('THEN', 'T-SQL', 'None',238NULL),('TIME', 'T-SQL Future', 'None', NULL),('TIMESTAMP', 'T-SQL Future', 'None', NULL),('TIMEZONE_HOUR',239'T-SQL Future', 'None', NULL),('TIMEZONE_MINUTE', 'T-SQL Future', 'None', NULL),('TO', 'T-SQL', 'None',240NULL),('TOP', 'T-SQL', 'None', NULL),('TRAILING', 'T-SQL Future', 'None', NULL),('TRAN', 'T-SQL', 'None',241NULL),('TRANSACTION', 'T-SQL', 'DML', 'SystemRisk'),('TRANSLATE', 'ODBC', 'None', 'LinearSearch'),('TRANSLATE_REGEX',242'T-SQL Future', 'None', 'LinearSearch'),('TRANSLATION', 'T-SQL Future', 'None', 'LinearSearch'),('TREAT',243'T-SQL Future', 'None', NULL),('TRIGGER', 'T-SQL', 'DML', 'SystemRisk'),('TRIM', 'ODBC', 'None', NULL),244('TRUE', 'T-SQL Future', 'None', NULL),('TRUNCATE', 'T-SQL', 'DML', 'SystemRisk'),('TRY_CONVERT', 'T-SQL',245'None', NULL),('TSEQUAL', 'T-SQL', 'None', NULL),('UESCAPE', 'T-SQL Future', 'None', NULL),('UNDER', 'T-SQL Future',246'None', NULL),('UNION', 'T-SQL', 'None', NULL),('UNIQUE', 'T-SQL', 'None', NULL),('UNKNOWN', 'T-SQL Future',247'None', NULL),('UNNEST', 'T-SQL Future', 'None', NULL),('UNPIVOT', 'T-SQL', 'None', NULL),('UPDATE', 'T-SQL',248'DML', 'SystemRisk'),('UPDATETEXT', 'T-SQL', 'DML', 'SystemRisk'),('UPPER', 'ODBC', 'None', NULL),('USAGE',249'T-SQL Future', 'None', NULL),('USE', 'T-SQL', 'DCL', 'SystemRisk'),('USER', 'T-SQL', 'DCL', 'SystemRisk'),250('USING', 'T-SQL Future', 'None', NULL),('VALUE', 'T-SQL Future', 'None', NULL),('VALUES', 'T-SQL', 'None',251NULL),('VAR_POP', 'T-SQL Future', 'None', NULL),('VAR_SAMP', 'T-SQL Future', 'None', NULL),('VARCHAR',252'T-SQL Future', 'None', NULL),('VARIABLE', 'T-SQL Future', 'None', NULL),('VARYING', 'T-SQL', 'None',253NULL),('VIEW', 'T-SQL', 'None', NULL),('WAITFOR', 'T-SQL', 'None', 'SystemRisk'),('WHEN', 'T-SQL', 'None',254NULL),('WHENEVER', 'T-SQL Future', 'None', NULL),('WHERE', 'T-SQL', 'None', NULL),('WHILE', 'T-SQL', 'None',255NULL),('WIDTH_BUCKET', 'T-SQL Future', 'None', NULL),('WINDOW', 'T-SQL Future', 'None', NULL),('WITH',256'T-SQL', 'None', NULL),('WITHIN', 'T-SQL Future', 'None', NULL),('WITHIN GROUP', 'T-SQL', 'None', NULL),257('WITHOUT', 'T-SQL Future', 'None', NULL),('WORK', 'T-SQL Future', 'None', NULL),('WRITE', 'T-SQL Future',258'None', NULL),('WRITETEXT', 'T-SQL', 'DML', 'SystemRisk'),('XMLAGG', 'T-SQL Future', 'None', NULL),('XMLATTRIBUTES',259'T-SQL Future', 'None', NULL),('XMLBINARY', 'T-SQL Future', 'None', NULL),('XMLCAST', 'T-SQL Future',260'None', NULL),('XMLCOMMENT', 'T-SQL Future', 'None', NULL),('XMLCONCAT', 'T-SQL Future', 'None', NULL),261('XMLDOCUMENT', 'T-SQL Future', 'None', NULL),('XMLELEMENT', 'T-SQL Future', 'None', NULL),('XMLEXISTS',262'T-SQL Future', 'None', NULL),('XMLFOREST', 'T-SQL Future', 'None', NULL),('XMLITERATE', 'T-SQL Future',263'None', NULL),('XMLNAMESPACES', 'T-SQL Future', 'None', NULL),('XMLPARSE', 'T-SQL Future', 'None', NULL),264('XMLPI', 'T-SQL Future', 'None', NULL),('XMLQUERY', 'T-SQL Future', 'None', NULL),('XMLSERIALIZE', 'T-SQL Future',265'None', NULL),('XMLTABLE', 'T-SQL Future', 'None', NULL),('XMLTEXT', 'T-SQL Future', 'None', NULL),('XMLVALIDATE',266'T-SQL Future', 'None', NULL),('YEAR', 'T-SQL Future', 'None', NULL),('ZONE', 'T-SQL Future', 'None',267NULL),('CERTENCODED', 'T-SQL', 'None', 'SystemRisk'),('CERTPRIVATEKEY', 'T-SQL', 'None', 'SystemRisk'),268('SUSER_NAME', 'T-SQL', 'None', 'SystemRisk'),('HAS_DBACCESS', 'T-SQL', 'None', 'SystemRisk'),('HAS_PERMS_BY_NAME',269'T-SQL', 'None', 'SystemInformation'),('IS_MEMBER', 'T-SQL', 'None', 'SystemInformation'),('IS_ROLEMEMBER',270'T-SQL', 'None', 'SystemInformation'),('IS_SRVROLEMEMBER', 'T-SQL', 'None', 'SystemInformation'),('ORIGINAL_LOGIN',271'T-SQL', 'None', 'SystemRisk'),('PERMISSIONS', 'T-SQL', 'None', 'SystemInformation'),('PWDENCRYPT', 'T-SQL',272'None', 'SystemRisk'),('PWDCOMPARE', 'T-SQL', 'None', 'SystemRisk'),('SUSER_ID', 'T-SQL', 'None', 'SystemRisk'),273('SUSER_SID', 'T-SQL', 'None', 'SystemRisk'),('SUSER_SNAME', 'T-SQL', 'None', 'SystemRisk'),('USER_ID',274'T-SQL', 'None', 'SystemInformation'),('USER_NAME', 'T-SQL', 'None', 'SystemRisk'),('DATABASE_PRINCIPAL_ID',275'T-SQL', 'None', 'SystemRisk'),('DATABASEPROPERTYEX', 'T-SQL', 'None', 'SystemInformation'),('PARSENAME',276'T-SQL', 'None', 'SystemRisk'),('LOGINPROPERTY', 'T-SQL', 'None', 'SystemRisk'),('master..syslogins',277'own defined', 'None', 'SystemRisk'),('master.sys.syslogins', 'own defined', 'None', 'SystemRisk'),('master..sysdatabases',278'own defined', 'None', 'SystemRisk'),('master.sys.databases', 'own defined', 'None', 'SystemRisk'),('master.sys.sysdatabases',279'own defined', 'None', 'SystemRisk'),('@@Version', 'T-SQL', 'None', 'SystemRisk'),('TSB_PMapAccountToPerson',280'own defined', 'None', 'LinearSearch'),('<', 'own defined', 'None', 'BinarySearch'),('<=', 'own defined',281'None', 'BinarySearch'),('>', 'own defined', 'None', 'BinarySearch'),('>=', 'own defined', 'None', 'BinarySearch')) AS x(KeyWord,282KeyWordArea, KeywordFlagCS, RiskSymbol)283LEFT284OUTER285JOIN(286VALUES('SystemRisk', 1.0),('CodeToChar', 0.7),('LinearSearch', 0.04),('BinarySearch', 0.15),('SystemInformation',2870.2),('', 0.0)) AS vd(symbol, floatValue)288  ON vd.symbol = x.RiskSymbol289WHERE290  @NativeSQLOnly = 0 OR @NativeSQLOnly = 1 AND x.KeyWordArea NOT IN('23995', 'own defined'))
Open raw exported source
SQL · Raw198 lines
1create function dbo.QBM_FTSQLKeywords ( @NativeSQLOnly bit ) returns table with SCHEMABINDING as return ( select x.KeyWord , x.KeyWordArea , x.KeywordFlagCS2 , isnull(vd.floatValue, 0.0) as Risk , case when x.KeyWord like '%*' then 1 else 0 end as IsPattern from ( values ( '@@bauer@@' , 'SystemFunction', 'None'3, null )   ,('sys.', '23995', 'None', 'SystemRisk' ) ,('sp_*', '23995', 'None', 'SystemRisk' ) ,('INFORMATION_SCHEMA.', '23995', 'None', 'SystemRisk' )4 ,('msdb..', '23995', 'None', 'SystemRisk' )  ,('@@trancount', 'SystemFunction', 'None', null ) ,('@@servername', 'SystemFunction', 'None', 'SystemRisk'5 ) ,('SERVERPROPERTY', 'SystemFunction', 'None', 'SystemRisk' ) ,('@@rowcount', 'SystemFunction', 'None', null ) ,('ERROR_SEVERITY', 'SystemFunction', 6'None', null ) ,('ERROR_NUMBER', 'SystemFunction', 'None', null ) ,('ERROR_STATE', 'SystemFunction', 'None', null ) ,('ERROR_MESSAGE', 'SystemFunction'7, 'None', null ) ,('ERROR_LINE', 'SystemFunction', 'None', null ) ,('ERROR_PROCEDURE', 'SystemFunction', 'None', 'SystemRisk' ) ,('sp_executeSQL', 'SystemFunction'8, 'DML', 'SystemRisk' ) ,('sp_bindefault', 'SystemFunction', 'None', 'SystemRisk' ) ,('sp_autostats', 'SystemFunction', 'None', 'SystemRisk' ) ,('sp_settriggerorder'9, 'SystemFunction', 'DDL', 'SystemRisk' ) ,('sp_indexoption', 'SystemFunction', 'DDL', 'SystemRisk' ) ,('sp_unbindefault', 'SystemFunction', 'DDL', 'SystemRisk'10 ) ,('msdb..sp_delete_job', 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_update_job', 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_add_job'11, 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_update_schedule', 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_update_jobstep', 'SystemFunction'12, 'None', 'SystemRisk' ) ,('msdb..sp_start_job', 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_stop_job', 'SystemFunction', 'None', 'SystemRisk'13 ) ,('msdb..sp_add_jobstep', 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_add_jobschedule', 'SystemFunction', 'None', 'SystemRisk' ) ,('msdb..sp_add_jobserver'14, 'SystemFunction', 'None', 'SystemRisk' ) ,('xp_servicecontrol', 'SystemFunction', 'None', 'SystemRisk' )  ,('INFORMATION_SCHEMA.TABLES', 'SystemFunction'15, 'None', 'SystemRisk' ) ,('INFORMATION_SCHEMA.COLUMNS', 'SystemFunction', 'None', 'SystemRisk' ) ,('datediff', 'SystemFunction', 'None', null ) ,('@@procid'16, 'SystemFunction', 'None', null ) ,('rand', 'SystemFunction', 'None', null ) ,('dateadd', 'SystemFunction', 'None', null ) ,('sign', 'SystemFunction',17 'None', null ) ,('replicate', 'SystemFunction', 'None', null ) ,('rtrim', 'SystemFunction', 'None', null ) ,('ltrim', 'SystemFunction', 'None', null )18  ,('charindex', 'SystemFunction', 'None', 'LinearSearch' ) ,('IS_NULLABLE', 'SystemFunction', 'None', null )  ,('patindex', 'SystemFunction', 'None', 19'LinearSearch' ) ,('datepart', 'SystemFunction', 'None', null ) ,('abs', 'SystemFunction', 'None', null ) ,('power', 'SystemFunction', 'None', null ) ,20('hashbytes', 'SystemFunction', 'None', null ) ,('db_name', 'SystemFunction', 'None', 'SystemRisk' ) ,('unicode', 'SystemFunction', 'None', 'CodeToChar'21 ) ,('datalength', 'SystemFunction', 'None', null ) ,('XACT_STATE', 'SystemFunction', 'None', null ) ,('@@spid', 'SystemFunction', 'None', 'SystemRisk'22 ) ,('newid', 'SystemFunction', 'None', null ) ,('getutcdate', 'SystemFunction', 'None', null ) ,('GetDate', 'SystemFunction', 'None', null ) ,('ascii'23, 'SystemFunction', 'None', 'CodeToChar' ) ,('replace', 'SystemFunction', 'None', null ) ,('STR', 'SystemFunction', 'None', null ) ,('isnull', 'SystemFunction'24, 'None', null ) ,('len', 'SystemFunction', 'None', null ) ,('isnumeric', 'SystemFunction', 'None', null ) ,('ROW_NUMBER', 'SystemFunction', 'None', null25 ) ,('SQL_Latin1_General_CP1_CS_AS', 'SystemFunction', 'None', null ) ,('SQL_Latin1_General_CP1_CI_AS', 'SystemFunction', 'None', null ) ,('Latin1_General_100_CS_AS'26, 'SystemFunction', 'None', null ) ,('Latin1_General_100_CI_AS', 'SystemFunction', 'None', null )  ,('FORWARD_ONLY', 'own defined', 'None', null ) ,('FAST_FORWARD'27, 'own defined', 'None', null ) ,('READ_ONLY', 'own defined', 'None', null ) ,('@@fetch_status', 'own defined', 'None', null ) ,('database_default', 'own defined'28, 'None', null ) ,('nvarchar', 'own defined', 'None', null ) ,('round', 'own defined', 'None', null ) ,('try', 'own defined', 'None', null ) ,('catch',29 'own defined', 'None', null ) ,('tablock', 'own defined', 'None', 'SystemRisk' ) ,('delay', 'own defined', 'None', null ) ,('NOWAIT', 'own defined', 'None'30, null ) ,('nolock', 'own defined', 'None', null ) ,('fastfirstrow', 'own defined', 'None', null ) ,('fast', 'own defined', 'None', null )  ,('nocount'31, 'own defined', 'None', null ) ,('yy', 'own defined', 'None', null ) ,('qq', 'own defined', 'None', null ) ,('mm', 'own defined', 'None', null ) ,('dy'32, 'own defined', 'None', null ) ,('dd', 'own defined', 'None', null ) ,('ww', 'own defined', 'None', null ) ,('hh', 'own defined', 'None', null ) ,('mi'33, 'own defined', 'None', null ) ,('ss', 'own defined', 'None', null ) ,('ms', 'own defined', 'None', null ) ,('ACTION', 'T-SQL Future', 'None', null ) 34,('ADA', 'ODBC', 'None', null ) ,('ADD', 'T-SQL', 'None', null ) ,('ADMIN', 'T-SQL Future', 'None', null ) ,('AFTER', 'T-SQL Future', 'None', null ) ,(35'AGGREGATE', 'T-SQL Future', 'None', null ) ,('ALIAS', 'T-SQL Future', 'None', null ) ,('ALL', 'T-SQL', 'None', null ) ,('ALLOCATE', 'T-SQL Future', 'None'36, null ) ,('ALTER', 'T-SQL', 'DDL', 'SystemRisk' ) ,('AND', 'T-SQL', 'None', null ) ,('ANY', 'T-SQL', 'None', null ) ,('ARE', 'T-SQL Future', 'None', null37 ) ,('ARRAY', 'T-SQL Future', 'None', null ) ,('AS', 'T-SQL', 'None', null ) ,('ASC', 'T-SQL', 'None', null ) ,('ASENSITIVE', 'T-SQL Future', 'None', null38 ) ,('ASSERTION', 'T-SQL Future', 'None', null ) ,('ASYMMETRIC', 'T-SQL Future', 'None', null ) ,('AT', 'T-SQL Future', 'None', null ) ,('ATOMIC', 'T-SQL Future'39, 'None', null ) ,('AUTHORIZATION', 'T-SQL', 'None', null ) ,('AVG', 'ODBC', 'None', null ) ,('BACKUP', 'T-SQL', 'DML', 'SystemRisk' ) ,('BEFORE', 'T-SQL Future'40, 'None', null ) ,('BEGIN', 'T-SQL', 'None', null ) ,('BETWEEN', 'T-SQL', 'None', null ) ,('BINARY', 'T-SQL Future', 'None', null ) ,('BIT', 'T-SQL Future'41, 'None', null ) ,('BIT_LENGTH', 'ODBC', 'None', null ) ,('BLOB', 'T-SQL Future', 'None', null ) ,('BOOLEAN', 'T-SQL Future', 'None', null ) ,('BOTH', 42'T-SQL Future', 'None', null ) ,('BREADTH', 'T-SQL Future', 'None', null ) ,('BREAK', 'T-SQL', 'None', null ) ,('BROWSE', 'T-SQL', 'DML', 'SystemRisk' 43) ,('BULK', 'T-SQL', 'DML', 'SystemRisk' ) ,('BY', 'T-SQL', 'None', null ) ,('CALL', 'T-SQL Future', 'None', null ) ,('CALLED', 'T-SQL Future', 'None',44 null ) ,('CARDINALITY', 'T-SQL Future', 'None', null ) ,('CASCADE', 'T-SQL', 'DML', 'SystemRisk' ) ,('CASCADED', 'T-SQL Future', 'None', null ) ,('CASE'45, 'T-SQL', 'None', null ) ,('CAST', 'T-SQL Future', 'None', null ) ,('CATALOG', 'T-SQL Future', 'None', null )  ,('CHAR', 'T-SQL Future', 'None', 'BinarySearch'46 ) ,('char(7)', 'own defined', 'None', null ) ,('char(10)', 'own defined', 'None', null ) ,('char(13)', 'own defined', 'None', null ) ,('char(0)', 'own defined'47, 'None', null ) ,('convert(char', 'own defined', 'None', null )  , ('as char', 'own defined', 'None', null ) ,('CHAR_LENGTH', 'ODBC', 'None', null ) ,48('CHARACTER', 'T-SQL Future', 'None', null ) ,('CHARACTER_LENGTH', 'ODBC', 'None', null ) ,('CHECK', 'T-SQL', 'None', null ) ,('CHECKPOINT', 'T-SQL', 'DML'49, 'SystemRisk' ) ,('CLASS', 'T-SQL Future', 'None', null ) ,('CLOB', 'T-SQL Future', 'None', null ) ,('CLOSE', 'T-SQL', 'None', null ) ,('CLUSTERED', 'T-SQL'50, 'DML', 'SystemRisk' ) ,('COALESCE', 'T-SQL', 'None', null ) ,('COLLATE', 'T-SQL', 'None', null ) ,('COLLATION', 'T-SQL Future', 'None', null ) ,('COLLECT'51, 'T-SQL Future', 'None', null ) ,('COLUMN', 'T-SQL', 'None', null ) ,('COMMIT', 'T-SQL', 'DML', 'SystemRisk' ) ,('COMPLETION', 'T-SQL Future', 'None',52 null ) ,('COMPUTE', 'T-SQL', 'None', null ) ,('CONDITION', 'T-SQL Future', 'None', null ) ,('CONNECT', 'T-SQL Future', 'None', null ) ,('CONNECTION', 53'T-SQL Future', 'None', null ) ,('CONSTRAINT', 'T-SQL', 'DML', 'SystemRisk' ) ,('CONSTRAINTS', 'T-SQL Future', 'None', null ) ,('CONSTRUCTOR', 'T-SQL Future'54, 'None', null ) ,('CONTAINS', 'T-SQL', 'None', null ) ,('CONTAINSTABLE', 'T-SQL', 'None', null ) ,('CONTINUE', 'T-SQL', 'None', null ) ,('CONVERT', 'T-SQL'55, 'None', null ) ,('CORR', 'T-SQL Future', 'None', null ) ,('CORRESPONDING', 'T-SQL Future', 'None', null ) ,('COUNT', 'ODBC', 'None', null ) ,('COVAR_POP'56, 'T-SQL Future', 'None', null ) ,('COVAR_SAMP', 'T-SQL Future', 'None', null ) ,('CREATE', 'T-SQL', 'DML', 'SystemRisk' ) ,('CROSS', 'T-SQL', 'None', 57null ) ,('CUBE', 'T-SQL Future', 'None', null ) ,('CUME_DIST', 'T-SQL Future', 'None', null ) ,('CURRENT', 'T-SQL', 'None', null ) ,('CURRENT_CATALOG',58 'T-SQL Future', 'None', null ) ,('CURRENT_DATE', 'T-SQL', 'None', null ) ,('CURRENT_DEFAULT_TRANSFORM_GROUP', 'T-SQL Future', 'None', null ) ,('CURRENT_PATH'59, 'T-SQL Future', 'None', null ) ,('CURRENT_ROLE', 'T-SQL Future', 'None', null ) ,('CURRENT_SCHEMA', 'T-SQL Future', 'None', null ) ,('CURRENT_TIME', 60'T-SQL', 'None', null ) ,('CURRENT_TIMESTAMP', 'T-SQL', 'None', null ) ,('CURRENT_TRANSFORM_GROUP_FOR_TYPE', 'T-SQL Future', 'None', null ) ,('CURRENT_USER'61, 'T-SQL', 'None', 'SystemInformation' )  ,('CUR' + 'SOR', 'T-SQL', 'None', null ) ,('CYCLE', 'T-SQL Future', 'None', null ) ,('DATA', 'T-SQL Future', 62'None', null ) ,('DATABASE', 'T-SQL', 'DML', 'SystemRisk' ) ,('DATE', 'T-SQL Future', 'None', null ) ,('DAY', 'T-SQL Future', 'None', null ) ,('DBCC', 63'T-SQL', 'DML', 'SystemRisk' ) ,('DEALLOCATE', 'T-SQL', 'None', null ) ,('DEC', 'T-SQL Future', 'None', null ) ,('DECIMAL', 'T-SQL Future', 'None', null64 ) ,('DECLARE', 'T-SQL', 'None', null ) ,('DEFAULT', 'T-SQL', 'None', null ) ,('DEFERRABLE', 'T-SQL Future', 'None', null ) ,('DEFERRED', 'T-SQL Future'65, 'None', null ) ,('DELETE', 'T-SQL', 'DML', 'SystemRisk' ) ,('DENY', 'T-SQL', 'DML', 'SystemRisk' ) ,('DEPTH', 'T-SQL Future', 'None', null ) ,('DEREF'66, 'T-SQL Future', 'None', null ) ,('DESC', 'T-SQL', 'None', null ) ,('DESCRIBE', 'T-SQL Future', 'None', null ) ,('DESCRIPTOR', 'T-SQL Future', 'None',67 null ) ,('DESTROY', 'T-SQL Future', 'None', null ) ,('DESTRUCTOR', 'T-SQL Future', 'None', null ) ,('DETERMINISTIC', 'T-SQL Future', 'None', null ) ,(68'DIAGNOSTICS', 'T-SQL Future', 'None', null ) ,('DICTIONARY', 'T-SQL Future', 'None', null ) ,('DISCONNECT', 'T-SQL Future', 'None', null ) ,('DISK', 'T-SQL'69, 'DML', 'SystemRisk' ) ,('DISTINCT', 'T-SQL', 'None', null ) ,('DISTRIBUTED', 'T-SQL', 'DML', 'SystemRisk' ) ,('DOMAIN', 'T-SQL Future', 'None', null 70) ,('DOUBLE', 'T-SQL', 'None', null ) ,('DROP', 'T-SQL', 'DDL', 'SystemRisk' ) ,('DUMP', 'T-SQL', 'DML', 'SystemRisk' ) ,('DYNAMIC', 'T-SQL Future', 'None'71, null ) ,('EACH', 'T-SQL Future', 'None', null ) ,('ELEMENT', 'T-SQL Future', 'None', null ) ,('ELSE', 'T-SQL', 'None', null ) ,('END', 'T-SQL', 'None'72, null ) ,('END-EXEC', 'T-SQL Future', 'None', null ) ,('EQUALS', 'T-SQL Future', 'None', null ) ,('ERRLVL', 'T-SQL', 'None', null ) ,('ESCAPE', 'T-SQL'73, 'None', null ) ,('EVERY', 'T-SQL Future', 'None', null ) ,('EXCEPT', 'T-SQL', 'None', null ) ,('EXCEPTION', 'T-SQL Future', 'None', null ) ,('EXEC', 74'T-SQL', 'DML', 'SystemRisk' ) ,('EXECUTE', 'T-SQL', 'DML', 'SystemRisk' ) ,('EXISTS', 'T-SQL', 'None', null ) ,('EXIT', 'T-SQL', 'None', null ) ,('EXTERNAL'75, 'T-SQL', 'None', null ) ,('EXTRACT', 'ODBC', 'None', null ) ,('FALSE', 'T-SQL Future', 'None', null ) ,('FETCH', 'T-SQL', 'None', null ) ,('FILE', 'T-SQL'76, 'DML', 'SystemRisk' ) ,('FILLFACTOR', 'T-SQL', 'DML', 'SystemRisk' ) ,('FILTER', 'T-SQL Future', 'None', null ) ,('FIRST', 'T-SQL Future', 'None', null77 ) ,('FLOAT', 'T-SQL Future', 'None', null ) ,('FOR', 'T-SQL', 'None', null ) ,('FOREIGN', 'T-SQL', 'DML', 'SystemRisk' ) ,('FORTRAN', 'ODBC', 'None', 78null ) ,('FOUND', 'T-SQL Future', 'None', null ) ,('FREE', 'T-SQL Future', 'None', null ) ,('FREETEXT', 'T-SQL', 'None', null ) ,('FREETEXTTABLE', 'T-SQL'79, 'None', null ) ,('FROM', 'T-SQL', 'None', null ) ,('FULL', 'T-SQL', 'None', null ) ,('FUNCTION', 'T-SQL', 'DML', 'SystemRisk' ) ,('FUSION', 'T-SQL Future'80, 'None', null ) ,('GENERAL', 'T-SQL Future', 'None', null ) ,('GET', 'T-SQL Future', 'None', null ) ,('GLOBAL', 'T-SQL Future', 'None', null ) ,('GO',81 'T-SQL Future', 'None', null ) ,('GOTO', 'T-SQL', 'None', null ) ,('GRANT', 'T-SQL', 'DML', 'SystemRisk' ) ,('GROUP', 'T-SQL', 'None', null ) ,('GROUPING'82, 'T-SQL Future', 'None', null ) ,('HAVING', 'T-SQL', 'None', null ) ,('HOLD', 'T-SQL Future', 'None', null ) ,('HOLDLOCK', 'T-SQL', 'DML', 'SystemRisk'83 ) ,('HOST', 'T-SQL Future', 'None', null ) ,('HOUR', 'T-SQL Future', 'None', null ) ,('IDENTITY', 'T-SQL', 'None', null ) ,('IDENTITY_INSERT', 'T-SQL'84, 'None', null ) ,('IDENTITYCOL', 'T-SQL', 'None', null ) ,('IF', 'T-SQL', 'None', null ) ,('IGNORE', 'T-SQL Future', 'None', null ) ,('IMMEDIATE', 'T-SQL Future'85, 'None', null ) ,('IN', 'T-SQL', 'None', null ) ,('INCLUDE', 'ODBC', 'None', null ) ,('INDEX', 'T-SQL', 'None', null ) ,('INDICATOR', 'T-SQL Future', 86'None', null ) ,('INITIALIZE', 'T-SQL Future', 'None', null ) ,('INITIALLY', 'T-SQL Future', 'None', null ) ,('INNER', 'T-SQL', 'None', null ) ,('INOUT'87, 'T-SQL Future', 'None', null ) ,('INPUT', 'T-SQL Future', 'None', null ) ,('INSENSITIVE', 'ODBC', 'None', null ) ,('INSERT', 'T-SQL', 'DML', 'SystemRisk'88 ) ,('INT', 'T-SQL Future', 'None', null ) ,('INTEGER', 'T-SQL Future', 'None', null ) ,('INTERSECT', 'T-SQL', 'None', null ) ,('INTERSECTION', 'T-SQL Future'89, 'None', null ) ,('INTERVAL', 'T-SQL Future', 'None', null ) ,('INTO', 'T-SQL', 'None', null ) ,('IS', 'T-SQL', 'None', null ) ,('ISOLATION', 'T-SQL Future'90, 'None', null ) ,('ITERATE', 'T-SQL Future', 'None', null ) ,('JOIN', 'T-SQL', 'DQL', null ) ,('KEY', 'T-SQL', 'None', null ) ,('KILL', 'T-SQL', 'DML'91, 'SystemRisk' ) ,('LANGUAGE', 'T-SQL Future', 'None', null ) ,('LARGE', 'T-SQL Future', 'None', null ) ,('LAST', 'T-SQL Future', 'None', null ) ,('LATERAL'92, 'T-SQL Future', 'None', null ) ,('LEADING', 'T-SQL Future', 'None', null )   ,('LEFT', 'T-SQL', 'None', 'BinarySearch' ) ,('LEFT join', 'own defined'93, 'None', null ) ,('LEFT outer join','own defined', 'None', null ) ,('LESS', 'T-SQL Future', 'None', null ) ,('LEVEL', 'T-SQL Future', 'None', null )  94,('LIKE', 'T-SQL', 'None', 'LinearSearch' ) ,('LIKE_REGEX', 'T-SQL Future', 'None', 'LinearSearch' )  ,('[*] > ''*'' and [*] < ''*''', 'own defined', 'None'95, 'LinearSearch' ) ,('[*] > ''*'' and [*] <= ''*''', 'own defined', 'None', 'LinearSearch' ) ,('[*] >= ''*'' and [*] < ''*''', 'own defined', 'None', 'LinearSearch'96 ) ,('[*] >= ''*'' and [*] <= ''*''', 'own defined', 'None', 'LinearSearch' ) ,('[*] < ''*'' and [*] > ''*''', 'own defined', 'None', 'LinearSearch' ) 97,('[*] <= ''*'' and [*] > ''*''', 'own defined', 'None', 'LinearSearch' ) ,('[*] < ''*'' and [*] >= ''*''', 'own defined', 'None', 'LinearSearch' ) ,('[*] <= ''*'' and [*] >= ''*'''98, 'own defined', 'None', 'LinearSearch' ) ,('[*] between ''*'' and ''*''', 'own defined', 'None', 'LinearSearch' )   ,('> '' ''', 'own defined', 'None'99, null ) ,('> N'' ''', 'own defined', 'None', null )  ,('>= '' ''', 'own defined', 'None', null ) ,('>= N'' ''', 'own defined', 'None', null ) ,('> 0',100 'own defined', 'None', null ) ,('>= 0', 'own defined', 'None', null ) ,('< 0', 'own defined', 'None', null ) ,('<= 0', 'own defined', 'None', null ) ,101('<> 0', 'own defined', 'None', null ) ,('> ''1899-12-30''', 'own defined', 'None', null ) ,('>= ''1899-12-30''', 'own defined', 'None', null ) ,('< ''1899-12-30'''102, 'own defined', 'None', null ) ,('<= ''1899-12-30''', 'own defined', 'None', null ) ,('<> ''1899-12-30''', 'own defined', 'None', null ) ,('> ''1899-12-31'''103, 'own defined', 'None', null ) ,('>= ''1899-12-31''', 'own defined', 'None', null ) ,('< ''1899-12-31''', 'own defined', 'None', null ) ,('<= ''1899-12-31'''104, 'own defined', 'None', null ) ,('<> ''1899-12-31''', 'own defined', 'None', null ) ,('> ''1900-01-01''', 'own defined', 'None', null ) ,('>= ''1900-01-01'''105, 'own defined', 'None', null ) ,('< ''1900-01-01''', 'own defined', 'None', null ) ,('<= ''1900-01-01''', 'own defined', 'None', null ) ,('<> ''1900-01-01'''106, 'own defined', 'None', null ) ,('> ''2200-01-01''', 'own defined', 'None', null ) ,('>= ''2200-01-01''', 'own defined', 'None', null ) ,('< ''2200-01-01'''107, 'own defined', 'None', null ) ,('<= ''2200-01-01''', 'own defined', 'None', null ) ,('<> ''2200-01-01''', 'own defined', 'None', null )  ,('AccessLevelMin >='108, 'own defined', 'None', null ) ,('AccessLevelMin <=', 'own defined', 'None', null ) ,('LIMIT', 'T-SQL Future', 'None', null ) ,('LINENO', 'T-SQL', 'None'109, null ) ,('LN', 'T-SQL Future', 'None', null ) ,('LOAD', 'T-SQL', 'None', null ) ,('LOCAL', 'T-SQL Future', 'None', null ) ,('LOCALTIME', 'T-SQL Future'110, 'None', null ) ,('LOCALTIMESTAMP', 'T-SQL Future', 'None', null ) ,('LOCATOR', 'T-SQL Future', 'None', null ) ,('LOWER', 'ODBC', 'None', null ) ,('MAP'111, 'T-SQL Future', 'None', null ) ,('MATCH', 'T-SQL Future', 'None', null ) ,('MAX', 'ODBC', 'None', null ) ,('MEMBER', 'T-SQL Future', 'None', null ) ,112('MERGE', 'T-SQL', 'None', null ) ,('METHOD', 'T-SQL Future', 'None', null ) ,('MIN', 'ODBC', 'None', null ) ,('MINUTE', 'T-SQL Future', 'None', null )113 ,('MOD', 'T-SQL Future', 'None', null ) ,('MODIFIES', 'T-SQL Future', 'None', null ) ,('MODIFY', 'T-SQL Future', 'None', null ) ,('MODULE', 'T-SQL Future'114, 'None', null ) ,('MONTH', 'T-SQL Future', 'None', null ) ,('MULTISET', 'T-SQL Future', 'None', null ) ,('NAMES', 'T-SQL Future', 'None', null ) ,('NATIONAL'115, 'T-SQL', 'None', null ) ,('NATURAL', 'T-SQL Future', 'None', null )  ,('NCHAR', 'T-SQL Future', 'None', 'BinarySearch' ) ,('nchar(7)', 'own defined',116 'None', null ) ,('nchar(10)', 'own defined', 'None', null ) ,('nchar(13)', 'own defined', 'None', null ) ,('nchar(0)', 'own defined', 'None', null ) ,117('convert(nchar', 'own defined', 'None', null )  , ('as nchar', 'own defined', 'None', null ) ,('NCLOB', 'T-SQL Future', 'None', null ) ,('NEW', 'T-SQL Future'118, 'None', null ) ,('NEXT', 'T-SQL Future', 'None', null ) ,('NO', 'T-SQL Future', 'None', null ) ,('NOCHECK', 'T-SQL', 'DML', 'SystemRisk' ) ,('NONCLUSTERED'119, 'T-SQL', 'DML', 'SystemRisk' ) ,('NONE', 'T-SQL Future', 'None', null ) ,('NORMALIZE', 'T-SQL Future', 'None', null ) ,('NOT', 'T-SQL', 'None', null 120) ,('NULL', 'T-SQL', 'None', null ) ,('NULLIF', 'T-SQL', 'None', null ) ,('NUMERIC', 'T-SQL Future', 'None', null ) ,('OBJECT', 'T-SQL Future', 'None',121 null ) ,('OCCURRENCES_REGEX', 'T-SQL Future', 'None', null ) ,('OCTET_LENGTH', 'ODBC', 'None', null ) ,('OF', 'T-SQL', 'None', null ) ,('OFF', 'T-SQL'122, 'None', null ) ,('OFFSETS', 'T-SQL', 'None', null ) ,('OLD', 'T-SQL Future', 'None', null ) ,('ON', 'T-SQL', 'None', null ) ,('ONLY', 'T-SQL Future',123 'None', null ) ,('OPEN', 'T-SQL', 'None', null ) ,('OPENDATASOURCE', 'T-SQL', 'DML', 'SystemRisk' ) ,('OPENQUERY', 'T-SQL', 'DML', 'SystemRisk' ) ,('OPENROWSET'124, 'T-SQL', 'DML', 'SystemRisk' ) ,('OPENXML', 'T-SQL', 'DML', 'SystemRisk' ) ,('OPERATION', 'T-SQL Future', 'None', null ) ,('OPTION', 'T-SQL', 'None',125 null ) ,('OR', 'T-SQL', 'None', null ) ,('ORDER', 'T-SQL', 'None', null ) ,('ORDINALITY', 'T-SQL Future', 'None', null ) ,('OUT', 'T-SQL Future', 'None'126, null ) ,('OUTER', 'T-SQL', 'None', null ) ,('OUTPUT', 'T-SQL', 'None', null ) ,('OVER', 'T-SQL', 'None', null ) ,('OVERLAPS', 'ODBC', 'None', null ) 127,('OVERLAY', 'T-SQL Future', 'None', null ) ,('PAD', 'T-SQL Future', 'None', null ) ,('PARAMETER', 'T-SQL Future', 'None', null ) ,('PARAMETERS', 'T-SQL Future'128, 'None', null ) ,('PARTIAL', 'T-SQL Future', 'None', null ) ,('PARTITION', 'T-SQL Future', 'None', null ) ,('PASCAL', 'ODBC', 'None', null ) ,('PATH',129 'T-SQL Future', 'None', null ) ,('PERCENT', 'T-SQL', 'None', null ) ,('PERCENT_RANK', 'T-SQL Future', 'None', null ) ,('PERCENTILE_CONT', 'T-SQL Future'130, 'None', null ) ,('PERCENTILE_DISC', 'T-SQL Future', 'None', null ) ,('PIVOT', 'T-SQL', 'None', null ) ,('PLAN', 'T-SQL', 'DML', 'SystemRisk' ) ,('POSITION'131, 'ODBC', 'None', null ) ,('POSITION_REGEX', 'T-SQL Future', 'None', null ) ,('POSTFIX', 'T-SQL Future', 'None', null ) ,('PRECISION', 'T-SQL', 'None',132 null ) ,('PREFIX', 'T-SQL Future', 'None', null ) ,('PREORDER', 'T-SQL Future', 'None', null ) ,('PREPARE', 'T-SQL Future', 'None', null ) ,('PRESERVE'133, 'T-SQL Future', 'None', null ) ,('PRIMARY', 'T-SQL', 'None', null ) ,('PRINT', 'T-SQL', 'None', null ) ,('PRIOR', 'T-SQL Future', 'None', null ) ,('PRIVILEGES'134, 'T-SQL Future', 'None', null ) ,('PROC', 'T-SQL', 'DML', 'SystemRisk' ) ,('PROCEDURE', 'T-SQL', 'DML', 'SystemRisk' ) ,('PUBLIC', 'T-SQL', 'None', null135 ) ,('RAISERROR', 'T-SQL', 'DML', 'SystemRisk' ) ,('RANGE', 'T-SQL Future', 'None', null ) ,('READ', 'T-SQL', 'None', null ) ,('READS', 'T-SQL Future',136 'None', null ) ,('READTEXT', 'T-SQL', 'None', null ) ,('REAL', 'T-SQL Future', 'None', null ) ,('RECONFIGURE', 'T-SQL', 'DML', 'SystemRisk' ) ,('RECURSIVE'137, 'T-SQL Future', 'None', null ) ,('REF', 'T-SQL Future', 'None', null ) ,('REFERENCES', 'T-SQL', 'DML', 'SystemRisk' ) ,('REFERENCING', 'T-SQL Future'138, 'None', null ) ,('REGR_AVGX', 'T-SQL Future', 'None', null ) ,('REGR_AVGY', 'T-SQL Future', 'None', null ) ,('REGR_COUNT', 'T-SQL Future', 'None', null139 ) ,('REGR_INTERCEPT', 'T-SQL Future', 'None', null ) ,('REGR_R2', 'T-SQL Future', 'None', null ) ,('REGR_SLOPE', 'T-SQL Future', 'None', null ) ,('REGR_SXX'140, 'T-SQL Future', 'None', null ) ,('REGR_SXY', 'T-SQL Future', 'None', null ) ,('REGR_SYY', 'T-SQL Future', 'None', null ) ,('RELATIVE', 'T-SQL Future'141, 'None', null ) ,('RELEASE', 'T-SQL Future', 'None', null ) ,('REPLICATION', 'T-SQL', 'DML', 'SystemRisk' ) ,('RESTORE', 'T-SQL', 'DML', 'SystemRisk' 142) ,('RESTRICT', 'T-SQL', 'DML', 'SystemRisk' ) ,('RESULT', 'T-SQL Future', 'None', null ) ,('RETURN', 'T-SQL', 'None', null ) ,('RETURNS', 'T-SQL Future'143, 'None', null ) ,('REVERT', 'T-SQL', 'None', null ) ,('REVOKE', 'T-SQL', 'DML', 'SystemRisk' )   ,('RIGHT', 'T-SQL', 'None', 'BinarySearch' ) ,('RIGHT join'144, 'own defined', 'None', null ) ,('RIGHT outer join','own defined', 'None', null ) ,('ROLE', 'T-SQL Future', 'None', null ) ,('ROLLBACK', 'T-SQL', 'DML'145, 'SystemRisk' ) ,('ROLLUP', 'T-SQL Future', 'None', null ) ,('ROUTINE', 'T-SQL Future', 'None', null ) ,('ROW', 'T-SQL Future', 'None', null ) ,('ROWCOUNT'146, 'T-SQL', 'None', null ) ,('ROWGUIDCOL', 'T-SQL', 'None', null ) ,('ROWS', 'T-SQL Future', 'None', null ) ,('RULE', 'T-SQL', 'None', null ) ,('SAVE', 147'T-SQL', 'None', null ) ,('SAVEPOINT', 'T-SQL Future', 'None', null ) ,('SCHEMA', 'T-SQL', 'None', null ) ,('SCOPE', 'T-SQL Future', 'None', null ) ,('SCROLL'148, 'T-SQL Future', 'None', null ) ,('SEARCH', 'T-SQL Future', 'None', null ) ,('SECOND', 'T-SQL Future', 'None', null ) ,('SECTION', 'T-SQL Future', 'None'149, null ) ,('SECURITYAUDIT', 'T-SQL', 'None', null ) ,('SELECT', 'T-SQL', 'DQL', null ) ,('SEMANTICKEYPHRASETABLE', 'T-SQL', 'None', null ) ,('SEMANTICSIMILARITYDETAILSTABLE'150, 'T-SQL', 'None', null ) ,('SEMANTICSIMILARITYTABLE', 'T-SQL', 'None', null ) ,('SENSITIVE', 'T-SQL Future', 'None', null ) ,('SEQUENCE', 'T-SQL Future'151, 'None', null ) ,('SESSION', 'T-SQL Future', 'None', null ) ,('SESSION_USER', 'T-SQL', 'None', 'SystemRisk' )  ,('SET', 'T-SQL', 'None', null ) ,('SETS'152, 'T-SQL Future', 'None', null ) ,('SETUSER', 'T-SQL', 'DML', 'SystemRisk' ) ,('SHUTDOWN', 'T-SQL', 'DCL', 'SystemRisk' ) ,('SIMILAR', 'T-SQL Future', 153'None', null ) ,('SIZE', 'T-SQL Future', 'None', null ) ,('SMALLINT', 'T-SQL Future', 'None', null ) ,('SOME', 'T-SQL', 'None', null ) ,('SPACE', 'T-SQL Future'154, 'None', null ) ,('SPECIFIC', 'T-SQL Future', 'None', null ) ,('SPECIFICTYPE', 'T-SQL Future', 'None', null ) ,('SQL', 'T-SQL Future', 'None', null ) 155,('SQLCA', 'ODBC', 'None', null ) ,('SQLCODE', 'ODBC', 'None', null ) ,('SQLERROR', 'ODBC', 'None', null ) ,('SQLEXCEPTION', 'T-SQL Future', 'None', null156 ) ,('SQLSTATE', 'T-SQL Future', 'None', null ) ,('SQLWARNING', 'T-SQL Future', 'None', null ) ,('START', 'T-SQL Future', 'None', null ) ,('STATEMENT',157 'T-SQL Future', 'None', null ) ,('STATIC', 'T-SQL Future', 'None', null ) ,('STATISTICS', 'T-SQL', 'None', null ) ,('STDDEV_POP', 'T-SQL Future', 'None'158, null ) ,('STDDEV_SAMP', 'T-SQL Future', 'None', null ) ,('STRUCTURE', 'T-SQL Future', 'None', null ) ,('SUBMULTISET', 'T-SQL Future', 'None', null ) 159 ,('SUBSTRING', 'T-SQL', 'None', 'BinarySearch' ) ,('SUBSTRING_REGEX', 'T-SQL Future', 'None', 'BinarySearch' ) ,('SUM', 'ODBC', 'None', null ) ,('SYMMETRIC'160, 'T-SQL Future', 'None', null ) ,('SYSTEM', 'T-SQL Future', 'None', null ) ,('SYSTEM_USER', 'T-SQL', 'None', 'SystemRisk' )  ,('TABLE', 'T-SQL', 'None'161, null ) ,('TABLESAMPLE', 'T-SQL', 'None', null ) ,('TEMPORARY', 'T-SQL Future', 'None', null ) ,('TERMINATE', 'T-SQL Future', 'None', null ) ,('TEXTSIZE'162, 'T-SQL', 'None', null ) ,('THAN', 'T-SQL Future', 'None', null ) ,('THEN', 'T-SQL', 'None', null ) ,('TIME', 'T-SQL Future', 'None', null ) ,('TIMESTAMP'163, 'T-SQL Future', 'None', null ) ,('TIMEZONE_HOUR', 'T-SQL Future', 'None', null ) ,('TIMEZONE_MINUTE', 'T-SQL Future', 'None', null ) ,('TO', 'T-SQL',164 'None', null ) ,('TOP', 'T-SQL', 'None', null ) ,('TRAILING', 'T-SQL Future', 'None', null ) ,('TRAN', 'T-SQL', 'None', null ) ,('TRANSACTION', 'T-SQL'165, 'DML', 'SystemRisk' ) ,('TRANSLATE', 'ODBC', 'None', 'LinearSearch' )  ,('TRANSLATE_REGEX', 'T-SQL Future', 'None', 'LinearSearch' ) ,('TRANSLATION',166 'T-SQL Future', 'None', 'LinearSearch' )  ,('TREAT', 'T-SQL Future', 'None', null ) ,('TRIGGER', 'T-SQL', 'DML', 'SystemRisk' ) ,('TRIM', 'ODBC', 'None'167, null ) ,('TRUE', 'T-SQL Future', 'None', null ) ,('TRUNCATE', 'T-SQL', 'DML', 'SystemRisk' ) ,('TRY_CONVERT', 'T-SQL', 'None', null ) ,('TSEQUAL', 'T-SQL'168, 'None', null ) ,('UESCAPE', 'T-SQL Future', 'None', null ) ,('UNDER', 'T-SQL Future', 'None', null ) ,('UNION', 'T-SQL', 'None', null ) ,('UNIQUE', 'T-SQL'169, 'None', null ) ,('UNKNOWN', 'T-SQL Future', 'None', null ) ,('UNNEST', 'T-SQL Future', 'None', null ) ,('UNPIVOT', 'T-SQL', 'None', null ) ,('UPDATE'170, 'T-SQL', 'DML', 'SystemRisk' ) ,('UPDATETEXT', 'T-SQL', 'DML', 'SystemRisk' ) ,('UPPER', 'ODBC', 'None', null ) ,('USAGE', 'T-SQL Future', 'None', null171 ) ,('USE', 'T-SQL', 'DCL', 'SystemRisk' ) ,('USER', 'T-SQL', 'DCL', 'SystemRisk' ) ,('USING', 'T-SQL Future', 'None', null ) ,('VALUE', 'T-SQL Future'172, 'None', null ) ,('VALUES', 'T-SQL', 'None', null ) ,('VAR_POP', 'T-SQL Future', 'None', null ) ,('VAR_SAMP', 'T-SQL Future', 'None', null ) ,('VARCHAR'173, 'T-SQL Future', 'None', null ) ,('VARIABLE', 'T-SQL Future', 'None', null ) ,('VARYING', 'T-SQL', 'None', null ) ,('VIEW', 'T-SQL', 'None', null ) ,(174'WAITFOR', 'T-SQL', 'None', 'SystemRisk' ) ,('WHEN', 'T-SQL', 'None', null ) ,('WHENEVER', 'T-SQL Future', 'None', null ) ,('WHERE', 'T-SQL', 'None', null175 ) ,('WHILE', 'T-SQL', 'None', null ) ,('WIDTH_BUCKET', 'T-SQL Future', 'None', null ) ,('WINDOW', 'T-SQL Future', 'None', null ) ,('WITH', 'T-SQL', 'None'176, null ) ,('WITHIN', 'T-SQL Future', 'None', null ) ,('WITHIN GROUP', 'T-SQL', 'None', null ) ,('WITHOUT', 'T-SQL Future', 'None', null ) ,('WORK', 'T-SQL Future'177, 'None', null ) ,('WRITE', 'T-SQL Future', 'None', null ) ,('WRITETEXT', 'T-SQL', 'DML', 'SystemRisk' ) ,('XMLAGG', 'T-SQL Future', 'None', null ) ,('XMLATTRIBUTES'178, 'T-SQL Future', 'None', null ) ,('XMLBINARY', 'T-SQL Future', 'None', null ) ,('XMLCAST', 'T-SQL Future', 'None', null ) ,('XMLCOMMENT', 'T-SQL Future'179, 'None', null ) ,('XMLCONCAT', 'T-SQL Future', 'None', null ) ,('XMLDOCUMENT', 'T-SQL Future', 'None', null ) ,('XMLELEMENT', 'T-SQL Future', 'None', 180null ) ,('XMLEXISTS', 'T-SQL Future', 'None', null ) ,('XMLFOREST', 'T-SQL Future', 'None', null ) ,('XMLITERATE', 'T-SQL Future', 'None', null ) ,('XMLNAMESPACES'181, 'T-SQL Future', 'None', null ) ,('XMLPARSE', 'T-SQL Future', 'None', null ) ,('XMLPI', 'T-SQL Future', 'None', null ) ,('XMLQUERY', 'T-SQL Future', 'None'182, null ) ,('XMLSERIALIZE', 'T-SQL Future', 'None', null ) ,('XMLTABLE', 'T-SQL Future', 'None', null ) ,('XMLTEXT', 'T-SQL Future', 'None', null ) ,('XMLVALIDATE'183, 'T-SQL Future', 'None', null ) ,('YEAR', 'T-SQL Future', 'None', null ) ,('ZONE', 'T-SQL Future', 'None', null )  ,('CERTENCODED', 'T-SQL', 'None', 'SystemRisk'184 ) ,('CERTPRIVATEKEY', 'T-SQL', 'None', 'SystemRisk' ) ,('SUSER_NAME', 'T-SQL', 'None', 'SystemRisk' ) ,('HAS_DBACCESS', 'T-SQL', 'None', 'SystemRisk' 185) ,('HAS_PERMS_BY_NAME', 'T-SQL', 'None', 'SystemInformation' ) ,('IS_MEMBER', 'T-SQL', 'None', 'SystemInformation' ) ,('IS_ROLEMEMBER', 'T-SQL', 'None'186, 'SystemInformation' ) ,('IS_SRVROLEMEMBER', 'T-SQL', 'None', 'SystemInformation' ) ,('ORIGINAL_LOGIN', 'T-SQL', 'None', 'SystemRisk' ) ,('PERMISSIONS'187, 'T-SQL', 'None', 'SystemInformation' ) ,('PWDENCRYPT', 'T-SQL', 'None', 'SystemRisk' ) ,('PWDCOMPARE', 'T-SQL', 'None', 'SystemRisk' ) ,('SUSER_ID', 188'T-SQL', 'None', 'SystemRisk' ) ,('SUSER_SID', 'T-SQL', 'None', 'SystemRisk' ) ,('SUSER_SNAME', 'T-SQL', 'None', 'SystemRisk' ) ,('USER_ID', 'T-SQL', 'None'189, 'SystemInformation' ) ,('USER_NAME', 'T-SQL', 'None', 'SystemRisk' ) ,('DATABASE_PRINCIPAL_ID', 'T-SQL', 'None', 'SystemRisk' ) ,('DATABASEPROPERTYEX'190, 'T-SQL', 'None', 'SystemInformation' ) ,('PARSENAME', 'T-SQL', 'None', 'SystemRisk' ) ,('LOGINPROPERTY', 'T-SQL', 'None', 'SystemRisk' ) ,('master..syslogins'191, 'own defined', 'None', 'SystemRisk' ) ,('master.sys.syslogins', 'own defined', 'None', 'SystemRisk' ) ,('master..sysdatabases', 'own defined', 'None'192, 'SystemRisk' ) ,('master.sys.databases', 'own defined', 'None', 'SystemRisk' ) ,('master.sys.sysdatabases','own defined', 'None', 'SystemRisk' ) ,('@@Version'193, 'T-SQL', 'None', 'SystemRisk' ) , ('TSB_PMapAccountToPerson', 'own defined', 'None', 'LinearSearch')  , ('<', 'own defined', 'None', 'BinarySearch') 194, ('<=', 'own defined', 'None', 'BinarySearch') , ('>', 'own defined', 'None', 'BinarySearch') , ('>=', 'own defined', 'None', 'BinarySearch') ) as x (KeyWord195, KeyWordArea, KeywordFlagCS, RiskSymbol) left outer join ( values ('SystemRisk', 1.0)  , ('CodeToChar', 0.7)  , ('LinearSearch', 0.04)  , ('BinarySearch'196, 0.15)  , ('SystemInformation', 0.2)  , ('', 0.0)  ) as vd (symbol , floatValue) on vd.symbol = x.RiskSymbol where @NativeSQLOnly = 0 or @NativeSQLOnly197 = 1 and x.KeyWordArea not in ( '23995', 'own defined') ) 198