Viewing 15 posts - 376 through 390 (of 1,193 total)
Sean Lange (9/16/2016)
Eirikur Eiriksson (9/16/2016)
Sean Lange (9/16/2016)
Eirikur Eiriksson (9/16/2016)
ThomasRushton (9/16/2016)
Thom A (9/16/2016)
ThomasRushton (9/16/2016)
Sean Lange (9/16/2016)
BWFC (9/16/2016)
jasona.work (9/16/2016)
Thom A (9/16/2016)
ThomasRushton (9/16/2016)
September 16, 2016 at 11:09 am
There are at least a couple ways. Your comparison in the CASE expression could check for equality between the values of those columns cast as DATE, or you could just...
September 16, 2016 at 10:52 am
Seems like you have time components in the columns you're comparing.
You're wanting it to just compare the date portion, but it's going to compare the full values of both...
September 16, 2016 at 10:45 am
Just another quick note to make sure we don't spend a lot of time barking up the wrong tree: Unless I've gone completely crazy (always a possibility), the query for...
September 13, 2016 at 12:13 pm
As I recall that usually happens when using the SSMS GUI to create the column under some conditions (bugs, mostly, if memory serves).
Have you tried adding the column with TSQL?
Cheers!
September 13, 2016 at 11:28 am
Glad to help!
Yeah, ran a few quick tests, and it seems that pattern happens when two conditions are met: you reference a unique index in the WHERE clause and it's...
September 13, 2016 at 10:09 am
My guess would be that at least one of the indexes being affected by the UPDATE is defined as UNIQUE.
I seem to recall that TOP operators show up in...
September 13, 2016 at 9:46 am
The Dixie Flatline (9/9/2016)
Both SET ANSI_WARNINGS OFF and SET ARITHABORT OFF will give him the...
September 9, 2016 at 8:50 am
Yeah, this behavior due to the typing has caused quite a bit of grief in the community.
There have been several connect items reported for it, including https://connect.microsoft.com/SQLServer/feedback/details/791155/round-function-returns-arithmetic-overflow-for-literal-values-0-5-and-1, where Paul White...
September 9, 2016 at 8:17 am
The behavior you're seeing is by design, and is described here: https://support.microsoft.com/en-us/kb/918346
While it only specifies 2005 and 2008 in the kb, it applies in 2014 as well under the conditions...
September 6, 2016 at 3:43 pm
There are a couple things to check.
First, the version of SSMS you're using isn't what determines this. It's the version of the instance you're connecting to.
The query Lynn suggested will...
September 6, 2016 at 1:19 pm
Sean Lange (9/6/2016)
Ed Wagner (9/6/2016)
Sean Lange (9/6/2016)
ChrisM@Work (9/6/2016)
Sean Lange (9/6/2016)
Luis Cazares (9/6/2016)
Sean Lange (9/6/2016)
September 6, 2016 at 10:58 am
As with many things in mathematics, this isn't necessarily a question of wrong/right. It's more a question of what is useful,elegant, parsimonious, etc. (sort of like treating the equals sign...
September 6, 2016 at 8:28 am
Check Martin Smith's excellent answer at StackExchange about temporary tables vs table variables, particularly the bit about storage location: http://dba.stackexchange.com/questions/16385/whats-the-difference-between-a-temp-table-and-table-variable-in-sql-server
Cheers!
September 1, 2016 at 9:01 am
Viewing 15 posts - 376 through 390 (of 1,193 total)