SQL Puzzles

SQLServerCentral Article

Finding Primes

  • Article

While it's not likely that many of you need to find prime numbers using T-SQL, it is an interesting programming exercise. SQL Server guru Kathi Kellenburger brings us one solution after taking a break over the holidays and reading some popular fiction.

4.33 (6)

2008-01-01 (first published: )

7,212 reads

SQLServerCentral Article

SQL 2000 DBA Toolkit Part 3

  • Article

Phonetic matching, working on finding terms that are misspelled, is an art and there are a number of ways to handle it. In SQL Server 2000 the tools are limited, but Michael Coles brings us part 3 of his toolkit with some handy functions that can help you with text searching.


16,390 reads

SQLServerCentral Article

Practical Uses of PatIndex

  • Article

String manipulation is not one of the strong points of T-SQL, but there are some functions that can greatly assist you with searching and working with character values. New author Robert Davis brings us a look at PATINDEX, one of the search functions and also explains the differences between it and the often used CHARINDEX.

4.5 (6)


19,943 reads

SQLServerCentral Article

Eliminating Cursors

  • Article

T-SQL does some things wonderfully, but cursors are the bane of the language, often causing performance issues. Changing your queries around to remove cursors can be tricky and new author Kamran Ali brings us one technique he has used to dramatically improve performance.

3.67 (81)

2008-06-13 (first published: )

54,865 reads


Dec 8 Webinar with Pavilion – Boost SQL Server on VMware Performance 400% with 2-Step Tuning


Join us on December 8th at 10am Pacific time for an exciting new webinar!...

Daily Coping 3 Dec 2021


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

Daily Coping 2 Dec 2021


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

Read the latest Blogs


Foreign key in the column values of another table

By teb

I have trouble in writing a SQL query. I have a data table with...

How to increase performance to load a factless date-date-interval table

By svenflock

Hi all, I am currently having performance issues by populating one of my factless...

Linked Server Error

By dhara

Hi Experts, I am getting the following error when i am trying to test...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers