Viewing 5 posts - 46 through 50 (of 50 total)
Writing
SUM(Quantity) OVER (ORDER BY EffectiveDate RANGE UNBOUNDED PRECEDING) AS TQuantity
does the trick. I will have to learn more about this feature as I currently have the bad feeling of programming...
September 12, 2016 at 9:56 am
I am getting deadlocks (SqlException 1205). I understand that my test case is highly hypothetical but I wanted to have deadlocks for sure.
August 5, 2014 at 6:53 am
I am running the threads on a client machine and each thread uses its own SqlConnection component. As far as I know, this is equivalent of having several computers running...
August 4, 2014 at 2:40 pm
Tricking the T-SQL compiler is a clever solution. Better, performance penalty is insignificant. Thanks a lot!
March 6, 2014 at 9:08 am
Using EXEC works well in a standard script but calling it from within a function gives the error "Invalid use of a side-effecting operator 'INSERT EXEC' within a function".
March 5, 2014 at 2:28 pm
Viewing 5 posts - 46 through 50 (of 50 total)