- Home
- Developer Center
- Documentation CLR Data Masking Components
- Dynamic Credit Card
CLR Data Masking Components
CLR Reference
CLR Data Masking Components
Open Navigation Article
- Home
- Developer Center
- Documentation CLR Data Masking Components
- Dynamic Credit Card
Credit Card Dynamic
CLR function
SQLCLR:
SELECT [dbo].[CreditCardDynamic] (<@creditCard, nvarchar(4000)>)
Expected input
Data: Credit card number including separators (Letters are not allowed). Digits count must be between 13 and 20.
Expected output
Credit card number of the same length and separators positions with LUHN validation string (nvarchar(MAX))
Error handling
Fails on empty or Null values. Fails on values that contains less than 13 digits or more than 20 digits.
Example
SQLCLR:
SELECT [dbo].[CreditCardDynamic] ('12345 554 512345')
×
CLR Reference: Dynamic Credit Card
CLR Reference: Dynamic Credit Card
- 1. Credit Card 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