Viewing 15 posts - 2,041 through 2,055 (of 8,731 total)
Alan.B (10/14/2016)
Luis Cazares (10/14/2016)
A specific function could be made to split only on the...
October 14, 2016 at 8:48 am
Here are 2 modified versions of the DelimitedSplit8k function. The second one will only work on 2012 and more recent versions.
CREATE FUNCTION [dbo].[DelimitedSplit8KNOccurrence](@pString [varchar](8000), @pDelimiter [char](1), @pOccurrence int)
RETURNS TABLE WITH...
October 14, 2016 at 8:41 am
jasona.work (10/14/2016)
Sean Lange (10/14/2016)
Lynn Pettis (10/13/2016)
Wow, what an answer to a 2 year old thread. No idea where they came up with that idea.
Amazing!!! That "answer" is as vague...
October 14, 2016 at 7:15 am
Here's a simple option using the DelimitedSplit8k that can be found here along with its explanation: http://www.sqlservercentral.com/articles/Tally+Table/72993/
A specific function could be made to split only on the 7th delimiter and...
October 14, 2016 at 7:03 am
I know why do you get an infinite loop. I won't post the solution, because you would keep the loop and ignore Sean's advice.
October 13, 2016 at 11:41 am
Alaster07 (10/13/2016)
I tried your approach, and it kind of mostly works. The issue I am running into is that the "early" times will all be at the front of...
October 13, 2016 at 10:25 am
Grant Fritchey (10/13/2016)
Sean Lange (10/13/2016)
This is supposed to be a list of things to do to optimize queries. While some of these are valid most of them lack context or...
October 13, 2016 at 8:23 am
Changing subject here.
Has anyone else had problems with the site being slow or fully unavailable since last night (American time)?
October 13, 2016 at 7:39 am
Ed Wagner (10/13/2016)
jasona.work (10/13/2016)
David Burrows (10/13/2016)
djj (10/13/2016)
Let me get my walker....20 years ago I had been working for 20 years.
Ditto 😀
p.s. I starting programming circa 1973 :w00t:
Geez, '73 I think...
October 13, 2016 at 7:25 am
I really hope the OP didn't depend on the last replies. Not because they're bad, but because it's been over 3 years now.
October 12, 2016 at 2:46 pm
mr_xtant (10/12/2016)
October 12, 2016 at 2:44 pm
Here's an alternative that should be faster than using a scalar function. It includes an example on how to use it.
CREATE VIEW vNEWID
AS
SELECT NEWID() AS _NewID;
GO
CREATE FUNCTION GenerateRandomDateTime
(
@MinimumDate DATETIME,
@MaximumDayDifference INT,
@MaximumSecondsFromMidnight...
October 12, 2016 at 2:36 pm
mareynolds (10/12/2016)
October 12, 2016 at 2:25 pm
Sean Lange (10/12/2016)
Grant Fritchey (10/12/2016)
jasona.work (10/12/2016)
Grant Fritchey (10/12/2016)
October 12, 2016 at 7:57 am
And here's an example based on that article (you'll need to complete it):
SELECT machine_id,
type_id,
MAX( CASE WHEN attribute_name LIKE 'issuer%' THEN attribute_value END)...
October 12, 2016 at 7:32 am
Viewing 15 posts - 2,041 through 2,055 (of 8,731 total)