Compare Page Revisions
« Older Revision - Back to Page History - Current Revision
Table of Contents [Hide/Show]
Identifiers Object References Operators Built-In Functions Stored Procedures Syntax Logic Flow Control Reserved Return Statuses Calling a Stored Procedure Raising Exceptions Transaction Handling Cursors Logic Flow Fetch Statuses
_
@
#
SET QUOTED_IDENTIFIER
ON
@@
##
[[[server.]database.]owner.]object
server
database
owner
+ - * /
+
POWER
< >
<= >=
!=
<>
%
AVG
COUNT
MAX
MIN
SUM
CAST
CONVERT
DATEADD
DATEDIFF
DATENAME
DATEPART
DAY
GETDATE
GETUTCDATE
MONTH
YEAR
ABS
CEILING
EXP
FLOOR
PI
RAND
ROUND
SIGN
SQRT
COL_LENGTH
COL_NAME
COLUMNPROPERTY
OBJECT_ID
OBJECT_NAME
OBJECTPROPERTY
SYSTEM_USER
IS_MEMBER
IS_SRVROLEMEMBER
SUSER_SID
SUSER_SNAME
USER
USER_ID
ASCII
CHAR
LEFT
LEN
LOWER
LTRIM
RIGHT
RTRIM
SUBSTRING
UPPER
CASE
IDENT_INCR
IDENT_SEED
ISNULL
NEWID
NULLIF
@@ERROR
@@CONNECTION
@@VERSION
@@TRANCOUNT
@@ROWCOUNT
@@IDENTITY
@@FETCH_STATUS
@@NESTLEVEL
CREATE PROC[EDURE] procname [;number] [{@param datatype} [= default][ OUTPUT] [WITH {RECOMPILE | ENCRYPTION | RECOMPILE, ENCRYPTION}] AS SqlStatements
BEGIN
END
GOTO
IF
ELSE
RETURN [(ReturnStatus)]
WAITFOR
WHILE
CASE WHEN a THEN b WHEN c THEN d END
EXEC[UTE] [@ReturnStatus = ] {procname[;number] | @ProcNameVar } [[@parameter = ]{value | @variable [OUTPUT] | [DEFAULT]] [WITH RECOMPILE]
INSERT INTO TableName EXECUTE StoredProcName
RAISERROR ({msgid | msgstring}{, severity, state} [, argument [, ... N]] ] WITH option]
BEGIN TRANSACTION
COMMIT TRANSACTION
ROLLBACK TRANSACTION
DECLARE CursorName CURSOR [LOCAL | GLOBAL] [FORWARD_ONLY | SCROLL] [STATIC | KEYSET | DYNAMIC] [READ_ONLY | SCROLL_LOCKS | OPTIMISTIC] FOR SelectStatement [FOR {READONLY | UPDATE (OF ColumnList)}]
OPEN CursorName
FETCH {FIRST | NEXT} FROM CursorName INTO VariableList
UPDATE {table_name | view_name} SET {column=expression[,...]} WHERE CURRENT OF cursor_name
DELETE [FROM] {table_name | view_name} WHERE CURRENT OF cursor_name
CLOSE CursorName
DEALLOCATE CursorName
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.