/egilh

Learning by doing

Solving Sudoku puzzles with T-SQL

Posted on Tuesday, May 16, 2006 8:14 PM

Now this is a creative use of Microsoft SQL Server stored procedures: solving Sudoku puzzles:

To make it even more fun for myself, I embarked on an exercise to write a program that solves Sudoku puzzles. And to make it even more challenging I decided not to write the program in the popular object-oriented fashion (Java, C++, C#, etc.) or in any of the old-fashioned procedural programming languages (Pascal, C, Basic etc); but in Transact SQL, within SQL Server 2000. Basically, I wanted to see how the features of T-SQL can be used to develop something like a Sudoku puzzle solution. I have learnt some useful things from the exercise, which I’m eager to pass on to my fellow programmers.

SQL Server 2005 makes even simpler as it is possible to write stored procedures with .NET

Thanks for the tip Marco




Feel free to drop a few cents in the tip jar if this post saved you time and money

Post Comment
Title
 

Name
 

Url

Protected by Clearscreen.SharpHIPEnter the code you see:
Comment