Joseph Gama


Technical Article

UDF Luhn's formula-credit card number validation

This UDF will validate a credit card number using Luhn's formula.For example 49927398716 will return 1:print dbo.luhn('49927398716')print dbo.luhn(49927398716)11based on:Credit cards, validation and the Luhn formulabyEduardo Chaveshttp://www.webdevelopersjournal.com/articles/validation.htmlAlgorithm converted to TSQL by Joseph Gama

2002-12-12

452 reads

Blogs

Daily Coping 21 Oct 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

#PowershellBasics: Get a list of files from a directory.

By

I’ve got a project I’m working on at the moment and it includes a...

Join me next week at my first GroupBy session

By

2021 has been the year people want to learn about Temporal Tables, it seems....

Read the latest Blogs

Forums

Managed Instance, cross-database queries. What are the hidden requirements?

By ja_iris

Have a managed instance with 2 databases. In theory I should be able to...

Need the (default) port to connect - why is this not implicit.

By snomadj

So I have 2 instances (1 x 12, 1 x 19). Both have the...

Extract data from XML field

By SqlRookie

Hello, I have a SQL view with a column called GlobalCountryRegionXML. Here is an...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers