Black Friday prices end in 20d 17h 40m — See the sale

Category: Humor

News & Opinion

Brace Yourself for These 9 Database Horror Stories

Last week, I asked for your worst database horror stories. Hoowee, did you deliver. Make yourself a nice cup of cocoa, gather around the campfire, and listen up for these terrible tales. Illustrations courtesy of Swear Trek (not safe for work.) The mistake we've all made Russ did an update without a where clause, but…

Read more about Brace Yourself for These 9 Database Horror Stories 24 comments — Join the discussion
T-SQL & Development

Stupid T-SQL Tricks

Presented without comment:
[crayon-6af2b741229c8792100733/]
Next up, can you break up a query with spaces? Yep:
[crayon-6af2b741229d5817065263/]
Well if you can do that - can you break up a query across lines? Sure you can:
[crayon-6af2b741229d8830653873/]
And now, brace yourself: this one is so weird that I can't even embed it in the blog. I'm just going to show you a picture of it first:

Read more about Stupid T-SQL Tricks 33 comments — Join the discussion
News & Opinion

#TSQL2sday: What I’m Passionate About – Sas Christian’s Art

For this month's T-SQLTuesday, Aaron Bertrand asked what we're passionate about - but outside of the tech community, and asked for pictures. Seems like a great way to get to know about us.

From my personal blog and my Instagram feed, you probably already know that I'm into cars, travel, and food, so I wanted to pick something different to share with you.

Read more about #TSQL2sday: What I’m Passionate About – Sas Christian’s Art 8 comments — Join the discussion
T-SQL & Development

Creating Insert Triggers to Silently Ignore Data You Don’t Want

Say you've got an application that insists on inserting data into the database, and...you don't want the data.

You want the application to THINK it inserted the data - you don't want to roll it back or return an error to the end user. You just don't want the data, and you don't want the hassle of deleting it later.

Read more about Creating Insert Triggers to Silently Ignore Data You Don’t Want 19 comments — Join the discussion
Performance Tuning

How to Drop All Your Indexes – Fast

Sometimes I need to reset stuff during performance training classes. I know some of you teach classes, too, and some of you just like doing crazy stuff. So here you go, a stored procedure to lose weight fast: DropIndexes for SQL Server 2016 & Newer [crayon-6af2b7412b4d0353821713/] DropIndexes for SQL Server 2008-2014 This one doesn't include…

Read more about How to Drop All Your Indexes – Fast 28 comments — Join the discussion