Quantcast
Channel: Search results matching tag 'bad habits'
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

T-SQL Tuesday #20 : T-SQL Best Practices

T-SQL Tuesday, the invention of Adam Machanic (@AdamMachanic), is what he calls a recurring, revolving blog party. Each month, a new host picks a topic, invites bloggers of all levels to join in, and...

View Article



Image may be NSFW.
Clik here to view.

T-SQL Tuesday #21 : Crap Code

Yes, Adam is right: we've all written crap code (the topic of this month's T-SQL Tuesday Wednesday. Usually we have an excuse: tight deadline, short shelf life of the code, or didn't know any better....

View Article

Bad Habits to Kick : Using EXEC() instead of sp_executesql

Today in my T-SQL: Bad Habits to Kick session at SQL Saturday #84 in Kalamazoo, a user asked if SQL Server supported anything like bind variables in Oracle when using dynamic SQL.When using dynamic...

View Article

Bad Habits to Kick : Using shorthand with date/time operations

I've come across quite a bit of code that uses date/time shorthand that can either be confusing or downright dangerous. There are two areas I want to focus on: shorthand for date arithmetic, and...

View Article

Image may be NSFW.
Clik here to view.

What do BETWEEN and the devil have in common?

I'll make no bones about it: BETWEEN is evil. For one, the meaning of the word in English does not always match the meaning of the operator in T-SQL. In T-SQL, BETWEEN is an *inclusive* range - not...

View Article


Image may be NSFW.
Clik here to view.

Bad Habits to Kick : Using AS instead of = for column aliases

This one is quite subjective, and I'm sure I will face plenty of opposition - not only because it's a preference thing and many people are married to their preferences, but also because it violates the...

View Article

Image may be NSFW.
Clik here to view.

Bad Habits to Kick : Thinking a WHILE loop isn't a CURSOR

I see a lot of people suggest while loops instead of cursors in situations where row-based processing is required (or, at least, where folks think that row-based processing is required). Sometimes the...

View Article

Bad Habits to Kick : Believing everything you hear or read

I read a statement on a forum recently that said something like:IDENTITY columns are the primary key, and primary keys are clustered.Wow. My first thought was, "I hope people aren't learning from...

View Article


T-SQL Bad Habits to Kick : NESQL 3/8

Last Thursday I presented my "Bad Habits to Kick" presentation at the New England SQL User Group.Attached is the deck.

View Article


SQLBits XI : Bad Habits & Best Practices in T-SQL

Yesterday I gave my session to the fine folks in Nottingham, UK. Below is a zip file containing the deck and samples:Bertrand_BitsXI_BadHabits.zip

View Article

SQL Saturday #262 : Boston

Today I gave my T-SQL : Bad Habits & Best Practices session at SQL Saturday #262 at Microsoft in Cambridge. Fun event with a lot of friendly faces. A few mishaps along the way:had to wake up at...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images