The saying goes that it's hard to teach an old dog new tricks. I suspect that's true for people as well, even with technology people who are used to learning new skills as software changes. We still tend to stick with what works, using familiar techniques and processes for writing code and building software. It seems to take a long time for any change to propogate through most of our industry, sometimes years.
SQL Server has tried to do away with the *= syntax for outer joins, and over years many have recommended the OUTER JOIN … ON syntax instead, but I still regularly find people posting questions on our forums that show the older style of joins. I know other platforms still use the older style of join syntax, and I suspect that it is still being taught in many classes that are not SQL Server specific.
Recently I learned something new, and made a change in the way I write queries. I didn't think I would adapt so quickly, having years of ingrained habits, but I was pleasantly surprised to adopt the change so quickly. Aaron Bertrand wrote a piece on aliasing columns and introduced the "=" syntax to me, which made sense right away. I have spent years writing aliases as simple quoted names after a column expression, avoiding typing the "AS", but that syntax is being deprecated. Aaron's argument about using the "=" makes sense to me, and if you are not worried about cross platform SQL, I'd recommend it to you. It certainly is easier to read result set headers to me.
T-SQL is evolving, and the way we write things is slowly changing. Semicolons will be required at some point, and I'd urge you to start using them. There are some other changes as well, and if you're ingrained with old habits, take a month and try something new. You might be surprised at how much more powerful some of the language enhancements are in your environment.
The Voice of the DBA Podcasts
Our apologies for no podcast today. We are having issues with our hosting provider this week. We hope to be back with the podcasts next week.
The podcast feeds are available at sqlservercentral.mevio.com. Comments are definitely appreciated and wanted, and you can get feeds from there. Overall RSS Feed: or now on iTunes!
Today's podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. Support this great duo at www.everydayjones.com.
You can also follow Steve Jones on Twitter: