Viewing 15 posts - 31 through 45 (of 93 total)
Interesting that this does not work the same way.
select datalength(convert(varchar, getdate(), 101))
August 23, 2010 at 9:30 am
Thanks for the question. I learned something. I didn't know that Not ending Transact-SQL statements with a semicolon was on the Deprecated Database Engine Features in SQL Server 2008 R2.
http://msdn.microsoft.com/en-us/library/ms143729.aspx
Thanks,
Kevin
July 13, 2010 at 9:28 am
john.arnott (7/12/2010)The QOD not only calls our attention to this specific behavior in the REPLACE() function, but also to the general issue of understanding and programing to handle NULL.
I see...
July 12, 2010 at 11:11 am
KevinC. (7/12/2010)
It makes sense.
Really? Would it have been too difficult to return the string unmodified if there was a NULL detected? In the way it is now, a small bug...
July 12, 2010 at 10:24 am
Anyone got any ideas why this function was made to work this way? Makes no sense to me.
July 12, 2010 at 9:17 am
Sorry if this was already covered. I did read through the 11 pages :doze: and didn't see much on the subject of sort order. Without a specified order wouldn't -3,...
June 28, 2010 at 9:54 am
Hugo Kornelis (6/25/2010) Is 0.1% chance of incorrect results acceptable for your user?
Not for me.
Hugo, is this the article you were looking for?
"The correct behavior for an aggregate...
June 25, 2010 at 8:46 am
Rune Bivrin (4/14/2010)
This is one...
April 14, 2010 at 9:00 am
LOL I lost another point. 🙂
I enjoy QOD and think it is a good learning tool. The idea of points makes it competitive and sometimes taken too seriously IMO.
March 19, 2010 at 1:44 pm
I believe that this is what the explanation should have been.
The answers are: SELECT COUNT_BIG(ALL COlumn_2) and SELECT COUNT_BIG(column_2). COUNT_BIG(*) will count all rows from the table (including duplicate &...
March 9, 2010 at 10:11 am
I don't think I learned anything useful by getting this question wrong. Who cares if you can create a job in express if it can't be used?
November 27, 2009 at 9:43 am
john.moreno (8/25/2009)
On my SQL 2008 server (using the Master database so no question of compatibility level) this fails with the previously mentioneed "GetBytes function" error.
I found that the reason...
August 25, 2009 at 12:36 pm
bhavster27 (8/25/2009)
DECLARE @i AS INT = 100,@msg AS VARCHAR(5)= '11',@Date AS DATE=GETDATE()
will generate error "Cannot assign a default value to a local variable."
Not for SQL 2008
August 25, 2009 at 10:46 am
Viewing 15 posts - 31 through 45 (of 93 total)