Palabras clave reservadas (programa de instalación)
Microsoft SQL Server 2005 utiliza palabras clave reservadas para definir, manipular y tener acceso a las bases de datos. Las palabras clave reservadas son parte de la gramática de Transact-SQL utilizada en SQL Server para analizar y comprender instrucciones y lotes de Transact-SQL.
Los nombres de instancia de SQL Server no pueden coincidir con una palabra clave reservada. De coincidir, se produciría un error de instalación. Utilice la siguiente tabla para comprobar que las palabras clave reservadas no se utilizan en los nombres de instancia de SQL Server 2005.
ADD |
EXCEPT |
PERCENT |
ALL |
EXEC |
PLAN |
ALTER |
EXECUTE |
PRECISION |
AND |
EXISTS |
PRIMARY |
ANY |
EXIT |
|
AS |
FETCH |
PROC |
ASC |
FILE |
PROCEDURE |
AUTHORIZATION |
FILLFACTOR |
PUBLIC |
BACKUP |
FOR |
RAISERROR |
BEGIN |
FOREIGN |
READ |
BETWEEN |
FREETEXT |
READTEXT |
BREAK |
FREETEXTTABLE |
RECONFIGURE |
BROWSE |
FROM |
REFERENCES |
BULK |
FULL |
REPLICATION |
BY |
FUNCTION |
RESTORE |
CASCADE |
GOTO |
RESTRICT |
CASE |
GRANT |
RETURN |
CHECK |
GROUP |
REVOKE |
CHECKPOINT |
HAVING |
RIGHT |
CLOSE |
HOLDLOCK |
ROLLBACK |
CLUSTERED |
IDENTITY |
ROWCOUNT |
COALESCE |
IDENTITY_INSERT |
ROWGUIDCOL |
COLLATE |
IDENTITYCOL |
RULE |
COLUMN |
IF |
SAVE |
COMMIT |
IN |
SCHEMA |
COMPUTE |
INDEX |
SELECT |
CONSTRAINT |
INNER |
SESSION_USER |
CONTAINS |
INSERT |
SET |
CONTAINSTABLE |
INTERSECT |
SETUSER |
CONTINUE |
INTO |
SHUTDOWN |
CONVERT |
IS |
SOME |
CREATE |
JOIN |
STATISTICS |
CROSS |
KEY |
SYSTEM_USER |
CURRENT |
KILL |
TABLE |
CURRENT_DATE |
LEFT |
TEXTSIZE |
CURRENT_TIME |
LIKE |
THEN |
CURRENT_TIMESTAMP |
LINENO |
TO |
CURRENT_USER |
LOAD |
TOP |
CURSOR |
NATIONAL |
TRAN |
DATABASE |
NOCHECK |
TRANSACTION |
DBCC |
NONCLUSTERED |
TRIGGER |
DEALLOCATE |
NOT |
TRUNCATE |
DECLARE |
NULL |
TSEQUAL |
DEFAULT |
NULLIF |
UNION |
DELETE |
OF |
UNIQUE |
DENY |
OFF |
UPDATE |
DESC |
OFFSETS |
UPDATETEXT |
DISK |
ON |
USE |
DISTINCT |
OPEN |
USER |
DISTRIBUTED |
OPENDATASOURCE |
VALUES |
DOUBLE |
OPENQUERY |
VARYING |
DROP |
OPENROWSET |
VIEW |
DUMMY |
OPENXML |
WAITFOR |
DUMP |
OPTION |
WHEN |
ELSE |
OR |
WHERE |
END |
ORDER |
WHILE |
ERRLVL |
OUTER |
WITH |
ESCAPE |
OVER |
WRITETEXT |
Además, el estándar SQL-2003 define una lista de palabras clave reservadas. Evite utilizar las palabras clave reservadas de SQL-2003 para nombres de objetos e identificadores. La lista de palabras clave reservadas de ODBC, que se muestra a continuación, es igual que la de SQL-2003.
[!NOTA] La lista de palabras clave reservadas de SQL-2003 puede ser unas veces más restrictiva que SQL Server y otras veces, menos. Por ejemplo, la lista de palabras clave reservadas de SQL-2003 contiene INT. SQL Server no considera INT una palabra clave reservada.
Palabras clave reservadas de ODBC
Las siguientes palabras están reservadas para su uso en llamadas a funciones de ODBC. Estas palabras no limitan la gramática mínima de SQL; sin embargo, para asegurar la compatibilidad con los controladores que admiten la gramática principal de SQL, evite la utilización de estas palabras clave en nombres de instancias de SQL Server.
ABSOLUTE |
EXEC |
OVERLAPS |
ACTION |
EXECUTE |
PAD |
ADA |
EXISTS |
PARTIAL |
ADD |
EXTERNAL |
PASCAL |
ALL |
EXTRACT |
POSITION |
ALLOCATE |
FALSE |
PRECISION |
ALTER |
FETCH |
PREPARE |
AND |
FIRST |
PRESERVE |
ANY |
FLOAT |
PRIMARY |
ARE |
FOR |
PRIOR |
AS |
FOREIGN |
PRIVILEGES |
ASC |
FORTRAN |
PROCEDURE |
ASSERTION |
FOUND |
PUBLIC |
AT |
FROM |
READ |
AUTHORIZATION |
FULL |
REAL |
AVG |
GET |
REFERENCES |
BEGIN |
GLOBAL |
RELATIVE |
BETWEEN |
GO |
RESTRICT |
BIT |
GOTO |
REVOKE |
BIT_LENGTH |
GRANT |
RIGHT |
BOTH |
GROUP |
ROLLBACK |
BY |
HAVING |
ROWS |
CASCADE |
HOUR |
SCHEMA |
CASCADED |
IDENTITY |
SCROLL |
CASE |
IMMEDIATE |
SECOND |
CAST |
IN |
SECTION |
CATALOG |
INCLUDE |
SELECT |
CHAR |
INDEX |
SESSION |
CHAR_LENGTH |
INDICATOR |
SESSION_USER |
CHARACTER |
INITIALLY |
SET |
CHARACTER_LENGTH |
INNER |
SIZE |
CHECK |
INPUT |
SMALLINT |
CLOSE |
INSENSITIVE |
SOME |
COALESCE |
INSERT |
SPACE |
COLLATE |
INT |
SQL |
COLLATION |
INTEGER |
SQLCA |
COLUMN |
INTERSECT |
SQLCODE |
COMMIT |
INTERVAL |
SQLERROR |
CONNECT |
INTO |
SQLSTATE |
CONNECTION |
IS |
SQLWARNING |
CONSTRAINT |
ISOLATION |
SUBSTRING |
CONSTRAINTS |
JOIN |
SUM |
CONTINUE |
KEY |
SYSTEM_USER |
CONVERT |
LANGUAGE |
TABLE |
CORRESPONDING |
LAST |
TEMPORARY |
COUNT |
LEADING |
THEN |
CREATE |
LEFT |
TIME |
CROSS |
LEVEL |
TIMESTAMP |
CURRENT |
LIKE |
TIMEZONE_HOUR |
CURRENT_DATE |
LOCAL |
TIMEZONE_MINUTE |
CURRENT_TIME |
LOWER |
TO |
CURRENT_TIMESTAMP |
MATCH |
TRAILING |
CURRENT_USER |
MAX |
TRANSACTION |
CURSOR |
MIN |
TRANSLATE |
DATE |
MINUTE |
TRANSLATION |
DAY |
MODULE |
TRIM |
DEALLOCATE |
MONTH |
TRUE |
DEC |
NAMES |
UNION |
DECIMAL |
NATIONAL |
UNIQUE |
DECLARE |
NATURAL |
UNKNOWN |
DEFAULT |
NCHAR |
UPDATE |
DEFERRABLE |
NEXT |
UPPER |
DEFERRED |
NO |
USAGE |
DELETE |
NONE |
USER |
DESC |
NOT |
USING |
DESCRIBE |
NULL |
VALUE |
DESCRIPTOR |
NULLIF |
VALUES |
DIAGNOSTICS |
NUMERIC |
VARCHAR |
DISCONNECT |
OCTET_LENGTH |
VARYING |
DISTINCT |
OF |
VIEW |
DOMAIN |
ON |
WHEN |
DOUBLE |
ONLY |
WHENEVER |
DROP |
OPEN |
WHERE |
ELSE |
OPTION |
WITH |
END |
OR |
WORK |
END-EXEC |
ORDER |
WRITE |
ESCAPE |
OUTER |
YEAR |
EXCEPT |
OUTPUT |
ZONE |
EXCEPTION |
|
|
Futuras palabras clave
Las siguientes palabras clave podrían quedar reservadas en futuras versiones de SQL Server a medida que se implementen nuevas características. Procure evitar el uso de estas palabras en nombres de instancias de SQL Server.
ABSOLUTE |
FOUND |
PREPARE |
ACTION |
FREE |
PRESERVE |
ADMIN |
FULLTEXTTABLE |
PRIOR |
AFTER |
GENERAL |
PRIVILEGES |
AGGREGATE |
GET |
READS |
ALIAS |
GLOBAL |
REAL |
ALLOCATE |
GO |
RECURSIVE |
ARE |
GROUPING |
REF |
ARRAY |
HOST |
REFERENCING |
ASSERTION |
HOUR |
RELATIVE |
AT |
IGNORE |
RESULT |
BEFORE |
IMMEDIATE |
RETURNS |
BINARY |
INDICATOR |
ROLE |
BIT |
INITIALIZE |
ROLLUP |
BLOB |
INITIALLY |
ROUTINE |
BOOLEAN |
INOUT |
ROW |
BOTH |
INPUT |
ROWS |
BREADTH |
INT |
SAVEPOINT |
CALL |
INTEGER |
SCROLL |
CASCADED |
INTERVAL |
SCOPE |
CAST |
ISOLATION |
SEARCH |
CATALOG |
ITERATE |
SECOND |
CHAR |
LANGUAGE |
SECTION |
CHARACTER |
LARGE |
SEQUENCE |
CLASS |
LAST |
SESSION |
CLOB |
LATERAL |
SETS |
COLLATION |
LEADING |
SIZE |
COMPLETION |
LESS |
SMALLINT |
CONNECT |
LEVEL |
SPACE |
CONNECTION |
LIMIT |
SPECIFIC |
CONSTRAINTS |
LOCAL |
SPECIFICTYPE |
CONSTRUCTOR |
LOCALTIME |
SQL |
CORRESPONDING |
LOCALTIMESTAMP |
SQLEXCEPTION |
CUBE |
LOCATOR |
SQLSTATE |
CURRENT_PATH |
MAP |
SQLWARNING |
CURRENT_ROLE |
MATCH |
START |
CYCLE |
MINUTE |
STATE |
DATA |
MODIFIES |
STATEMENT |
DATE |
MODIFY |
STATIC |
DAY |
MODULE |
STRUCTURE |
DEC |
MONTH |
TEMPORARY |
DECIMAL |
NAMES |
TERMINATE |
DEFERRABLE |
NATURAL |
THAN |
DEFERRED |
NCHAR |
TIME |
DEPTH |
NCLOB |
TIMESTAMP |
DEREF |
NEW |
TIMEZONE_HOUR |
DESCRIBE |
NEXT |
TIMEZONE_MINUTE |
DESCRIPTOR |
NO |
TRAILING |
DESTROY |
NONE |
TRANSLATION |
DESTRUCTOR |
NUMERIC |
TREAT |
DETERMINISTIC |
OBJECT |
TRUE |
DICTIONARY |
OLD |
UNDER |
DIAGNOSTICS |
ONLY |
UNKNOWN |
DISCONNECT |
OPERATION |
UNNEST |
DOMAIN |
ORDINALITY |
USAGE |
DYNAMIC |
OUT |
USING |
EACH |
OUTPUT |
VALUE |
END-EXEC |
PAD |
VARCHAR |
EQUALS |
PARAMETER |
VARIABLE |
EVERY |
PARAMETERS |
WHENEVER |
EXCEPTION |
PARTIAL |
WITHOUT |
EXTERNAL |
PATH |
WORK |
FALSE |
POSTFIX |
WRITE |
FIRST |
PREFIX |
YEAR |
FLOAT |
PREORDER |
ZONE |
Vea también
Tareas
Cómo instalar SQL Server 2005 (programa de instalación)