Joseph Gama

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

391 reads

Blogs

Using Visual Studio Code

By

I’m a creature of habit. I have my routine when I get to my...

Docker Containers and Persistent Data

By

(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan - you get...

Cursor Dynamic SQL

By

Today was working on SQL Server cursor standard cursor deification would be like this:...

Read the latest Blogs

Forums

Numeric and Decimal

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Numeric and Decimal, which is...

Suspended session

By IMary

Hi, Application service is going to hung state and when we check the database,...

Does blocking has affect on High DTU utilization ?

By ebooklub

Hi, Does blocking has affect on High DTU utilization ?  (some people advocate that...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers