PARSE
type conversion
What changes
- Input
- an expression and target type (and culture/style)
- Output or change
- converted value (TRY_ variants return NULL on failure)
- Return type
- Returns the result of the expression, translated to the requested data type.
Syntax at a glance
PARSE ( string_value AS data_type [ USING culture ] )
Work example
Convert culture-sensitive text when culture is part of the input contract.
Test valid, malformed, null, and boundary input. Pin culture and target type when parsing text.
Check your work Supply the intended culture and compare the cost with an explicit typed conversion.
Open Microsoft Learn for full syntax, permissions, and details for your version.