17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If this evaluates to True, then you would know that IMPLICIT_TRANSACTIONS had been turned on for<br />

the current connection. The values are:<br />

Bit SET Option Description<br />

1 DISABLE_<br />

DEF_CNST_CHK<br />

2 IMPLICIT_<br />

TRANSACTIONS<br />

4 CURSOR_CLOSE<br />

ON_COMMIT<br />

Interim vs. deferred constraint checking.<br />

A transaction is started implicitly when a statement is executed.<br />

Controls behavior of cursors after a COMMIT operation has been<br />

performed.<br />

8 ANSI_WARNINGS Warns of truncation and NULL in aggregates.<br />

16 ANSI_PADDING Controls padding of fixed-length variables.<br />

32 ANSI_NULLS Determines handling of nulls when using equality operators.<br />

64 ARITHABORT Terminates a query when an overflow or divide-by-zero error<br />

occurs during query execution.<br />

128 ARITHIGNORE Returns NULL when an overflow or divide-by-zero error occurs<br />

during a query.<br />

256 QUOTED_<br />

IDENTIFIER<br />

Differentiates between single and double quotation marks when<br />

evaluating an expression.<br />

512 NOCOUNT Turns off the row(s) affected message returned at the end of each<br />

statement.<br />

1024 ANSI_NULL_<br />

DFLT_ON<br />

2048 ANSI_NULL_<br />

DFLT_OFF<br />

4096 CONCAT_NULL_<br />

YIELDS_NULL<br />

8192 NUMERIC_<br />

ROUNDABORT<br />

Apendix A: System Functions<br />

Alters the session’s behavior to use ANSI compatibility for nullability.<br />

Columns created with new tables or added to old tables<br />

without explicit null option settings are defined to allow nulls.<br />

Mutually exclusive with ANSI_NULL_DFLT_OFF.<br />

Alters the session’s behavior not to use ANSI compatibility for nullability.<br />

New columns defined without explicit nullability are<br />

defined not to allow nulls. Mutually exclusive with<br />

ANSI_NULL_DFLT_ON.<br />

Returns a NULL when concatenating a NULL with a string.<br />

Generates an error when a loss of precision occurs in an expression.<br />

597

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!