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)

You rated this post out of 5. Change rating

2008-01-01 (first published: )

7,344 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.

You rated this post out of 5. Change rating

2006-04-27

16,772 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)

You rated this post out of 5. Change rating

2006-02-06

20,298 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)

You rated this post out of 5. Change rating

2008-06-13 (first published: )

55,074 reads

SQLServerCentral Article

The GO Command and the Semicolon Terminator

  • Article

There are probably not many SQL Server DBAs that use the semicolon as a statement separator. In SQL Server 2005, this is required in certain places and new author Kenneth Powers brings us a look at where and why you need to use this syntax.

4.23 (22)

You rated this post out of 5. Change rating

2007-10-02 (first published: )

45,045 reads

Blogs

Attacking the Weakest Link

By

When I look at a system and think about its security model, the first...

Webinar – Microsoft Fabric for Dummies

By

On Wednesday May 15th 2024 I will give a free webinar on MSSQLTips.com about...

Migrate datetime data to datetimeoffset with AT TIME ZONE

By

I recently reviewed, worked on, and added a similar example to the DATETIMEOFFSET Microsoft...

Read the latest Blogs

Forums

Extend Event with sqlserver.login

By Ken McKelvey

My knowledge of Extended Events is limited, but I am trying to capture some...

ghost backups processed 0 pages

By Snargables

I've got something I'm not aware of performing backups of my dbs at random...

Stored Procedures - passed string than variable length

By Arthur Kirchner

Dear all, I was just wondering: Can you change the default behaviour as illustrated...

Visit the forum

Question of the Day

The Backup File Extension

I run this command in SQL Server 2022. What is the extension of the backup file?

BACKUP DATABASE HerdofTwo TO DISK = 'HerdOfTwo_20240501'

See possible answers