View Javadoc

    1   /*
    2    * TSQLTokenMarker.java - Transact-SQL token marker
    3    * Copyright (C) 1999 mike dillon
    4    *
    5    * You may use and modify this package for any purpose. Redistribution is
    6    * permitted, in both source and binary form, provided that this notice
    7    * remains intact in all source distributions of this package.
    8    */
    9
    10  package org.syntax.jedit.tokenmarker;
    11
    12  import org.syntax.jedit.KeywordMap;
    13
    14  /***
    15   * Transact-SQL token marker.
    16   *
    17   * @author mike dillon
    18   * @version $Id: TSQLTokenMarker.java,v 1.9 1999/12/13 03:40:30 sp Exp $
    19   */
    20  public class TSQLTokenMarker extends SQLTokenMarker
    21  {
    22  	// public members
    23  	public TSQLTokenMarker()
    24  	{
    25  		super(getKeywordMap(), true);
    26  	}
    27
    28  	public static KeywordMap getKeywordMap()
    29  	{
    30  		if (tsqlKeywords == null) {
    31  			tsqlKeywords = new KeywordMap(true);
    32  			addKeywords();
    33  			addDataTypes();
    34  			addSystemFunctions();
    35  			addOperators();
    36  	  		addSystemStoredProcedures();
    37  			addSystemTables();
    38  		}
    39  		return tsqlKeywords;
    40  	}
    41
    42  	private static void addKeywords()
    43  	{
    44  		tsqlKeywords.add("ADD",Token.KEYWORD1);
    45  		tsqlKeywords.add("ALTER",Token.KEYWORD1);
    46  		tsqlKeywords.add("ANSI_NULLS",Token.KEYWORD1);
    47  		tsqlKeywords.add("AS",Token.KEYWORD1);
    48  		tsqlKeywords.add("ASC",Token.KEYWORD1);
    49  		tsqlKeywords.add("AUTHORIZATION",Token.KEYWORD1);
    50  		tsqlKeywords.add("BACKUP",Token.KEYWORD1);
    51  		tsqlKeywords.add("BEGIN",Token.KEYWORD1);
    52  		tsqlKeywords.add("BREAK",Token.KEYWORD1);
    53  		tsqlKeywords.add("BROWSE",Token.KEYWORD1);
    54  		tsqlKeywords.add("BULK",Token.KEYWORD1);
    55  		tsqlKeywords.add("BY",Token.KEYWORD1);
    56  		tsqlKeywords.add("CASCADE",Token.KEYWORD1);
    57  		tsqlKeywords.add("CHECK",Token.KEYWORD1);
    58  		tsqlKeywords.add("CHECKPOINT",Token.KEYWORD1);
    59  		tsqlKeywords.add("CLOSE",Token.KEYWORD1);
    60  		tsqlKeywords.add("CLUSTERED",Token.KEYWORD1);
    61  		tsqlKeywords.add("COLUMN",Token.KEYWORD1);
    62  		tsqlKeywords.add("COMMIT",Token.KEYWORD1);
    63  		tsqlKeywords.add("COMMITTED",Token.KEYWORD1);
    64  		tsqlKeywords.add("COMPUTE",Token.KEYWORD1);
    65  		tsqlKeywords.add("CONFIRM",Token.KEYWORD1);
    66  		tsqlKeywords.add("CONSTRAINT",Token.KEYWORD1);
    67  		tsqlKeywords.add("CONTAINS",Token.KEYWORD1);
    68  		tsqlKeywords.add("CONTAINSTABLE",Token.KEYWORD1);
    69  		tsqlKeywords.add("CONTINUE",Token.KEYWORD1);
    70  		tsqlKeywords.add("CONTROLROW",Token.KEYWORD1);
    71  		tsqlKeywords.add("CREATE",Token.KEYWORD1);
    72  		tsqlKeywords.add("CURRENT",Token.KEYWORD1);
    73  		tsqlKeywords.add("CURRENT_DATE",Token.KEYWORD1);
    74  		tsqlKeywords.add("CURRENT_TIME",Token.KEYWORD1);
    75  		tsqlKeywords.add("CURSOR",Token.KEYWORD1);
    76  		tsqlKeywords.add("DATABASE",Token.KEYWORD1);
    77  		tsqlKeywords.add("DBCC",Token.KEYWORD1);
    78  		tsqlKeywords.add("DEALLOCATE",Token.KEYWORD1);
    79  		tsqlKeywords.add("DECLARE",Token.KEYWORD1);
    80  		tsqlKeywords.add("DEFAULT",Token.KEYWORD1);
    81  		tsqlKeywords.add("DELETE",Token.KEYWORD1);
    82  		tsqlKeywords.add("DENY",Token.KEYWORD1);
    83  		tsqlKeywords.add("DESC",Token.KEYWORD1);
    84  		tsqlKeywords.add("DISK",Token.KEYWORD1);
    85  		tsqlKeywords.add("DISTINCT",Token.KEYWORD1);
    86  		tsqlKeywords.add("DISTRIBUTED",Token.KEYWORD1);
    87  		tsqlKeywords.add("DOUBLE",Token.KEYWORD1);
    88  		tsqlKeywords.add("DROP",Token.KEYWORD1);
    89  		tsqlKeywords.add("DUMMY",Token.KEYWORD1);
    90  		tsqlKeywords.add("DUMP",Token.KEYWORD1);
    91  		tsqlKeywords.add("ELSE",Token.KEYWORD1);
    92  		tsqlKeywords.add("END",Token.KEYWORD1);
    93  		tsqlKeywords.add("ERRLVL",Token.KEYWORD1);
    94  		tsqlKeywords.add("ERROREXIT",Token.KEYWORD1);
    95  		tsqlKeywords.add("ESCAPE",Token.KEYWORD1);
    96  		tsqlKeywords.add("EXCEPT",Token.KEYWORD1);
    97  		tsqlKeywords.add("EXEC",Token.KEYWORD1);
    98  		tsqlKeywords.add("EXECUTE",Token.KEYWORD1);
    99  		tsqlKeywords.add("EXIT",Token.KEYWORD1);
    100 		tsqlKeywords.add("FETCH",Token.KEYWORD1);
    101 		tsqlKeywords.add("FILE",Token.KEYWORD1);
    102 		tsqlKeywords.add("FILLFACTOR",Token.KEYWORD1);
    103 		tsqlKeywords.add("FLOPPY",Token.KEYWORD1);
    104 		tsqlKeywords.add("FOR",Token.KEYWORD1);
    105 		tsqlKeywords.add("FOREIGN",Token.KEYWORD1);
    106 		tsqlKeywords.add("FREETEXT",Token.KEYWORD1);
    107 		tsqlKeywords.add("FREETEXTTABLE",Token.KEYWORD1);
    108 		tsqlKeywords.add("FROM",Token.KEYWORD1);
    109 		tsqlKeywords.add("FULL",Token.KEYWORD1);
    110 		tsqlKeywords.add("GOTO",Token.KEYWORD1);
    111 		tsqlKeywords.add("GRANT",Token.KEYWORD1);
    112 		tsqlKeywords.add("GROUP",Token.KEYWORD1);
    113 		tsqlKeywords.add("HAVING",Token.KEYWORD1);
    114 		tsqlKeywords.add("HOLDLOCK",Token.KEYWORD1);
    115 		tsqlKeywords.add("IDENTITY_INSERT",Token.KEYWORD1);
    116 		tsqlKeywords.add("IDENTITYCOL",Token.KEYWORD1);
    117 		tsqlKeywords.add("ID",Token.KEYWORD1);
    118 		tsqlKeywords.add("IF",Token.KEYWORD1);
    119 		tsqlKeywords.add("INDEX",Token.KEYWORD1);
    120 		tsqlKeywords.add("INNER",Token.KEYWORD1);
    121 		tsqlKeywords.add("INSERT",Token.KEYWORD1);
    122 		tsqlKeywords.add("INTO",Token.KEYWORD1);
    123 		tsqlKeywords.add("IS",Token.KEYWORD1);
    124 		tsqlKeywords.add("ISOLATION",Token.KEYWORD1);
    125 		tsqlKeywords.add("KEY",Token.KEYWORD1);
    126 		tsqlKeywords.add("KILL",Token.KEYWORD1);
    127 		tsqlKeywords.add("LEVEL",Token.KEYWORD1);
    128 		tsqlKeywords.add("LINENO",Token.KEYWORD1);
    129 		tsqlKeywords.add("LOAD",Token.KEYWORD1);
    130 		tsqlKeywords.add("MAX",Token.KEYWORD1);
    131 		tsqlKeywords.add("MIN",Token.KEYWORD1);
    132 		tsqlKeywords.add("MIRROREXIT",Token.KEYWORD1);
    133 		tsqlKeywords.add("NATIONAL",Token.KEYWORD1);
    134 		tsqlKeywords.add("NOCHECK",Token.KEYWORD1);
    135 		tsqlKeywords.add("NONCLUSTERED",Token.KEYWORD1);
    136 		tsqlKeywords.add("OF",Token.KEYWORD1);
    137 		tsqlKeywords.add("OFF",Token.KEYWORD1);
    138 		tsqlKeywords.add("OFFSETS",Token.KEYWORD1);
    139 		tsqlKeywords.add("ON",Token.KEYWORD1);
    140 		tsqlKeywords.add("ONCE",Token.KEYWORD1);
    141 		tsqlKeywords.add("ONLY",Token.KEYWORD1);
    142 		tsqlKeywords.add("OPEN",Token.KEYWORD1);
    143 		tsqlKeywords.add("OPENDATASOURCE",Token.KEYWORD1);
    144 		tsqlKeywords.add("OPENQUERY",Token.KEYWORD1);
    145 		tsqlKeywords.add("OPENROWSET",Token.KEYWORD1);
    146 		tsqlKeywords.add("OPTION",Token.KEYWORD1);
    147 		tsqlKeywords.add("ORDER",Token.KEYWORD1);
    148 		tsqlKeywords.add("OVER",Token.KEYWORD1);
    149 		tsqlKeywords.add("PERCENT",Token.KEYWORD1);
    150 		tsqlKeywords.add("PERM",Token.KEYWORD1);
    151 		tsqlKeywords.add("PERMANENT",Token.KEYWORD1);
    152 		tsqlKeywords.add("PIPE",Token.KEYWORD1);
    153 		tsqlKeywords.add("PLAN",Token.KEYWORD1);
    154 		tsqlKeywords.add("PRECISION",Token.KEYWORD1);
    155 		tsqlKeywords.add("PREPARE",Token.KEYWORD1);
    156 		tsqlKeywords.add("PRIMARY",Token.KEYWORD1);
    157 		tsqlKeywords.add("PRINT",Token.KEYWORD1);
    158 		tsqlKeywords.add("PRIVILEGES",Token.KEYWORD1);
    159 		tsqlKeywords.add("PROC",Token.KEYWORD1);
    160 		tsqlKeywords.add("PROCEDURE",Token.KEYWORD1);
    161 		tsqlKeywords.add("PROCESSEXIT",Token.KEYWORD1);
    162 		tsqlKeywords.add("PUBLIC",Token.KEYWORD1);
    163 		tsqlKeywords.add("QUOTED_IDENTIFIER",Token.KEYWORD1);
    164 		tsqlKeywords.add("RAISERROR",Token.KEYWORD1);
    165 		tsqlKeywords.add("READ",Token.KEYWORD1);
    166 		tsqlKeywords.add("READTEXT",Token.KEYWORD1);
    167 		tsqlKeywords.add("RECONFIGURE",Token.KEYWORD1);
    168 		tsqlKeywords.add("REFERENCES",Token.KEYWORD1);
    169 		tsqlKeywords.add("REPEATABLE",Token.KEYWORD1);
    170 		tsqlKeywords.add("REPLICATION",Token.KEYWORD1);
    171 		tsqlKeywords.add("RESTORE",Token.KEYWORD1);
    172 		tsqlKeywords.add("RESTRICT",Token.KEYWORD1);
    173 		tsqlKeywords.add("RETURN",Token.KEYWORD1);
    174 		tsqlKeywords.add("REVOKE",Token.KEYWORD1);
    175 		tsqlKeywords.add("ROLLBACK",Token.KEYWORD1);
    176 		tsqlKeywords.add("ROWGUIDCOL",Token.KEYWORD1);
    177 		tsqlKeywords.add("RULE",Token.KEYWORD1);
    178 		tsqlKeywords.add("SAVE",Token.KEYWORD1);
    179 		tsqlKeywords.add("SCHEMA",Token.KEYWORD1);
    180 		tsqlKeywords.add("SELECT",Token.KEYWORD1);
    181 		tsqlKeywords.add("SERIALIZABLE",Token.KEYWORD1);
    182 		tsqlKeywords.add("SET",Token.KEYWORD1);
    183 		tsqlKeywords.add("SETUSER",Token.KEYWORD1);
    184 		tsqlKeywords.add("SHUTDOWN",Token.KEYWORD1);
    185 		tsqlKeywords.add("STATISTICS",Token.KEYWORD1);
    186 		tsqlKeywords.add("TABLE",Token.KEYWORD1);
    187 		tsqlKeywords.add("TAPE",Token.KEYWORD1);
    188 		tsqlKeywords.add("TEMP",Token.KEYWORD1);
    189 		tsqlKeywords.add("TEMPORARY",Token.KEYWORD1);
    190 		tsqlKeywords.add("TEXTIMAGE_ON",Token.KEYWORD1);
    191 		tsqlKeywords.add("THEN",Token.KEYWORD1);
    192 		tsqlKeywords.add("TO",Token.KEYWORD1);
    193 		tsqlKeywords.add("TOP",Token.KEYWORD1);
    194 		tsqlKeywords.add("TRAN",Token.KEYWORD1);
    195 		tsqlKeywords.add("TRANSACTION",Token.KEYWORD1);
    196 		tsqlKeywords.add("TRIGGER",Token.KEYWORD1);
    197 		tsqlKeywords.add("TRUNCATE",Token.KEYWORD1);
    198 		tsqlKeywords.add("TSEQUAL",Token.KEYWORD1);
    199 		tsqlKeywords.add("UNCOMMITTED",Token.KEYWORD1);
    200 		tsqlKeywords.add("UNION",Token.KEYWORD1);
    201 		tsqlKeywords.add("UNIQUE",Token.KEYWORD1);
    202 		tsqlKeywords.add("UPDATE",Token.KEYWORD1);
    203 		tsqlKeywords.add("UPDATETEXT",Token.KEYWORD1);
    204 		tsqlKeywords.add("USE",Token.KEYWORD1);
    205 		tsqlKeywords.add("VALUES",Token.KEYWORD1);
    206 		tsqlKeywords.add("VARYING",Token.KEYWORD1);
    207 		tsqlKeywords.add("VIEW",Token.KEYWORD1);
    208 		tsqlKeywords.add("WAITFOR",Token.KEYWORD1);
    209 		tsqlKeywords.add("WHEN",Token.KEYWORD1);
    210 		tsqlKeywords.add("WHERE",Token.KEYWORD1);
    211 		tsqlKeywords.add("WHILE",Token.KEYWORD1);
    212 		tsqlKeywords.add("WITH",Token.KEYWORD1);
    213 		tsqlKeywords.add("WORK",Token.KEYWORD1);
    214 		tsqlKeywords.add("WRITETEXT",Token.KEYWORD1);
    215 	}
    216
    217 	private static void addDataTypes()
    218 	{
    219 		tsqlKeywords.add("binary",Token.KEYWORD1);
    220 		tsqlKeywords.add("bit",Token.KEYWORD1);
    221 		tsqlKeywords.add("char",Token.KEYWORD1);
    222 		tsqlKeywords.add("character",Token.KEYWORD1);
    223 		tsqlKeywords.add("datetime",Token.KEYWORD1);
    224 		tsqlKeywords.add("decimal",Token.KEYWORD1);
    225 		tsqlKeywords.add("float",Token.KEYWORD1);
    226 		tsqlKeywords.add("image",Token.KEYWORD1);
    227 		tsqlKeywords.add("int",Token.KEYWORD1);
    228 		tsqlKeywords.add("integer",Token.KEYWORD1);
    229 		tsqlKeywords.add("money",Token.KEYWORD1);
    230 		tsqlKeywords.add("name",Token.KEYWORD1);
    231 		tsqlKeywords.add("numeric",Token.KEYWORD1);
    232 		tsqlKeywords.add("nchar",Token.KEYWORD1);
    233 		tsqlKeywords.add("nvarchar",Token.KEYWORD1);
    234 		tsqlKeywords.add("ntext",Token.KEYWORD1);
    235 		tsqlKeywords.add("real",Token.KEYWORD1);
    236 		tsqlKeywords.add("smalldatetime",Token.KEYWORD1);
    237 		tsqlKeywords.add("smallint",Token.KEYWORD1);
    238 		tsqlKeywords.add("smallmoney",Token.KEYWORD1);
    239 		tsqlKeywords.add("text",Token.KEYWORD1);
    240 		tsqlKeywords.add("timestamp",Token.KEYWORD1);
    241 		tsqlKeywords.add("tinyint",Token.KEYWORD1);
    242 		tsqlKeywords.add("uniqueidentifier",Token.KEYWORD1);
    243 		tsqlKeywords.add("varbinary",Token.KEYWORD1);
    244 		tsqlKeywords.add("varchar",Token.KEYWORD1);
    245 	}
    246
    247 	private static void addSystemFunctions()
    248 	{
    249 		tsqlKeywords.add("@@CONNECTIONS",Token.KEYWORD2);
    250 		tsqlKeywords.add("@@CPU_BUSY",Token.KEYWORD2);
    251 		tsqlKeywords.add("@@CURSOR_ROWS",Token.KEYWORD2);
    252 		tsqlKeywords.add("@@DATEFIRST",Token.KEYWORD2);
    253 		tsqlKeywords.add("@@DBTS",Token.KEYWORD2);
    254 		tsqlKeywords.add("@@ERROR",Token.KEYWORD2);
    255 		tsqlKeywords.add("@@FETCH_STATUS",Token.KEYWORD2);
    256 		tsqlKeywords.add("@@IDENTITY",Token.KEYWORD2);
    257 		tsqlKeywords.add("@@IDLE",Token.KEYWORD2);
    258 		tsqlKeywords.add("@@IO_BUSY",Token.KEYWORD2);
    259 		tsqlKeywords.add("@@LANGID",Token.KEYWORD2);
    260 		tsqlKeywords.add("@@LANGUAGE",Token.KEYWORD2);
    261 		tsqlKeywords.add("@@LOCK_TIMEOUT",Token.KEYWORD2);
    262 		tsqlKeywords.add("@@MAX_CONNECTIONS",Token.KEYWORD2);
    263 		tsqlKeywords.add("@@MAX_PRECISION",Token.KEYWORD2);
    264 		tsqlKeywords.add("@@NESTLEVEL",Token.KEYWORD2);
    265 		tsqlKeywords.add("@@OPTIONS",Token.KEYWORD2);
    266 		tsqlKeywords.add("@@PACK_RECEIVED",Token.KEYWORD2);
    267 		tsqlKeywords.add("@@PACK_SENT",Token.KEYWORD2);
    268 		tsqlKeywords.add("@@PACKET_ERRORS",Token.KEYWORD2);
    269 		tsqlKeywords.add("@@PROCID",Token.KEYWORD2);
    270 		tsqlKeywords.add("@@REMSERVER",Token.KEYWORD2);
    271 		tsqlKeywords.add("@@ROWCOUNT",Token.KEYWORD2);
    272 		tsqlKeywords.add("@@SERVERNAME",Token.KEYWORD2);
    273 		tsqlKeywords.add("@@SERVICENAME",Token.KEYWORD2);
    274 		tsqlKeywords.add("@@SPID",Token.KEYWORD2);
    275 		tsqlKeywords.add("@@TEXTSIZE",Token.KEYWORD2);
    276 		tsqlKeywords.add("@@TIMETICKS",Token.KEYWORD2);
    277 		tsqlKeywords.add("@@TOTAL_ERRORS",Token.KEYWORD2);
    278 		tsqlKeywords.add("@@TOTAL_READ",Token.KEYWORD2);
    279 		tsqlKeywords.add("@@TOTAL_WRITE",Token.KEYWORD2);
    280 		tsqlKeywords.add("@@TRANCOUNT",Token.KEYWORD2);
    281 		tsqlKeywords.add("@@VERSION",Token.KEYWORD2);
    282 		tsqlKeywords.add("ABS",Token.KEYWORD2);
    283 		tsqlKeywords.add("ACOS",Token.KEYWORD2);
    284 		tsqlKeywords.add("APP_NAME",Token.KEYWORD2);
    285 		tsqlKeywords.add("ASCII",Token.KEYWORD2);
    286 		tsqlKeywords.add("ASIN",Token.KEYWORD2);
    287 		tsqlKeywords.add("ATAN",Token.KEYWORD2);
    288 		tsqlKeywords.add("ATN2",Token.KEYWORD2);
    289 		tsqlKeywords.add("CASE",Token.KEYWORD2);
    290 		tsqlKeywords.add("CAST",Token.KEYWORD2);
    291 		tsqlKeywords.add("CEILING",Token.KEYWORD2);
    292 //				tsqlKeywords.add("CHAR",Token.KEYWORD2);
    293 		tsqlKeywords.add("CHARINDEX",Token.KEYWORD2);
    294 		tsqlKeywords.add("COALESCE",Token.KEYWORD2);
    295 		tsqlKeywords.add("COL_LENGTH",Token.KEYWORD2);
    296 		tsqlKeywords.add("COL_NAME",Token.KEYWORD2);
    297 		tsqlKeywords.add("COLUMNPROPERTY",Token.KEYWORD2);
    298 		tsqlKeywords.add("CONVERT",Token.KEYWORD2);
    299 		tsqlKeywords.add("COS",Token.KEYWORD2);
    300 		tsqlKeywords.add("COT",Token.KEYWORD2);
    301 		tsqlKeywords.add("CURRENT_TIME",Token.KEYWORD2);
    302 		tsqlKeywords.add("CURRENT_DATE",Token.KEYWORD2);
    303 		tsqlKeywords.add("CURRENT_TIMESTAMP",Token.KEYWORD2);
    304 		tsqlKeywords.add("CURRENT_USER",Token.KEYWORD2);
    305 		tsqlKeywords.add("CURSOR_STATUS",Token.KEYWORD2);
    306 		tsqlKeywords.add("DATABASEPROPERTY",Token.KEYWORD2);
    307 		tsqlKeywords.add("DATALENGTH",Token.KEYWORD2);
    308 		tsqlKeywords.add("DATEADD",Token.KEYWORD2);
    309 		tsqlKeywords.add("DATEDIFF",Token.KEYWORD2);
    310 		tsqlKeywords.add("DATENAME",Token.KEYWORD2);
    311 		tsqlKeywords.add("DATEPART",Token.KEYWORD2);
    312 		tsqlKeywords.add("DAY",Token.KEYWORD2);
    313 		tsqlKeywords.add("DB_ID",Token.KEYWORD2);
    314 		tsqlKeywords.add("DB_NAME",Token.KEYWORD2);
    315 		tsqlKeywords.add("DEGREES",Token.KEYWORD2);
    316 		tsqlKeywords.add("DIFFERENCE",Token.KEYWORD2);
    317 		tsqlKeywords.add("EXP",Token.KEYWORD2);
    318 		tsqlKeywords.add("FILE_ID",Token.KEYWORD2);
    319 		tsqlKeywords.add("FILE_NAME",Token.KEYWORD2);
    320 		tsqlKeywords.add("FILEGROUP_ID",Token.KEYWORD2);
    321 		tsqlKeywords.add("FILEGROUP_NAME",Token.KEYWORD2);
    322 		tsqlKeywords.add("FILEGROUPPROPERTY",Token.KEYWORD2);
    323 		tsqlKeywords.add("FILEPROPERTY",Token.KEYWORD2);
    324 		tsqlKeywords.add("FLOOR",Token.KEYWORD2);
    325 		tsqlKeywords.add("FORMATMESSAGE",Token.KEYWORD2);
    326 		tsqlKeywords.add("FULLTEXTCATALOGPROPERTY",Token.KEYWORD2);
    327 		tsqlKeywords.add("FULLTEXTSERVICEPROPERTY",Token.KEYWORD2);
    328 		tsqlKeywords.add("GETANSINULL",Token.KEYWORD2);
    329 		tsqlKeywords.add("GETDATE",Token.KEYWORD2);
    330 		tsqlKeywords.add("HOST_ID",Token.KEYWORD2);
    331 		tsqlKeywords.add("HOST_NAME",Token.KEYWORD2);
    332 		tsqlKeywords.add("IDENT_INCR",Token.KEYWORD2);
    333 		tsqlKeywords.add("IDENT_SEED",Token.KEYWORD2);
    334 //				tsqlKeywords.add("IDENTITY",Token.KEYWORD2);
    335 		tsqlKeywords.add("IDENTITY_INSERT",Token.KEYWORD2);
    336 		tsqlKeywords.add("INDEX_COL",Token.KEYWORD2);
    337 		tsqlKeywords.add("INDEXPROPERTY",Token.KEYWORD2);
    338 		tsqlKeywords.add("IS_MEMBER",Token.KEYWORD2);
    339 		tsqlKeywords.add("IS_SRVROLEMEMBER",Token.KEYWORD2);
    340 		tsqlKeywords.add("ISDATE",Token.KEYWORD2);
    341 		tsqlKeywords.add("ISNULL",Token.KEYWORD2);
    342 		tsqlKeywords.add("ISNUMERIC",Token.KEYWORD2);
    343 		tsqlKeywords.add("LEFT",Token.KEYWORD2);
    344 		tsqlKeywords.add("LEN",Token.KEYWORD2);
    345 		tsqlKeywords.add("LOG",Token.KEYWORD2);
    346 		tsqlKeywords.add("LOG10",Token.KEYWORD2);
    347 		tsqlKeywords.add("LOWER",Token.KEYWORD2);
    348 		tsqlKeywords.add("LTRIM",Token.KEYWORD2);
    349 		tsqlKeywords.add("MONTH",Token.KEYWORD2);
    350 //				tsqlKeywords.add("NCHAR",Token.KEYWORD2);
    351 		tsqlKeywords.add("NEWID",Token.KEYWORD2);
    352 		tsqlKeywords.add("NULLIF",Token.KEYWORD2);
    353 		tsqlKeywords.add("OBJECT_ID",Token.KEYWORD2);
    354 		tsqlKeywords.add("OBJECT_NAME",Token.KEYWORD2);
    355 		tsqlKeywords.add("OBJECTPROPERTY",Token.KEYWORD2);
    356 		tsqlKeywords.add("PARSENAME",Token.KEYWORD2);
    357 		tsqlKeywords.add("PATINDEX",Token.KEYWORD2);
    358 		tsqlKeywords.add("PERMISSIONS",Token.KEYWORD2);
    359 		tsqlKeywords.add("PI",Token.KEYWORD2);
    360 		tsqlKeywords.add("POWER",Token.KEYWORD2);
    361 		tsqlKeywords.add("QUOTENAME",Token.KEYWORD2);
    362 		tsqlKeywords.add("RADIANS",Token.KEYWORD2);
    363 		tsqlKeywords.add("RAND",Token.KEYWORD2);
    364 		tsqlKeywords.add("REPLACE",Token.KEYWORD2);
    365 		tsqlKeywords.add("REPLICATE",Token.KEYWORD2);
    366 		tsqlKeywords.add("REVERSE",Token.KEYWORD2);
    367 		tsqlKeywords.add("RIGHT",Token.KEYWORD2);
    368 		tsqlKeywords.add("ROUND",Token.KEYWORD2);
    369 		tsqlKeywords.add("RTRIM",Token.KEYWORD2);
    370 		tsqlKeywords.add("SESSION_USER",Token.KEYWORD2);
    371 		tsqlKeywords.add("SIGN",Token.KEYWORD2);
    372 		tsqlKeywords.add("SIN",Token.KEYWORD2);
    373 		tsqlKeywords.add("SOUNDEX",Token.KEYWORD2);
    374 		tsqlKeywords.add("SPACE",Token.KEYWORD2);
    375 		tsqlKeywords.add("SQRT",Token.KEYWORD2);
    376 		tsqlKeywords.add("SQUARE",Token.KEYWORD2);
    377 		tsqlKeywords.add("STATS_DATE",Token.KEYWORD2);
    378 		tsqlKeywords.add("STR",Token.KEYWORD2);
    379 		tsqlKeywords.add("STUFF",Token.KEYWORD2);
    380 		tsqlKeywords.add("SUBSTRING",Token.KEYWORD2);
    381 		tsqlKeywords.add("SUSER_ID",Token.KEYWORD2);
    382 		tsqlKeywords.add("SUSER_NAME",Token.KEYWORD2);
    383 		tsqlKeywords.add("SUSER_SID",Token.KEYWORD2);
    384 		tsqlKeywords.add("SUSER_SNAME",Token.KEYWORD2);
    385 		tsqlKeywords.add("SYSTEM_USER",Token.KEYWORD2);
    386 		tsqlKeywords.add("TAN",Token.KEYWORD2);
    387 		tsqlKeywords.add("TEXTPTR",Token.KEYWORD2);
    388 		tsqlKeywords.add("TEXTVALID",Token.KEYWORD2);
    389 		tsqlKeywords.add("TYPEPROPERTY",Token.KEYWORD2);
    390 		tsqlKeywords.add("UNICODE",Token.KEYWORD2);
    391 		tsqlKeywords.add("UPPER",Token.KEYWORD2);
    392 		tsqlKeywords.add("USER_ID",Token.KEYWORD2);
    393 		tsqlKeywords.add("USER_NAME",Token.KEYWORD2);
    394 		tsqlKeywords.add("USER",Token.KEYWORD2);
    395 		tsqlKeywords.add("YEAR",Token.KEYWORD2);
    396 	}
    397
    398 	private static void addOperators()
    399 	{
    400 		tsqlKeywords.add("ALL",Token.KEYWORD1);
    401 		tsqlKeywords.add("AND",Token.KEYWORD1);
    402 		tsqlKeywords.add("ANY",Token.KEYWORD1);
    403 		tsqlKeywords.add("BETWEEN",Token.KEYWORD1);
    404 		tsqlKeywords.add("CROSS",Token.KEYWORD1);
    405 		tsqlKeywords.add("EXISTS",Token.KEYWORD1);
    406 		tsqlKeywords.add("IN",Token.KEYWORD1);
    407 		tsqlKeywords.add("INTERSECT",Token.KEYWORD1);
    408 		tsqlKeywords.add("JOIN",Token.KEYWORD1);
    409 		tsqlKeywords.add("LIKE",Token.KEYWORD1);
    410 		tsqlKeywords.add("NOT",Token.KEYWORD1);
    411 		tsqlKeywords.add("NULL",Token.KEYWORD1);
    412 		tsqlKeywords.add("OR",Token.KEYWORD1);
    413 		tsqlKeywords.add("OUTER",Token.KEYWORD1);
    414 		tsqlKeywords.add("SOME",Token.KEYWORD1);
    415 	}
    416
    417 	private static void addSystemStoredProcedures()
    418 	{
    419 		tsqlKeywords.add("sp_add_agent_parameter",Token.KEYWORD3);
    420 		tsqlKeywords.add("sp_add_agent_profile",Token.KEYWORD3);
    421 		tsqlKeywords.add("sp_add_alert",Token.KEYWORD3);
    422 		tsqlKeywords.add("sp_add_category",Token.KEYWORD3);
    423 		tsqlKeywords.add("sp_add_data_file_recover_suspect_db",Token.KEYWORD3);
    424 		tsqlKeywords.add("sp_add_job",Token.KEYWORD3);
    425 		tsqlKeywords.add("sp_add_jobschedule",Token.KEYWORD3);
    426 		tsqlKeywords.add("sp_add_jobserver",Token.KEYWORD3);
    427 		tsqlKeywords.add("sp_add_jobstep",Token.KEYWORD3);
    428 		tsqlKeywords.add("sp_add_log_file_recover_suspect_db",Token.KEYWORD3);
    429 		tsqlKeywords.add("sp_add_notification",Token.KEYWORD3);
    430 		tsqlKeywords.add("sp_add_operator",Token.KEYWORD3);
    431 		tsqlKeywords.add("sp_add_targetservergroup",Token.KEYWORD3);
    432 		tsqlKeywords.add("sp_add_targetsvrgrp_member",Token.KEYWORD3);
    433 		tsqlKeywords.add("sp_addalias",Token.KEYWORD3);
    434 		tsqlKeywords.add("sp_addapprole",Token.KEYWORD3);
    435 		tsqlKeywords.add("sp_addarticle",Token.KEYWORD3);
    436 		tsqlKeywords.add("sp_adddistpublisher",Token.KEYWORD3);
    437 		tsqlKeywords.add("sp_adddistributiondb",Token.KEYWORD3);
    438 		tsqlKeywords.add("sp_adddistributor",Token.KEYWORD3);
    439 		tsqlKeywords.add("sp_addextendedproc",Token.KEYWORD3);
    440 		tsqlKeywords.add("sp_addgroup",Token.KEYWORD3);
    441 		tsqlKeywords.add("sp_addlinkedserver",Token.KEYWORD3);
    442 		tsqlKeywords.add("sp_addlinkedsrvlogin",Token.KEYWORD3);
    443 		tsqlKeywords.add("sp_addlinkedsrvlogin",Token.KEYWORD3);
    444 		tsqlKeywords.add("sp_addlogin",Token.KEYWORD3);
    445 		tsqlKeywords.add("sp_addmergearticle",Token.KEYWORD3);
    446 		tsqlKeywords.add("sp_addmergefilter",Token.KEYWORD3);
    447 		tsqlKeywords.add("sp_addmergepublication",Token.KEYWORD3);
    448 		tsqlKeywords.add("sp_addmergepullsubscription",Token.KEYWORD3);
    449 		tsqlKeywords.add("sp_addmergepullsubscription_agent",Token.KEYWORD3);
    450 		tsqlKeywords.add("sp_addmergesubscription",Token.KEYWORD3);
    451 		tsqlKeywords.add("sp_addmessage",Token.KEYWORD3);
    452 		tsqlKeywords.add("sp_addpublication",Token.KEYWORD3);
    453 		tsqlKeywords.add("sp_addpublication_snapshot",Token.KEYWORD3);
    454 		tsqlKeywords.add("sp_addpublisher70",Token.KEYWORD3);
    455 		tsqlKeywords.add("sp_addpullsubscription",Token.KEYWORD3);
    456 		tsqlKeywords.add("sp_addpullsubscription_agent",Token.KEYWORD3);
    457 		tsqlKeywords.add("sp_addremotelogin",Token.KEYWORD3);
    458 		tsqlKeywords.add("sp_addrole",Token.KEYWORD3);
    459 		tsqlKeywords.add("sp_addrolemember",Token.KEYWORD3);
    460 		tsqlKeywords.add("sp_addserver",Token.KEYWORD3);
    461 		tsqlKeywords.add("sp_addsrvrolemember",Token.KEYWORD3);
    462 		tsqlKeywords.add("sp_addsubscriber",Token.KEYWORD3);
    463 		tsqlKeywords.add("sp_addsubscriber_schedule",Token.KEYWORD3);
    464 		tsqlKeywords.add("sp_addsubscription",Token.KEYWORD3);
    465 		tsqlKeywords.add("sp_addsynctriggers",Token.KEYWORD3);
    466 		tsqlKeywords.add("sp_addtabletocontents",Token.KEYWORD3);
    467 		tsqlKeywords.add("sp_addtask",Token.KEYWORD3);
    468 		tsqlKeywords.add("sp_addtype",Token.KEYWORD3);
    469 		tsqlKeywords.add("sp_addumpdevice",Token.KEYWORD3);
    470 		tsqlKeywords.add("sp_adduser",Token.KEYWORD3);
    471 		tsqlKeywords.add("sp_altermessage",Token.KEYWORD3);
    472 		tsqlKeywords.add("sp_apply_job_to_targets",Token.KEYWORD3);
    473 		tsqlKeywords.add("sp_approlepassword",Token.KEYWORD3);
    474 		tsqlKeywords.add("sp_article_validation",Token.KEYWORD3);
    475 		tsqlKeywords.add("sp_articlecolumn",Token.KEYWORD3);
    476 		tsqlKeywords.add("sp_articlefilter",Token.KEYWORD3);
    477 		tsqlKeywords.add("sp_articlesynctranprocs",Token.KEYWORD3);
    478 		tsqlKeywords.add("sp_articleview",Token.KEYWORD3);
    479 		tsqlKeywords.add("sp_attach_db",Token.KEYWORD3);
    480 		tsqlKeywords.add("sp_attach_single_file_db",Token.KEYWORD3);
    481 		tsqlKeywords.add("sp_autostats",Token.KEYWORD3);
    482 		tsqlKeywords.add("sp_bindefault",Token.KEYWORD3);
    483 		tsqlKeywords.add("sp_bindrule",Token.KEYWORD3);
    484 		tsqlKeywords.add("sp_bindsession",Token.KEYWORD3);
    485 		tsqlKeywords.add("sp_browsereplcmds",Token.KEYWORD3);
    486 		tsqlKeywords.add("sp_catalogs",Token.KEYWORD3);
    487 		tsqlKeywords.add("sp_certify_removable",Token.KEYWORD3);
    488 		tsqlKeywords.add("sp_change_agent_parameter",Token.KEYWORD3);
    489 		tsqlKeywords.add("sp_change_agent_profile",Token.KEYWORD3);
    490 		tsqlKeywords.add("sp_change_subscription_properties",Token.KEYWORD3);
    491 		tsqlKeywords.add("sp_change_users_login",Token.KEYWORD3);
    492 		tsqlKeywords.add("sp_changearticle",Token.KEYWORD3);
    493 		tsqlKeywords.add("sp_changedbowner",Token.KEYWORD3);
    494 		tsqlKeywords.add("sp_changedistpublisher",Token.KEYWORD3);
    495 		tsqlKeywords.add("sp_changedistributiondb",Token.KEYWORD3);
    496 		tsqlKeywords.add("sp_changedistributor_password",Token.KEYWORD3);
    497 		tsqlKeywords.add("sp_changedistributor_property",Token.KEYWORD3);
    498 		tsqlKeywords.add("sp_changegroup",Token.KEYWORD3);
    499 		tsqlKeywords.add("sp_changemergearticle",Token.KEYWORD3);
    500 		tsqlKeywords.add("sp_changemergefilter",Token.KEYWORD3);
    501 		tsqlKeywords.add("sp_changemergepublication",Token.KEYWORD3);
    502 		tsqlKeywords.add("sp_changemergepullsubscription",Token.KEYWORD3);
    503 		tsqlKeywords.add("sp_changemergesubscription",Token.KEYWORD3);
    504 		tsqlKeywords.add("sp_changeobjectowner",Token.KEYWORD3);
    505 		tsqlKeywords.add("sp_changepublication",Token.KEYWORD3);
    506 		tsqlKeywords.add("sp_changesubscriber",Token.KEYWORD3);
    507 		tsqlKeywords.add("sp_changesubscriber_schedule",Token.KEYWORD3);
    508 		tsqlKeywords.add("sp_changesubstatus",Token.KEYWORD3);
    509 		tsqlKeywords.add("sp_check_for_sync_trigger",Token.KEYWORD3);
    510 		tsqlKeywords.add("sp_column_privileges",Token.KEYWORD3);
    511 		tsqlKeywords.add("sp_column_privileges_ex",Token.KEYWORD3);
    512 		tsqlKeywords.add("sp_columns",Token.KEYWORD3);
    513 		tsqlKeywords.add("sp_columns_ex",Token.KEYWORD3);
    514 		tsqlKeywords.add("sp_configure",Token.KEYWORD3);
    515 		tsqlKeywords.add("sp_create_removable",Token.KEYWORD3);
    516 		tsqlKeywords.add("sp_createorphan",Token.KEYWORD3);
    517 		tsqlKeywords.add("sp_createstats",Token.KEYWORD3);
    518 		tsqlKeywords.add("sp_cursor",Token.KEYWORD3);
    519 		tsqlKeywords.add("sp_cursor_list",Token.KEYWORD3);
    520 		tsqlKeywords.add("sp_cursorclose",Token.KEYWORD3);
    521 		tsqlKeywords.add("sp_cursorexecute",Token.KEYWORD3);
    522 		tsqlKeywords.add("sp_cursorfetch",Token.KEYWORD3);
    523 		tsqlKeywords.add("sp_cursoropen",Token.KEYWORD3);
    524 		tsqlKeywords.add("sp_cursoroption",Token.KEYWORD3);
    525 		tsqlKeywords.add("sp_cursorprepare",Token.KEYWORD3);
    526 		tsqlKeywords.add("sp_cursorunprepare",Token.KEYWORD3);
    527 		tsqlKeywords.add("sp_cycle_errorlog",Token.KEYWORD3);
    528 		tsqlKeywords.add("sp_databases",Token.KEYWORD3);
    529 		tsqlKeywords.add("sp_datatype_info",Token.KEYWORD3);
    530 		tsqlKeywords.add("sp_dbcmptlevel",Token.KEYWORD3);
    531 		tsqlKeywords.add("sp_dbfixedrolepermission",Token.KEYWORD3);
    532 		tsqlKeywords.add("sp_dboption",Token.KEYWORD3);
    533 		tsqlKeywords.add("sp_defaultdb",Token.KEYWORD3);
    534 		tsqlKeywords.add("sp_defaultlanguage",Token.KEYWORD3);
    535 		tsqlKeywords.add("sp_delete_alert",Token.KEYWORD3);
    536 		tsqlKeywords.add("sp_delete_backuphistory",Token.KEYWORD3);
    537 		tsqlKeywords.add("sp_delete_category",Token.KEYWORD3);
    538 		tsqlKeywords.add("sp_delete_job",Token.KEYWORD3);
    539 		tsqlKeywords.add("sp_delete_jobschedule",Token.KEYWORD3);
    540 		tsqlKeywords.add("sp_delete_jobserver",Token.KEYWORD3);
    541 		tsqlKeywords.add("sp_delete_jobstep",Token.KEYWORD3);
    542 		tsqlKeywords.add("sp_delete_notification",Token.KEYWORD3);
    543 		tsqlKeywords.add("sp_delete_operator",Token.KEYWORD3);
    544 		tsqlKeywords.add("sp_delete_targetserver",Token.KEYWORD3);
    545 		tsqlKeywords.add("sp_delete_targetservergroup",Token.KEYWORD3);
    546 		tsqlKeywords.add("sp_delete_targetsvrgrp_member",Token.KEYWORD3);
    547 		tsqlKeywords.add("sp_deletemergeconflictrow",Token.KEYWORD3);
    548 		tsqlKeywords.add("sp_denylogin",Token.KEYWORD3);
    549 		tsqlKeywords.add("sp_depends",Token.KEYWORD3);
    550 		tsqlKeywords.add("sp_describe_cursor",Token.KEYWORD3);
    551 		tsqlKeywords.add("sp_describe_cursor_columns",Token.KEYWORD3);
    552 		tsqlKeywords.add("sp_describe_cursor_tables",Token.KEYWORD3);
    553 		tsqlKeywords.add("sp_detach_db",Token.KEYWORD3);
    554 		tsqlKeywords.add("sp_drop_agent_parameter",Token.KEYWORD3);
    555 		tsqlKeywords.add("sp_drop_agent_profile",Token.KEYWORD3);
    556 		tsqlKeywords.add("sp_dropalias",Token.KEYWORD3);
    557 		tsqlKeywords.add("sp_dropapprole",Token.KEYWORD3);
    558 		tsqlKeywords.add("sp_droparticle",Token.KEYWORD3);
    559 		tsqlKeywords.add("sp_dropdevice",Token.KEYWORD3);
    560 		tsqlKeywords.add("sp_dropdistpublisher",Token.KEYWORD3);
    561 		tsqlKeywords.add("sp_dropdistributiondb",Token.KEYWORD3);
    562 		tsqlKeywords.add("sp_dropdistributor",Token.KEYWORD3);
    563 		tsqlKeywords.add("sp_dropextendedproc",Token.KEYWORD3);
    564 		tsqlKeywords.add("sp_dropgroup",Token.KEYWORD3);
    565 		tsqlKeywords.add("sp_droplinkedsrvlogin",Token.KEYWORD3);
    566 		tsqlKeywords.add("sp_droplinkedsrvlogin",Token.KEYWORD3);
    567 		tsqlKeywords.add("sp_droplogin",Token.KEYWORD3);
    568 		tsqlKeywords.add("sp_dropmergearticle",Token.KEYWORD3);
    569 		tsqlKeywords.add("sp_dropmergefilter",Token.KEYWORD3);
    570 		tsqlKeywords.add("sp_dropmergepublication",Token.KEYWORD3);
    571 		tsqlKeywords.add("sp_dropmergepullsubscription",Token.KEYWORD3);
    572 		tsqlKeywords.add("sp_dropmergesubscription",Token.KEYWORD3);
    573 		tsqlKeywords.add("sp_dropmessage",Token.KEYWORD3);
    574 		tsqlKeywords.add("sp_droporphans",Token.KEYWORD3);
    575 		tsqlKeywords.add("sp_droppublication",Token.KEYWORD3);
    576 		tsqlKeywords.add("sp_droppullsubscription",Token.KEYWORD3);
    577 		tsqlKeywords.add("sp_dropremotelogin",Token.KEYWORD3);
    578 		tsqlKeywords.add("sp_droprole",Token.KEYWORD3);
    579 		tsqlKeywords.add("sp_droprolemember",Token.KEYWORD3);
    580 		tsqlKeywords.add("sp_dropserver",Token.KEYWORD3);
    581 		tsqlKeywords.add("sp_dropsrvrolemember",Token.KEYWORD3);
    582 		tsqlKeywords.add("sp_dropsubscriber",Token.KEYWORD3);
    583 		tsqlKeywords.add("sp_dropsubscription",Token.KEYWORD3);
    584 		tsqlKeywords.add("sp_droptask",Token.KEYWORD3);
    585 		tsqlKeywords.add("sp_droptype",Token.KEYWORD3);
    586 		tsqlKeywords.add("sp_dropuser",Token.KEYWORD3);
    587 		tsqlKeywords.add("sp_dropwebtask",Token.KEYWORD3);
    588 		tsqlKeywords.add("sp_dsninfo",Token.KEYWORD3);
    589 		tsqlKeywords.add("sp_dumpparamcmd",Token.KEYWORD3);
    590 		tsqlKeywords.add("sp_enumcodepages",Token.KEYWORD3);
    591 		tsqlKeywords.add("sp_enumcustomresolvers",Token.KEYWORD3);
    592 		tsqlKeywords.add("sp_enumdsn",Token.KEYWORD3);
    593 		tsqlKeywords.add("sp_enumfullsubscribers",Token.KEYWORD3);
    594 		tsqlKeywords.add("sp_execute",Token.KEYWORD3);
    595 		tsqlKeywords.add("sp_executesql",Token.KEYWORD3);
    596 		tsqlKeywords.add("sp_expired_subscription_cleanup",Token.KEYWORD3);
    597 		tsqlKeywords.add("sp_fkeys",Token.KEYWORD3);
    598 		tsqlKeywords.add("sp_foreignkeys",Token.KEYWORD3);
    599 		tsqlKeywords.add("sp_fulltext_catalog",Token.KEYWORD3);
    600 		tsqlKeywords.add("sp_fulltext_column",Token.KEYWORD3);
    601 		tsqlKeywords.add("sp_fulltext_database",Token.KEYWORD3);
    602 		tsqlKeywords.add("sp_fulltext_service",Token.KEYWORD3);
    603 		tsqlKeywords.add("sp_fulltext_table",Token.KEYWORD3);
    604 		tsqlKeywords.add("sp_generatefilters",Token.KEYWORD3);
    605 		tsqlKeywords.add("sp_get_distributor",Token.KEYWORD3);
    606 		tsqlKeywords.add("sp_getbindtoken",Token.KEYWORD3);
    607 		tsqlKeywords.add("sp_getmergedeletetype",Token.KEYWORD3);
    608 		tsqlKeywords.add("sp_grant_publication_access",Token.KEYWORD3);
    609 		tsqlKeywords.add("sp_grantdbaccess",Token.KEYWORD3);
    610 		tsqlKeywords.add("sp_grantlogin",Token.KEYWORD3);
    611 		tsqlKeywords.add("sp_help",Token.KEYWORD3);
    612 		tsqlKeywords.add("sp_help_agent_default",Token.KEYWORD3);
    613 		tsqlKeywords.add("sp_help_agent_parameter",Token.KEYWORD3);
    614 		tsqlKeywords.add("sp_help_agent_profile",Token.KEYWORD3);
    615 		tsqlKeywords.add("sp_help_alert",Token.KEYWORD3);
    616 		tsqlKeywords.add("sp_help_category",Token.KEYWORD3);
    617 		tsqlKeywords.add("sp_help_downloadlist",Token.KEYWORD3);
    618 		tsqlKeywords.add("sp_help_fulltext_catalogs",Token.KEYWORD3);
    619 		tsqlKeywords.add("sp_help_fulltext_catalogs_cursor",Token.KEYWORD3);
    620 		tsqlKeywords.add("sp_help_fulltext_columns",Token.KEYWORD3);
    621 		tsqlKeywords.add("sp_help_fulltext_columns_cursor",Token.KEYWORD3);
    622 		tsqlKeywords.add("sp_help_fulltext_tables",Token.KEYWORD3);
    623 		tsqlKeywords.add("sp_help_fulltext_tables_cursor",Token.KEYWORD3);
    624 		tsqlKeywords.add("sp_help_job",Token.KEYWORD3);
    625 		tsqlKeywords.add("sp_help_jobhistory",Token.KEYWORD3);
    626 		tsqlKeywords.add("sp_help_jobschedule",Token.KEYWORD3);
    627 		tsqlKeywords.add("sp_help_jobserver",Token.KEYWORD3);
    628 		tsqlKeywords.add("sp_help_jobstep",Token.KEYWORD3);
    629 		tsqlKeywords.add("sp_help_notification",Token.KEYWORD3);
    630 		tsqlKeywords.add("sp_help_operator",Token.KEYWORD3);
    631 		tsqlKeywords.add("sp_help_publication_access",Token.KEYWORD3);
    632 		tsqlKeywords.add("sp_help_targetserver",Token.KEYWORD3);
    633 		tsqlKeywords.add("sp_help_targetservergroup",Token.KEYWORD3);
    634 		tsqlKeywords.add("sp_helparticle",Token.KEYWORD3);
    635 		tsqlKeywords.add("sp_helparticlecolumns",Token.KEYWORD3);
    636 		tsqlKeywords.add("sp_helpconstraint",Token.KEYWORD3);
    637 		tsqlKeywords.add("sp_helpdb",Token.KEYWORD3);
    638 		tsqlKeywords.add("sp_helpdbfixedrole",Token.KEYWORD3);
    639 		tsqlKeywords.add("sp_helpdevice",Token.KEYWORD3);
    640 		tsqlKeywords.add("sp_helpdistpublisher",Token.KEYWORD3);
    641 		tsqlKeywords.add("sp_helpdistributiondb",Token.KEYWORD3);
    642 		tsqlKeywords.add("sp_helpdistributor",Token.KEYWORD3);
    643 		tsqlKeywords.add("sp_helpextendedproc",Token.KEYWORD3);
    644 		tsqlKeywords.add("sp_helpfile",Token.KEYWORD3);
    645 		tsqlKeywords.add("sp_helpfilegroup",Token.KEYWORD3);
    646 		tsqlKeywords.add("sp_helpgroup",Token.KEYWORD3);
    647 		tsqlKeywords.add("sp_helphistory",Token.KEYWORD3);
    648 		tsqlKeywords.add("sp_helpindex",Token.KEYWORD3);
    649 		tsqlKeywords.add("sp_helplanguage",Token.KEYWORD3);
    650 		tsqlKeywords.add("sp_helplinkedsrvlogin",Token.KEYWORD3);
    651 		tsqlKeywords.add("sp_helplogins",Token.KEYWORD3);
    652 		tsqlKeywords.add("sp_helpmergearticle",Token.KEYWORD3);
    653 		tsqlKeywords.add("sp_helpmergearticleconflicts",Token.KEYWORD3);
    654 		tsqlKeywords.add("sp_helpmergeconflictrows",Token.KEYWORD3);
    655 		tsqlKeywords.add("sp_helpmergedeleteconflictrows",Token.KEYWORD3);
    656 		tsqlKeywords.add("sp_helpmergefilter",Token.KEYWORD3);
    657 		tsqlKeywords.add("sp_helpmergepublication",Token.KEYWORD3);
    658 		tsqlKeywords.add("sp_helpmergepullsubscription",Token.KEYWORD3);
    659 		tsqlKeywords.add("sp_helpmergesubscription",Token.KEYWORD3);
    660 		tsqlKeywords.add("sp_helpntgroup",Token.KEYWORD3);
    661 		tsqlKeywords.add("sp_helppublication",Token.KEYWORD3);
    662 		tsqlKeywords.add("sp_helppullsubscription",Token.KEYWORD3);
    663 		tsqlKeywords.add("sp_helpremotelogin",Token.KEYWORD3);
    664 		tsqlKeywords.add("sp_helpreplicationdboption",Token.KEYWORD3);
    665 		tsqlKeywords.add("sp_helprole",Token.KEYWORD3);
    666 		tsqlKeywords.add("sp_helprolemember",Token.KEYWORD3);
    667 		tsqlKeywords.add("sp_helprotect",Token.KEYWORD3);
    668 		tsqlKeywords.add("sp_helpserver",Token.KEYWORD3);
    669 		tsqlKeywords.add("sp_helpsort",Token.KEYWORD3);
    670 		tsqlKeywords.add("sp_helpsrvrole",Token.KEYWORD3);
    671 		tsqlKeywords.add("sp_helpsrvrolemember",Token.KEYWORD3);
    672 		tsqlKeywords.add("sp_helpsubscriberinfo",Token.KEYWORD3);
    673 		tsqlKeywords.add("sp_helpsubscription",Token.KEYWORD3);
    674 		tsqlKeywords.add("sp_helpsubscription_properties",Token.KEYWORD3);
    675 		tsqlKeywords.add("sp_helptask",Token.KEYWORD3);
    676 		tsqlKeywords.add("sp_helptext",Token.KEYWORD3);
    677 		tsqlKeywords.add("sp_helptrigger",Token.KEYWORD3);
    678 		tsqlKeywords.add("sp_helpuser",Token.KEYWORD3);
    679 		tsqlKeywords.add("sp_indexes",Token.KEYWORD3);
    680 		tsqlKeywords.add("sp_indexoption",Token.KEYWORD3);
    681 		tsqlKeywords.add("sp_link_publication",Token.KEYWORD3);
    682 		tsqlKeywords.add("sp_linkedservers",Token.KEYWORD3);
    683 		tsqlKeywords.add("sp_lock",Token.KEYWORD3);
    684 		tsqlKeywords.add("sp_makewebtask",Token.KEYWORD3);
    685 		tsqlKeywords.add("sp_manage_jobs_by_login",Token.KEYWORD3);
    686 		tsqlKeywords.add("sp_mergedummyupdate",Token.KEYWORD3);
    687 		tsqlKeywords.add("sp_mergesubscription_cleanup",Token.KEYWORD3);
    688 		tsqlKeywords.add("sp_monitor",Token.KEYWORD3);
    689 		tsqlKeywords.add("sp_msx_defect",Token.KEYWORD3);
    690 		tsqlKeywords.add("sp_msx_enlist",Token.KEYWORD3);
    691 		tsqlKeywords.add("sp_OACreate",Token.KEYWORD3);
    692 		tsqlKeywords.add("sp_OADestroy",Token.KEYWORD3);
    693 		tsqlKeywords.add("sp_OAGetErrorInfo",Token.KEYWORD3);
    694 		tsqlKeywords.add("sp_OAGetProperty",Token.KEYWORD3);
    695 		tsqlKeywords.add("sp_OAMethod",Token.KEYWORD3);
    696 		tsqlKeywords.add("sp_OASetProperty",Token.KEYWORD3);
    697 		tsqlKeywords.add("sp_OAStop",Token.KEYWORD3);
    698 		tsqlKeywords.add("sp_password",Token.KEYWORD3);
    699 		tsqlKeywords.add("sp_pkeys",Token.KEYWORD3);
    700 		tsqlKeywords.add("sp_post_msx_operation",Token.KEYWORD3);
    701 		tsqlKeywords.add("sp_prepare",Token.KEYWORD3);
    702 		tsqlKeywords.add("sp_primarykeys",Token.KEYWORD3);
    703 		tsqlKeywords.add("sp_processmail",Token.KEYWORD3);
    704 		tsqlKeywords.add("sp_procoption",Token.KEYWORD3);
    705 		tsqlKeywords.add("sp_publication_validation",Token.KEYWORD3);
    706 		tsqlKeywords.add("sp_purge_jobhistory",Token.KEYWORD3);
    707 		tsqlKeywords.add("sp_purgehistory",Token.KEYWORD3);
    708 		tsqlKeywords.add("sp_reassigntask",Token.KEYWORD3);
    709 		tsqlKeywords.add("sp_recompile",Token.KEYWORD3);
    710 		tsqlKeywords.add("sp_refreshsubscriptions",Token.KEYWORD3);
    711 		tsqlKeywords.add("sp_refreshview",Token.KEYWORD3);
    712 		tsqlKeywords.add("sp_reinitmergepullsubscription",Token.KEYWORD3);
    713 		tsqlKeywords.add("sp_reinitmergesubscription",Token.KEYWORD3);
    714 		tsqlKeywords.add("sp_reinitpullsubscription",Token.KEYWORD3);
    715 		tsqlKeywords.add("sp_reinitsubscription",Token.KEYWORD3);
    716 		tsqlKeywords.add("sp_remoteoption",Token.KEYWORD3);
    717 		tsqlKeywords.add("sp_remove_job_from_targets",Token.KEYWORD3);
    718 		tsqlKeywords.add("sp_removedbreplication",Token.KEYWORD3);
    719 		tsqlKeywords.add("sp_rename",Token.KEYWORD3);
    720 		tsqlKeywords.add("sp_renamedb",Token.KEYWORD3);
    721 		tsqlKeywords.add("sp_replcmds",Token.KEYWORD3);
    722 		tsqlKeywords.add("sp_replcounters",Token.KEYWORD3);
    723 		tsqlKeywords.add("sp_repldone",Token.KEYWORD3);
    724 		tsqlKeywords.add("sp_replflush",Token.KEYWORD3);
    725 		tsqlKeywords.add("sp_replication_agent_checkup",Token.KEYWORD3);
    726 		tsqlKeywords.add("sp_replicationdboption",Token.KEYWORD3);
    727 		tsqlKeywords.add("sp_replsetoriginator",Token.KEYWORD3);
    728 		tsqlKeywords.add("sp_replshowcmds",Token.KEYWORD3);
    729 		tsqlKeywords.add("sp_repltrans",Token.KEYWORD3);
    730 		tsqlKeywords.add("sp_reset_connection",Token.KEYWORD3);
    731 		tsqlKeywords.add("sp_resync_targetserver",Token.KEYWORD3);
    732 		tsqlKeywords.add("sp_revoke_publication_access",Token.KEYWORD3);
    733 		tsqlKeywords.add("sp_revokedbaccess",Token.KEYWORD3);
    734 		tsqlKeywords.add("sp_revokelogin",Token.KEYWORD3);
    735 		tsqlKeywords.add("sp_runwebtask",Token.KEYWORD3);
    736 		tsqlKeywords.add("sp_script_synctran_commands",Token.KEYWORD3);
    737 		tsqlKeywords.add("sp_scriptdelproc",Token.KEYWORD3);
    738 		tsqlKeywords.add("sp_scriptinsproc",Token.KEYWORD3);
    739 		tsqlKeywords.add("sp_scriptmappedupdproc",Token.KEYWORD3);
    740 		tsqlKeywords.add("sp_scriptupdproc",Token.KEYWORD3);
    741 		tsqlKeywords.add("sp_sdidebug",Token.KEYWORD3);
    742 		tsqlKeywords.add("sp_server_info",Token.KEYWORD3);
    743 		tsqlKeywords.add("sp_serveroption",Token.KEYWORD3);
    744 		tsqlKeywords.add("sp_serveroption",Token.KEYWORD3);
    745 		tsqlKeywords.add("sp_setapprole",Token.KEYWORD3);
    746 		tsqlKeywords.add("sp_setnetname",Token.KEYWORD3);
    747 		tsqlKeywords.add("sp_spaceused",Token.KEYWORD3);
    748 		tsqlKeywords.add("sp_special_columns",Token.KEYWORD3);
    749 		tsqlKeywords.add("sp_sproc_columns",Token.KEYWORD3);
    750 		tsqlKeywords.add("sp_srvrolepermission",Token.KEYWORD3);
    751 		tsqlKeywords.add("sp_start_job",Token.KEYWORD3);
    752 		tsqlKeywords.add("sp_statistics",Token.KEYWORD3);
    753 		tsqlKeywords.add("sp_stop_job",Token.KEYWORD3);
    754 		tsqlKeywords.add("sp_stored_procedures",Token.KEYWORD3);
    755 		tsqlKeywords.add("sp_subscription_cleanup",Token.KEYWORD3);
    756 		tsqlKeywords.add("sp_table_privileges",Token.KEYWORD3);
    757 		tsqlKeywords.add("sp_table_privileges_ex",Token.KEYWORD3);
    758 		tsqlKeywords.add("sp_table_validation",Token.KEYWORD3);
    759 		tsqlKeywords.add("sp_tableoption",Token.KEYWORD3);
    760 		tsqlKeywords.add("sp_tables",Token.KEYWORD3);
    761 		tsqlKeywords.add("sp_tables_ex",Token.KEYWORD3);
    762 		tsqlKeywords.add("sp_unbindefault",Token.KEYWORD3);
    763 		tsqlKeywords.add("sp_unbindrule",Token.KEYWORD3);
    764 		tsqlKeywords.add("sp_unprepare",Token.KEYWORD3);
    765 		tsqlKeywords.add("sp_update_agent_profile",Token.KEYWORD3);
    766 		tsqlKeywords.add("sp_update_alert",Token.KEYWORD3);
    767 		tsqlKeywords.add("sp_update_category",Token.KEYWORD3);
    768 		tsqlKeywords.add("sp_update_job",Token.KEYWORD3);
    769 		tsqlKeywords.add("sp_update_jobschedule",Token.KEYWORD3);
    770 		tsqlKeywords.add("sp_update_jobstep",Token.KEYWORD3);
    771 		tsqlKeywords.add("sp_update_notification",Token.KEYWORD3);
    772 		tsqlKeywords.add("sp_update_operator",Token.KEYWORD3);
    773 		tsqlKeywords.add("sp_update_targetservergroup",Token.KEYWORD3);
    774 		tsqlKeywords.add("sp_updatestats",Token.KEYWORD3);
    775 		tsqlKeywords.add("sp_updatetask",Token.KEYWORD3);
    776 		tsqlKeywords.add("sp_validatelogins",Token.KEYWORD3);
    777 		tsqlKeywords.add("sp_validname",Token.KEYWORD3);
    778 		tsqlKeywords.add("sp_who",Token.KEYWORD3);
    779 		tsqlKeywords.add("xp_cmdshell",Token.KEYWORD3);
    780 		tsqlKeywords.add("xp_deletemail",Token.KEYWORD3);
    781 		tsqlKeywords.add("xp_enumgroups",Token.KEYWORD3);
    782 		tsqlKeywords.add("xp_findnextmsg",Token.KEYWORD3);
    783 		tsqlKeywords.add("xp_findnextmsg",Token.KEYWORD3);
    784 		tsqlKeywords.add("xp_grantlogin",Token.KEYWORD3);
    785 		tsqlKeywords.add("xp_logevent",Token.KEYWORD3);
    786 		tsqlKeywords.add("xp_loginconfig",Token.KEYWORD3);
    787 		tsqlKeywords.add("xp_logininfo",Token.KEYWORD3);
    788 		tsqlKeywords.add("xp_msver",Token.KEYWORD3);
    789 		tsqlKeywords.add("xp_readmail",Token.KEYWORD3);
    790 		tsqlKeywords.add("xp_revokelogin",Token.KEYWORD3);
    791 		tsqlKeywords.add("xp_sendmail",Token.KEYWORD3);
    792 		tsqlKeywords.add("xp_sprintf",Token.KEYWORD3);
    793 		tsqlKeywords.add("xp_sqlinventory",Token.KEYWORD3);
    794 		tsqlKeywords.add("xp_sqlmaint",Token.KEYWORD3);
    795 		tsqlKeywords.add("xp_sqltrace",Token.KEYWORD3);
    796 		tsqlKeywords.add("xp_sscanf",Token.KEYWORD3);
    797 		tsqlKeywords.add("xp_startmail",Token.KEYWORD3);
    798 		tsqlKeywords.add("xp_stopmail",Token.KEYWORD3);
    799 		tsqlKeywords.add("xp_trace_addnewqueue",Token.KEYWORD3);
    800 		tsqlKeywords.add("xp_trace_deletequeuedefinition",Token.KEYWORD3);
    801 		tsqlKeywords.add("xp_trace_destroyqueue",Token.KEYWORD3);
    802 		tsqlKeywords.add("xp_trace_enumqueuedefname",Token.KEYWORD3);
    803 		tsqlKeywords.add("xp_trace_enumqueuehandles",Token.KEYWORD3);
    804 		tsqlKeywords.add("xp_trace_eventclassrequired",Token.KEYWORD3);
    805 		tsqlKeywords.add("xp_trace_flushqueryhistory",Token.KEYWORD3);
    806 		tsqlKeywords.add("xp_trace_generate_event",Token.KEYWORD3);
    807 		tsqlKeywords.add("xp_trace_getappfilter",Token.KEYWORD3);
    808 		tsqlKeywords.add("xp_trace_getconnectionidfilter",Token.KEYWORD3);
    809 		tsqlKeywords.add("xp_trace_getcpufilter",Token.KEYWORD3);
    810 		tsqlKeywords.add("xp_trace_getdbidfilter",Token.KEYWORD3);
    811 		tsqlKeywords.add("xp_trace_getdurationfilter",Token.KEYWORD3);
    812 		tsqlKeywords.add("xp_trace_geteventfilter",Token.KEYWORD3);
    813 		tsqlKeywords.add("xp_trace_geteventnames",Token.KEYWORD3);
    814 		tsqlKeywords.add("xp_trace_getevents",Token.KEYWORD3);
    815 		tsqlKeywords.add("xp_trace_gethostfilter",Token.KEYWORD3);
    816 		tsqlKeywords.add("xp_trace_gethpidfilter",Token.KEYWORD3);
    817 		tsqlKeywords.add("xp_trace_getindidfilter",Token.KEYWORD3);
    818 		tsqlKeywords.add("xp_trace_getntdmfilter",Token.KEYWORD3);
    819 		tsqlKeywords.add("xp_trace_getntnmfilter",Token.KEYWORD3);
    820 		tsqlKeywords.add("xp_trace_getobjidfilter",Token.KEYWORD3);
    821 		tsqlKeywords.add("xp_trace_getqueueautostart",Token.KEYWORD3);
    822 		tsqlKeywords.add("xp_trace_getqueuedestination",Token.KEYWORD3);
    823 		tsqlKeywords.add("xp_trace_getqueueproperties",Token.KEYWORD3);
    824 		tsqlKeywords.add("xp_trace_getreadfilter",Token.KEYWORD3);
    825 		tsqlKeywords.add("xp_trace_getserverfilter",Token.KEYWORD3);
    826 		tsqlKeywords.add("xp_trace_getseverityfilter",Token.KEYWORD3);
    827 		tsqlKeywords.add("xp_trace_getspidfilter",Token.KEYWORD3);
    828 		tsqlKeywords.add("xp_trace_getsysobjectsfilter",Token.KEYWORD3);
    829 		tsqlKeywords.add("xp_trace_gettextfilter",Token.KEYWORD3);
    830 		tsqlKeywords.add("xp_trace_getuserfilter",Token.KEYWORD3);
    831 		tsqlKeywords.add("xp_trace_getwritefilter",Token.KEYWORD3);
    832 		tsqlKeywords.add("xp_trace_loadqueuedefinition",Token.KEYWORD3);
    833 		tsqlKeywords.add("xp_trace_pausequeue",Token.KEYWORD3);
    834 		tsqlKeywords.add("xp_trace_restartqueue",Token.KEYWORD3);
    835 		tsqlKeywords.add("xp_trace_savequeuedefinition",Token.KEYWORD3);
    836 		tsqlKeywords.add("xp_trace_setappfilter",Token.KEYWORD3);
    837 		tsqlKeywords.add("xp_trace_setconnectionidfilter",Token.KEYWORD3);
    838 		tsqlKeywords.add("xp_trace_setcpufilter",Token.KEYWORD3);
    839 		tsqlKeywords.add("xp_trace_setdbidfilter",Token.KEYWORD3);
    840 		tsqlKeywords.add("xp_trace_setdurationfilter",Token.KEYWORD3);
    841 		tsqlKeywords.add("xp_trace_seteventclassrequired",Token.KEYWORD3);
    842 		tsqlKeywords.add("xp_trace_seteventfilter",Token.KEYWORD3);
    843 		tsqlKeywords.add("xp_trace_sethostfilter",Token.KEYWORD3);
    844 		tsqlKeywords.add("xp_trace_sethpidfilter",Token.KEYWORD3);
    845 		tsqlKeywords.add("xp_trace_setindidfilter",Token.KEYWORD3);
    846 		tsqlKeywords.add("xp_trace_setntdmfilter",Token.KEYWORD3);
    847 		tsqlKeywords.add("xp_trace_setntnmfilter",Token.KEYWORD3);
    848 		tsqlKeywords.add("xp_trace_setobjidfilter",Token.KEYWORD3);
    849 		tsqlKeywords.add("xp_trace_setqueryhistory",Token.KEYWORD3);
    850 		tsqlKeywords.add("xp_trace_setqueueautostart",Token.KEYWORD3);
    851 		tsqlKeywords.add("xp_trace_setqueuecreateinfo",Token.KEYWORD3);
    852 		tsqlKeywords.add("xp_trace_setqueuedestination",Token.KEYWORD3);
    853 		tsqlKeywords.add("xp_trace_setreadfilter",Token.KEYWORD3);
    854 		tsqlKeywords.add("xp_trace_setserverfilter",Token.KEYWORD3);
    855 		tsqlKeywords.add("xp_trace_setseverityfilter",Token.KEYWORD3);
    856 		tsqlKeywords.add("xp_trace_setspidfilter",Token.KEYWORD3);
    857 		tsqlKeywords.add("xp_trace_setsysobjectsfilter",Token.KEYWORD3);
    858 		tsqlKeywords.add("xp_trace_settextfilter",Token.KEYWORD3);
    859 		tsqlKeywords.add("xp_trace_setuserfilter",Token.KEYWORD3);
    860 		tsqlKeywords.add("xp_trace_setwritefilter",Token.KEYWORD3);
    861 	}
    862
    863 	private static void addSystemTables()
    864 	{
    865 		tsqlKeywords.add("backupfile",Token.KEYWORD3);
    866 		tsqlKeywords.add("backupmediafamily",Token.KEYWORD3);
    867 		tsqlKeywords.add("backupmediaset",Token.KEYWORD3);
    868 		tsqlKeywords.add("backupset",Token.KEYWORD3);
    869 		tsqlKeywords.add("MSagent_parameters",Token.KEYWORD3);
    870 		tsqlKeywords.add("MSagent_profiles",Token.KEYWORD3);
    871 		tsqlKeywords.add("MSarticles",Token.KEYWORD3);
    872 		tsqlKeywords.add("MSdistpublishers",Token.KEYWORD3);
    873 		tsqlKeywords.add("MSdistribution_agents",Token.KEYWORD3);
    874 		tsqlKeywords.add("MSdistribution_history",Token.KEYWORD3);
    875 		tsqlKeywords.add("MSdistributiondbs",Token.KEYWORD3);
    876 		tsqlKeywords.add("MSdistributor",Token.KEYWORD3);
    877 		tsqlKeywords.add("MSlogreader_agents",Token.KEYWORD3);
    878 		tsqlKeywords.add("MSlogreader_history",Token.KEYWORD3);
    879 		tsqlKeywords.add("MSmerge_agents",Token.KEYWORD3);
    880 		tsqlKeywords.add("MSmerge_contents",Token.KEYWORD3);
    881 		tsqlKeywords.add("MSmerge_delete_conflicts",Token.KEYWORD3);
    882 		tsqlKeywords.add("MSmerge_genhistory",Token.KEYWORD3);
    883 		tsqlKeywords.add("MSmerge_history",Token.KEYWORD3);
    884 		tsqlKeywords.add("MSmerge_replinfo",Token.KEYWORD3);
    885 		tsqlKeywords.add("MSmerge_subscriptions",Token.KEYWORD3);
    886 		tsqlKeywords.add("MSmerge_tombstone",Token.KEYWORD3);
    887 		tsqlKeywords.add("MSpublication_access",Token.KEYWORD3);
    888 		tsqlKeywords.add("Mspublications",Token.KEYWORD3);
    889 		tsqlKeywords.add("Mspublisher_databases",Token.KEYWORD3);
    890 		tsqlKeywords.add("MSrepl_commands",Token.KEYWORD3);
    891 		tsqlKeywords.add("MSrepl_errors",Token.KEYWORD3);
    892 		tsqlKeywords.add("Msrepl_originators",Token.KEYWORD3);
    893 		tsqlKeywords.add("MSrepl_transactions",Token.KEYWORD3);
    894 		tsqlKeywords.add("MSrepl_version",Token.KEYWORD3);
    895 		tsqlKeywords.add("MSreplication_objects",Token.KEYWORD3);
    896 		tsqlKeywords.add("MSreplication_subscriptions",Token.KEYWORD3);
    897 		tsqlKeywords.add("MSsnapshot_agents",Token.KEYWORD3);
    898 		tsqlKeywords.add("MSsnapshot_history",Token.KEYWORD3);
    899 		tsqlKeywords.add("MSsubscriber_info",Token.KEYWORD3);
    900 		tsqlKeywords.add("MSsubscriber_schedule",Token.KEYWORD3);
    901 		tsqlKeywords.add("MSsubscription_properties",Token.KEYWORD3);
    902 		tsqlKeywords.add("MSsubscriptions",Token.KEYWORD3);
    903 		tsqlKeywords.add("restorefile",Token.KEYWORD3);
    904 		tsqlKeywords.add("restorefilegroup",Token.KEYWORD3);
    905 		tsqlKeywords.add("restorehistory",Token.KEYWORD3);
    906 		tsqlKeywords.add("sysalerts",Token.KEYWORD3);
    907 		tsqlKeywords.add("sysallocations",Token.KEYWORD3);
    908 		tsqlKeywords.add("sysaltfiles",Token.KEYWORD3);
    909 		tsqlKeywords.add("sysarticles",Token.KEYWORD3);
    910 		tsqlKeywords.add("sysarticleupdates",Token.KEYWORD3);
    911 		tsqlKeywords.add("syscacheobjects",Token.KEYWORD3);
    912 		tsqlKeywords.add("syscategories",Token.KEYWORD3);
    913 		tsqlKeywords.add("syscharsets",Token.KEYWORD3);
    914 		tsqlKeywords.add("syscolumns",Token.KEYWORD3);
    915 		tsqlKeywords.add("syscomments",Token.KEYWORD3);
    916 		tsqlKeywords.add("sysconfigures",Token.KEYWORD3);
    917 		tsqlKeywords.add("sysconstraints",Token.KEYWORD3);
    918 		tsqlKeywords.add("syscurconfigs",Token.KEYWORD3);
    919 		tsqlKeywords.add("sysdatabases",Token.KEYWORD3);
    920 		tsqlKeywords.add("sysdatabases",Token.KEYWORD3);
    921 		tsqlKeywords.add("sysdepends",Token.KEYWORD3);
    922 		tsqlKeywords.add("sysdevices",Token.KEYWORD3);
    923 		tsqlKeywords.add("sysdownloadlist",Token.KEYWORD3);
    924 		tsqlKeywords.add("sysfilegroups",Token.KEYWORD3);
    925 		tsqlKeywords.add("sysfiles",Token.KEYWORD3);
    926 		tsqlKeywords.add("sysforeignkeys",Token.KEYWORD3);
    927 		tsqlKeywords.add("sysfulltextcatalogs",Token.KEYWORD3);
    928 		tsqlKeywords.add("sysindexes",Token.KEYWORD3);
    929 		tsqlKeywords.add("sysindexkeys",Token.KEYWORD3);
    930 		tsqlKeywords.add("sysjobhistory",Token.KEYWORD3);
    931 		tsqlKeywords.add("sysjobs",Token.KEYWORD3);
    932 		tsqlKeywords.add("sysjobschedules",Token.KEYWORD3);
    933 		tsqlKeywords.add("sysjobservers",Token.KEYWORD3);
    934 		tsqlKeywords.add("sysjobsteps",Token.KEYWORD3);
    935 		tsqlKeywords.add("syslanguages",Token.KEYWORD3);
    936 		tsqlKeywords.add("syslockinfo",Token.KEYWORD3);
    937 		tsqlKeywords.add("syslogins",Token.KEYWORD3);
    938 		tsqlKeywords.add("sysmembers",Token.KEYWORD3);
    939 		tsqlKeywords.add("sysmergearticles",Token.KEYWORD3);
    940 		tsqlKeywords.add("sysmergepublications",Token.KEYWORD3);
    941 		tsqlKeywords.add("sysmergeschemachange",Token.KEYWORD3);
    942 		tsqlKeywords.add("sysmergesubscriptions",Token.KEYWORD3);
    943 		tsqlKeywords.add("sysmergesubsetfilters",Token.KEYWORD3);
    944 		tsqlKeywords.add("sysmessages",Token.KEYWORD3);
    945 		tsqlKeywords.add("sysnotifications",Token.KEYWORD3);
    946 		tsqlKeywords.add("sysobjects",Token.KEYWORD3);
    947 		tsqlKeywords.add("sysobjects",Token.KEYWORD3);
    948 		tsqlKeywords.add("sysoledbusers",Token.KEYWORD3);
    949 		tsqlKeywords.add("sysoperators",Token.KEYWORD3);
    950 		tsqlKeywords.add("sysperfinfo",Token.KEYWORD3);
    951 		tsqlKeywords.add("syspermissions",Token.KEYWORD3);
    952 		tsqlKeywords.add("sysprocesses",Token.KEYWORD3);
    953 		tsqlKeywords.add("sysprotects",Token.KEYWORD3);
    954 		tsqlKeywords.add("syspublications",Token.KEYWORD3);
    955 		tsqlKeywords.add("sysreferences",Token.KEYWORD3);
    956 		tsqlKeywords.add("sysremotelogins",Token.KEYWORD3);
    957 		tsqlKeywords.add("sysreplicationalerts",Token.KEYWORD3);
    958 		tsqlKeywords.add("sysservers",Token.KEYWORD3);
    959 		tsqlKeywords.add("sysservers",Token.KEYWORD3);
    960 		tsqlKeywords.add("syssubscriptions",Token.KEYWORD3);
    961 		tsqlKeywords.add("systargetservergroupmembers",Token.KEYWORD3);
    962 		tsqlKeywords.add("systargetservergroups",Token.KEYWORD3);
    963 		tsqlKeywords.add("systargetservers",Token.KEYWORD3);
    964 		tsqlKeywords.add("systaskids",Token.KEYWORD3);
    965 		tsqlKeywords.add("systypes",Token.KEYWORD3);
    966 		tsqlKeywords.add("sysusers",Token.KEYWORD3);
    967 	}
    968
    969 	private static KeywordMap tsqlKeywords;
    970 }