Binary data types that are either fixed-length (binary) or variable-length (varbinary).
When n is not specified in a data definition or variable declaration statement, the default length is 1. When n is not specified with the CAST function, the default length is 30.
Use binary when the data entries in a column are expected to be consistently close to the same size.
Use varbinary when the data entries in a column are expected to vary considerably in size.
| ALTER TABLE | DECLARE @local_variable |
| CAST and CONVERT | DELETE |
| CREATE TABLE | INSERT |
| Data Type Conversion | SET @local_variable |
| Data Types | UPDATE |