Viewing 15 posts - 16 through 30 (of 521 total)
L' Eomot Inversé (7/3/2013)
[...]as in the first statement where both arguments of LIKE are required to have a string type[...]
Hi,
they are not required to be a string type. But...
July 4, 2013 at 2:16 am
Love the question 🙂 Didn't know I was working with a sick whale:
SELECT DIFFERENCE('Sql','sickwhale')
😀
June 28, 2013 at 12:49 am
Hugo Kornelis (6/24/2013)
[...]Thanks for putting me straight! 😉
Wow, give me a minute - I need to put this into a pricture frame for my living room (or my next résumé);-)
June 24, 2013 at 8:46 am
Hugo Kornelis (6/24/2013)
Christian Buettner-167247 (6/24/2013)
Why was this question reposted with the same misleading explanation as the original QOTD a month ago?
If you are refering to the mistake in the last...
June 24, 2013 at 2:28 am
Why was this question reposted with the same misleading explanation as the original QOTD a month ago?
June 24, 2013 at 12:50 am
Richard Warr (6/21/2013)
However, it's obvious that the second error is...
June 21, 2013 at 2:31 am
Thanks for the question. Please note though that the 2nd query will also fail on some systems with other language settings.
SET DATEFORMAT DMY
GO
--Query 2
DECLARE @dt1 DATETIME
SET @dt1 = '2013-05-30'
SELECT...
June 21, 2013 at 1:52 am
Good question, but the answer is wrong.
SQL Server evaluates object references during parse time. Flow-control logic is not applied at this stage.
This is not true. If you change the temporary...
May 27, 2013 at 2:09 am
I was also looking for the trick:)
Regarding the aggregates & case evaluation:
the CASE evaluation order is guaranteed for the SELECT phase. I think it helps to understand it when...
May 15, 2013 at 11:01 am
Great question. And specifying the IDENTITY_INSERT setting for the table was definitively a good idea. Be explicit.
April 29, 2013 at 1:13 am
Be careful with omitting information in your SQL.
For example, it is good practice to explicitly specify the nullability of your columns.
Had ANSI_NULL_DFLT_OFF for the session, the insert would fail.
Msg 515,...
April 22, 2013 at 2:27 am
Hi,
There is one subtle issue with the explanation (and also the MS documentation).
It is not the ROLLBACK that is causing the abort of the batch. Instead, the batch is...
April 19, 2013 at 1:55 am
As far as I understand, IsNumeric works roughly like this:
CASE WHEN COALESCE(
TRY_CAST(@input AS numeric)
,TRY_CAST(@input AS bigint)
,TRY_CAST(@input AS money)
,TRY_CAST(@input AS smallint)
,TRY_CAST(@input AS smallmoney)
,TRY_CAST(@input AS...
April 8, 2013 at 8:57 am
Von Microsoft am 29.12.2009 um 12:11 bereitgestellt
I am resolving the corresonding SQL11 bug as "by design". Here is the explanation: The semicolon between END TRY and BEGIN CATCH should not...
April 3, 2013 at 1:42 am
This was the easiest question I have seen in a while!
Why you ask?
Well demonfox gave a nice hint :-):
Note : All queries execute without error, please ignore syntax...
March 28, 2013 at 5:06 am
Viewing 15 posts - 16 through 30 (of 521 total)