Viewing 15 posts - 901 through 915 (of 1,246 total)
TheSQLGuru (12/25/2015)
Jason A. Long (12/25/2015)
TheSQLGuru (12/25/2015)
December 25, 2015 at 7:14 pm
GilaMonster (12/25/2015)
I see these sooo many times: https://www.simple-talk.com/content/article.aspx?article=2280, plus scalar UDFs, multi-statement table-valued UDFs, nested views, non-SARGable predicates
Gail - That's a HUGE one where I work! Our code is littered...
December 25, 2015 at 2:22 pm
The one I came across a couple days ago...
WHERE LEN(t.SSN) = 9
as opposed to
WHERE t.SSN LIKE [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
December 25, 2015 at 2:16 pm
Jeff Moden (12/25/2015)
Jason A. Long (12/25/2015)
Jeff Moden (12/25/2015)
Jason A. Long (12/25/2015)
December 25, 2015 at 2:11 pm
Jeff Moden (12/25/2015)
Jason A. Long (12/25/2015)
December 25, 2015 at 1:14 pm
Jeff Moden (12/25/2015)
December 25, 2015 at 1:07 pm
Jeff Moden (12/25/2015)
Ed Wagner (12/25/2015)
Kevin, just the way you phrased "bad-data causers" made me think of the horrible offense of storing dates and times in string columns.
Or, like MS did...
December 25, 2015 at 12:43 pm
TheSQLGuru (12/25/2015)
December 25, 2015 at 12:25 pm
Ed Wagner (12/25/2015)
This certainy isn't a comprehensive list, but I think it's a decent start.While loops or cursors instead of set-based alternatives
Non-SARGable predicates
Multi statement table valued functions
Using SELECT * everywhere
Fortunately,...
December 25, 2015 at 12:19 pm
Jeff Moden (12/24/2015)
Well, done, Jason! I learned something new today! :w00t: You should write an article on this.
As always, your kind words are very much appreciated. 🙂
As far...
December 25, 2015 at 8:04 am
Jeff Moden (12/24/2015)
It's not just the anchor. You can't use a Non-Clustered Index for the QU because of the possibility of a "Merry-go-Round" index.
Yikes... That's what I get for...
December 24, 2015 at 2:59 pm
Basurmanin (12/24/2015)
i have the next problem:
i need to extract numbers from a string.
Without using CTE, func, proc. Just query.
Restrictions - varchar (50)
Let`s take this example
select 'aGk5kyO8pfas2csd444567' as word union...
December 24, 2015 at 2:10 pm
Unless you're using recursion, a CTE can be rewritten as a derived table... Considering that derived tables (and CTEs) are processed before the outer query, CTEs can allow the code...
December 24, 2015 at 6:50 am
Jeff Moden (12/23/2015)
Jason A. Long (12/23/2015)
This is just a quick test... But according to this, the Windowed SUM is going faster... see what you think...
You've fallen into the same trap...
December 23, 2015 at 8:06 pm
Viewing 15 posts - 901 through 915 (of 1,246 total)