- Home
- Developer Center
- Documentation CLR Data Masking Components
- Country Code Dynamic
CLR Data Masking Components
CLR Reference
CLR Data Masking Components
Open Navigation Article
- Home
- Developer Center
- Documentation CLR Data Masking Components
- Country Code Dynamic
Country Code
CLR function
SQLCLR:
SELECT [dbo].[CountryDynamic] (<@country, nvarchar(4000)>)
Expected input
Data: Valid Country name or Code (based on ISO 3166)
Expected output
Valid Country Name or Code (based on ISO 3166) string (nvarchar(MAX))
Error handling
Returns an empty string when passing empty or NULL value.
Example
SQLCLR:
SELECT [dbo].[CompanyNameDynamic] ('Germany')
×
CLR Reference: Country Code Dynamic
CLR Reference: Country Code Dynamic
- 1. Country Code
- 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