Viewing 15 posts - 1,951 through 1,965 (of 3,957 total)
Thanks very much Paul for the detailed answer.
I'll need to spend some time working through it to make sure that I understand it all.
February 13, 2013 at 1:16 am
Something like this perhaps?
DECLARE @Item TABLE (ID INT, [HierarchyId] INT)
INSERT INTO @Item SELECT 1,103 UNION ALL SELECT 2,104
DECLARE @Hierarchy TABLE ([HierarchyID] INT, Name VARCHAR(5), ParentHierarchyId INT)
INSERT INTO...
February 12, 2013 at 10:33 pm
Colin,
Congratulations on getting the attention so quickly of the master of bin-packing (Hugo Kornelis). I am but a shadowy, wannabe player in this space.
Nonetheless, I shall attempt to contribute...
February 12, 2013 at 10:12 pm
With 48 points to your credit, I'd think you should know that the forum helpers would be much obliged if you could provide DDL and consumable sample data like this:
CREATE...
February 12, 2013 at 8:43 pm
Glad you liked the response and the fish! 😀
February 12, 2013 at 8:30 pm
newbie2 (2/12/2013)
SELECT MyAddress, MyAddress as [address1], [address2]=LEFT([address2], CHARINDEX(' ', [address2])-1)
FROM MyTable
-- Remove...
February 12, 2013 at 8:11 pm
Lowell's approach will be faster but here's one that is universal:
February 12, 2013 at 8:03 pm
You could use this approach to format the digits groupings:
February 12, 2013 at 8:01 pm
Perhaps something like this?
WITH MyData ([address]) AS (
SELECT '1 north main st'
UNION ALL SELECT '12 main street'
UNION ALL...
February 12, 2013 at 6:27 pm
I believe this article by Jeff Moden is exactly what you need:
February 12, 2013 at 6:13 pm
As you're new to SSC, I'd like to suggest that to get better and faster help, it helps your helpers if you'll post DDL and consumable sample data like this:
CREATE...
February 12, 2013 at 6:08 pm
Steve Jones - SSC Editor (2/12/2013)
dwain.c (2/10/2013)
SQLRNNR (2/10/2013)
L' Eomot Inversé (2/8/2013)
Lynn Pettis (2/8/2013)
Revenant (2/8/2013)
Lynn Pettis (2/8/2013)
Am I (shudder) an idiot?No. Is there anything that make you think you are?
🙂
Not really,...
February 12, 2013 at 5:56 pm
Paul White (2/12/2013)
dwain.c (2/11/2013)
I found that applying a built-in function to the string to be split in the DelimitedSplit8K function's call has adverse performance effects.
If you look closely at the...
February 12, 2013 at 5:54 pm
Sean Lange (2/12/2013)
February 12, 2013 at 5:49 pm
Sean Lange (2/12/2013)
ahpitre (2/12/2013)
February 12, 2013 at 5:35 pm
Viewing 15 posts - 1,951 through 1,965 (of 3,957 total)