Skip to content

Commit 717a044

Browse files
authored
Typo correction and additional warning
The original post had "can not" instead of cannot, which is a spelling error. This page also does not mention transactions, which is an important concept for variables.
1 parent 470b726 commit 717a044

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/t-sql/language-elements/variables-transact-sql.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ A Transact-SQL local variable is an object that can hold a single data value of
2828
> The names of some Transact-SQL system functions begin with two *at* signs (\@\@). Although in earlier versions of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], the \@\@functions are referred to as global variables, they are not variables and do not have the same behaviors as variables. The \@\@functions are system functions, and their syntax usage follows the rules for functions.
2929
3030
> [!NOTE]
31-
> Variables can not be used in views.
31+
> Variables can notbe used in views.
32+
33+
> [!NOTE]
34+
> Changes to variables are not affected by the rollback of a transaction.
3235
3336
The following script creates a small test table and populates it with 26 rows. The script uses a variable to do three things:
3437

0 commit comments

Comments
 (0)