Viewing 15 posts - 1,861 through 1,875 (of 8,731 total)
drew.allen (11/16/2016)
These types of functions are best left to the presentation layer.Drew
+100
November 16, 2016 at 2:44 pm
When using AND in a JOIN, it usually means that you have a composite key which would consist on 2 or more columns.
As you have realized, removing one or more...
November 16, 2016 at 2:35 pm
You can use something like this
WITH CTE AS(
SELECT Product,
SUM( CASE WHEN Category = 'Something' THEN Value ELSE 0...
November 16, 2016 at 2:00 pm
If you needed more benefits, there are many Enterprise features that have been made available for 2016 SP1 Standard edition.
https://blogs.msdn.microsoft.com/sqlreleaseservices/sql-server-2016-service-pack-1-sp1-released/
November 16, 2016 at 10:52 am
crookj (11/16/2016)
Y.B. (11/16/2016)
djj (11/16/2016)
Ed Wagner (11/16/2016)
Grumpy DBA (11/16/2016)
Brandie Tarvin (11/16/2016)
RemovalAlien probe
X Files
X Men
Mutants
Inhumans
S.H.I.E.L.D.
November 16, 2016 at 8:29 am
I still prefer the Pattern splitter.
DECLARE @String varchar(1000);
SET @String = 'Lorem ipsum dolor sit amet, CONSECtetur adipiSCIng elit. PelleNTesque in ELIT ut ex accumsan sagittis in a urna. ÄÅÖ'
SELECT (...
November 16, 2016 at 8:00 am
ajkarora (11/15/2016)
so sorry but I posted in SQL Sever 2014 by mistake. Will this work on SQL Server 2008?
No, it has functionality that was introduced on 2012.
Have you read the...
November 15, 2016 at 1:12 pm
DamianC (11/15/2016)
Knew the answer but not sure why there are 2 almost identical commands that do exactly the same thing
Those are not 2 commands. It's one command and its short...
November 15, 2016 at 12:42 pm
Hugo Kornelis (11/15/2016)
Manic Star (11/15/2016)
crookj (11/15/2016)
djj (11/15/2016)
Ed Wagner (11/15/2016)
Hugo Kornelis (11/15/2016)
Brandie Tarvin (11/15/2016)
djj (11/15/2016)
Ed Wagner (11/15/2016)
Revenant (11/15/2016)
Ed Wagner (11/15/2016)
Brandie Tarvin (11/15/2016)
Y.B. (11/15/2016)
Luis Cazares (11/15/2016)
Ed Wagner (11/15/2016)
djj (11/15/2016)
Manic Star (11/15/2016)
djj (11/15/2016)
Ed...
November 15, 2016 at 12:21 pm
Use a CTE or a derived table to update it using ROW_NUMBER.
WITH CTE AS(
SELECT t1.*,
t2.country...
November 15, 2016 at 12:09 pm
This is an option using windowing functions.
This is also an example on how you should post sample data.
CREATE TABLE #Sample(
TravLotID int,
...
November 15, 2016 at 12:01 pm
I wonder why an SSRS subscription wasn't considered. Too late for that, I suppose.
November 15, 2016 at 10:55 am
Let us know if you decided for anyone.
As Jeff, I don't like to depend on a formatting tool, but it's good to have one when dealing with code written by...
November 15, 2016 at 9:54 am
Jeffery Williams (11/15/2016)
And thank you for the suggestion I am about to test this. The statements are dynamically generated so this...
November 15, 2016 at 9:04 am
Viewing 15 posts - 1,861 through 1,875 (of 8,731 total)