Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/t-sql/functions/bit-count-transact-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Any integer or binary expression that isn't a large object ([LOB](#remarks)).

For example, `SELECT BIT_COUNT (CAST (-1 AS SMALLINT))` and `SELECT BIT_COUNT (CAST (-1 AS INT))` return `16` and `32` respectively. This is intended, as the binary representation of `-1` can have a different number of bits set to `1` depending on the data type.

If *expression_value* is `NULL`, `BIT_COUNT` returns `NULL`.

## Remarks

Distributed Query functionality for the bit manipulation functions within linked server or ad hoc queries (`OPENQUERY`) aren't supported.
Expand Down