John's Brain Dump

All the technical gyrations I go through to build software, so I don't forget them and others can benefit from them.

Receive Email Updates

Browse by Tags

All Tags » SQL (RSS)
SQL Trick: Finding Integers in Character Columns
Q: What WHERE condition do you use to find all values in a column that contain only numbers? (No decimal points, no minus signs, just 0-9. A: [ column name ] NOT LIKE '%[^0-9]%' This is the kind of thing that I'll forget a year from now when...
Posted: May 26 2006, 07:38 PM by John | with no comments
Filed under: ,
Free Intellisense for SQL Server!
I read this morning that Red Gate Software has released a *free* program that adds Intellisense to your standard SQL editors (Query Analyzer, Enterprise Manager, Management Studio and VS). I tried it out, and had it up and running in less than five minutes...
Posted: May 22 2006, 07:31 PM by John | with no comments
Filed under: ,
Moving SQL Server Objects
Well, I'm preparing for a significant move to production tomorrow morning, including a bunch of new database code. I really can't remember how I was confident that I moved everything before I discovered Red Gate's SQL Compare and SQL Data...
Posted: Nov 30 2005, 09:47 PM by John | with no comments
Filed under: ,
5 Reasons to use Indexed Views
I love indexed views in SQL Server! My current project is a fairly large system for a government entity, containing over 70 live tables, and so the queries that I have written are intense. Many of them are so intense, in fact, that the database server's...
Posted: Nov 23 2005, 05:33 PM by John | with 4 comment(s)
Filed under: ,
Avoiding Cursors with Superclass-Subclass Tables
Ever since I read Itzik Ben-Gan's article in SQL Server Magazine about changing cursor-based logic to set-based logic, I've avidly sought to avoiding using cursors in my SQL procedures. One of the biggest problems that I've faced on this front...
Posted: Nov 21 2005, 05:32 PM by John | with no comments
Filed under: ,
More Posts