<s>
Transact-SQL	B-Language
(	O
T-SQL	B-Language
)	O
is	O
Microsoft	O
's	O
and	O
Sybase	B-Application
's	O
proprietary	O
extension	O
to	O
the	O
SQL	B-Language
(	O
Structured	B-Language
Query	I-Language
Language	I-Language
)	O
used	O
to	O
interact	O
with	O
relational	B-Application
databases	I-Application
.	O
</s>
<s>
T-SQL	B-Language
expands	O
on	O
the	O
SQL	B-Language
standard	O
to	O
include	O
procedural	B-Application
programming	I-Application
,	O
local	O
variables	O
,	O
various	O
support	O
functions	O
for	O
string	O
processing	O
,	O
date	O
processing	O
,	O
mathematics	O
,	O
etc	O
.	O
</s>
<s>
and	O
changes	O
to	O
the	O
DELETE	B-Language
and	O
UPDATE	B-Language
statements	O
.	O
</s>
<s>
Transact-SQL	B-Language
is	O
central	O
to	O
using	O
Microsoft	B-Application
SQL	I-Application
Server	I-Application
.	O
</s>
<s>
All	O
applications	O
that	O
communicate	O
with	O
an	O
instance	O
of	O
SQL	B-Language
Server	O
do	O
so	O
by	O
sending	O
Transact-SQL	B-Language
statements	O
to	O
the	O
server	O
,	O
regardless	O
of	O
the	O
user	O
interface	O
of	O
the	O
application	O
.	O
</s>
<s>
Stored	B-General_Concept
procedures	I-General_Concept
in	O
SQL	B-Language
Server	O
are	O
executable	O
server-side	O
routines	O
.	O
</s>
<s>
The	O
advantage	O
of	O
stored	B-General_Concept
procedures	I-General_Concept
is	O
the	O
ability	O
to	O
pass	O
parameters	O
.	O
</s>
<s>
Transact-SQL	B-Language
provides	O
the	O
following	O
statements	O
to	O
declare	O
and	O
set	O
local	O
variables	O
:	O
DECLARE	O
,	O
SET	O
and	O
SELECT	O
.	O
</s>
<s>
Keywords	O
for	O
flow	O
control	O
in	O
Transact-SQL	B-Language
include	O
BEGIN	O
and	O
END	O
,	O
BREAK	O
,	O
CONTINUE	O
,	O
GOTO	O
,	O
IF	O
and	O
ELSE	O
,	O
RETURN	O
,	O
WAITFOR	O
,	O
and	O
WHILE	O
.	O
</s>
<s>
RETURN	O
is	O
used	O
to	O
immediately	O
return	O
from	O
a	O
stored	B-General_Concept
procedure	I-General_Concept
or	O
function	O
.	O
</s>
<s>
In	O
Transact-SQL	B-Language
,	O
both	O
the	O
DELETE	B-Language
and	O
UPDATE	B-Language
statements	O
are	O
enhanced	O
to	O
enable	O
data	O
from	O
another	O
table	O
to	O
be	O
used	O
in	O
the	O
operation	O
,	O
without	O
needing	O
a	O
subquery	O
:	O
</s>
<s>
DELETE	B-Language
accepts	O
joined	O
tables	O
in	O
the	O
FROM	O
clause	O
,	O
similarly	O
to	O
SELECT	O
.	O
</s>
<s>
When	O
this	O
is	O
done	O
,	O
the	O
name	O
or	O
alias	O
of	O
which	O
table	O
in	O
the	O
join	O
is	O
to	O
be	O
deleted	O
from	O
is	O
placed	O
between	O
DELETE	B-Language
and	O
FROM	O
.	O
</s>
<s>
UPDATE	B-Language
allows	O
a	O
FROM	O
clause	O
to	O
be	O
added	O
.	O
</s>
<s>
The	O
table	O
to	O
be	O
updated	O
can	O
be	O
either	O
joined	O
in	O
the	O
FROM	O
clause	O
and	O
referenced	O
by	O
alias	O
,	O
or	O
referenced	O
only	O
at	O
the	O
start	O
of	O
the	O
statement	O
as	O
per	O
standard	O
SQL	B-Language
.	O
</s>
<s>
This	O
example	O
deletes	B-Language
all	O
users	O
who	O
have	O
been	O
flagged	O
with	O
the	O
'	O
Idle	O
 '	O
flag	O
.	O
</s>
<s>
BULK	O
is	O
a	O
Transact-SQL	B-Language
statement	O
that	O
implements	O
a	O
bulk	O
data-loading	O
process	O
,	O
inserting	O
multiple	O
rows	O
into	O
a	O
table	O
,	O
reading	O
data	O
from	O
an	O
external	O
sequential	O
file	O
.	O
</s>
<s>
Beginning	O
with	O
SQL	B-Language
Server	O
2005	O
,	O
Microsoft	O
introduced	O
additional	O
TRY	O
CATCH	O
logic	O
to	O
support	O
exception	O
type	O
behaviour	O
.	O
</s>
<s>
This	O
behaviour	O
enables	O
developers	O
to	O
simplify	O
their	O
code	O
and	O
leave	O
out	O
@	O
@ERROR	O
checking	O
after	O
each	O
SQL	B-Language
execution	O
statement	O
.	O
</s>
