Viewing 8 posts - 16 through 24 (of 24 total)
On tenuously related subjects (the use of 'elegant' code, implicit conversions and SARGable queries), one of my favorite bugs is the following code;
SELECT ...
FROM <Table 1> AS a WITH (nolock)...
September 12, 2014 at 10:00 am
Matt Miller (#4) (9/11/2014)
September 11, 2014 at 12:08 pm
You have all been really helpful about this... I have had a few attempts at replying and trying to thank people for their input but my writing has been too...
September 11, 2014 at 11:53 am
DECLARE @TestVARCHAR(10)
SET @Test = NULL
IF @Test > ''
PRINT '>'
ELSE IF @Test = ''
PRINT '='
ELSE IF @Test < ''
PRINT '<'
ELSE
PRINT 'Bloody NULLs'
I get;
Bloody NULLs
September 11, 2014 at 11:33 am
Alan.B (9/9/2014)
IF @user > '' --This checks for not null and not empty
Please don't do this... It's one of the things that drove me crazy with c programmers - the...
September 10, 2014 at 5:40 pm
Grant Fritchey (9/4/2014)
September 4, 2014 at 12:23 pm
Grant Fritchey (2/11/2014)
My personal favorite, and not just because I work for them, Red Gate SQL Prompt[/url]. It supports 2012 (and Azure and 2014).
Sadly, at $350 per user, I don't...
September 4, 2014 at 11:59 am
I think I have a solution... I'll post it tomorrow.
July 24, 2014 at 6:28 pm
Viewing 8 posts - 16 through 24 (of 24 total)