- Home
- Developer Center
- Documentation CLR Data Masking Components
- Zip Code Dynamic
CLR Data Masking Components
CLR Reference
CLR Data Masking Components
Open Navigation Article
- Home
- Developer Center
- Documentation CLR Data Masking Components
- Zip Code Dynamic
Zip Code Dynamic
CLR function
SQLCLR:
SELECT [dbo].[ZipCodeDynamic] (<@ZipCode, nvarchar(4000)>)
Expected input
Data: Valid USA or Canadian Zip Code
Expected output
Generic USA or Canadian Zip Code (depends on input) (nvarchar(MAX))
Error handling
Returns an empty string when passing empty or NULL value. Fails on invalid zip code format
Example
SQLCLR:
SELECT [dbo].[ZipCodeDynamic] ('11302')
×
CLR Reference: Zip Code Dynamic
CLR Reference: Zip Code Dynamic
- 1. Zip Code Dynamic
- 1.1 CLR function
- 1.2 Expected input
- 1.3 Expected output
- 1.4 Error handling
- 1.5 Example
CLR Data Masking Components
CLR Reference