Viewing 15 posts - 5,746 through 5,760 (of 15,381 total)
You are quite welcome. Glad that worked for you.
If possible, can you post what worked you so that others who may stumble across this thread can see a working solution?
February 6, 2014 at 11:24 am
Another option would be to use Dwain Camps' pattern based splitter.
http://www.sqlservercentral.com/articles/String+Manipulation/94365/%5B/url%5D
select *
from dbo.PatternSplitCM('test1##test2##test3', '%#%')
where Matched = 0
February 6, 2014 at 11:22 am
vikramchander90 (2/6/2014)
I have a variable of 40 characters length which contains a complete string. I need to split the string based on pattern
For example i...
February 6, 2014 at 11:16 am
MinhTuCSharper (2/6/2014)
February 6, 2014 at 11:10 am
marcipesa (2/6/2014)
something like this?:
Yeah something like that. Notice the looping, this is a performance killer in sql. You have the added complexity of a number of value sets to use....
February 6, 2014 at 10:34 am
What you are describing sounds a lot like the classic bin packing problem. http://en.wikipedia.org/wiki/Bin_packing_problem
The reason you couldn't figure this out is because it is incredibly difficult. You have to try...
February 6, 2014 at 9:36 am
Ouch. An 800 million row heap?
Given that amount of data and that performance is going to be painful here is one idea.
Do a select distinct into a new table. Then...
February 6, 2014 at 8:52 am
Ed Wagner (2/6/2014)
SQLRNNR (2/6/2014)
BWFC (2/6/2014)
SQLRNNR (2/6/2014)
Kurt W. Zimmerman (2/6/2014)
BWFC (2/6/2014)
Ed Wagner (2/6/2014)
L' Eomot Inversé (2/6/2014)
BWFC (2/6/2014)
AnimatedCartoon
Bugs
Bunny
Fudd (Elmer J)
Wabbit
Won...wabbit, won wabbit, won, won, won 🙂
Kill the wabbit
It's wabbit season
Duck Season!!
February 6, 2014 at 8:04 am
Alex Grinberg-230981 (2/6/2014)
February 6, 2014 at 7:49 am
Just run the same query but comment out the where clause in the base part of the rCTE.
WITH rCTE AS(
SELECT CAST( CAST( ParentID AS varchar(10))+ '/' + CAST( ChildID ...
February 6, 2014 at 7:45 am
Did you execute a USE statement in SSMS? I have seen many times where that seems to totally confuse intellisense. If however, you use the combobox at the top it...
February 6, 2014 at 7:42 am
David McKinney (2/6/2014)
I find the criticism somewhat harsh. Am I alone in thinking that articles don't have to be exhaustive? I...
February 6, 2014 at 7:40 am
Phil Parkin (2/6/2014)
Out of interest, how did you get 329 points here without posting anything?
QOTD probably.
February 6, 2014 at 7:22 am
Dwain you hit both things I was thinking myself.
To be fair there are two splitters posted. The first is the looping version. The second one is inside the usp_DelimitedString...
February 5, 2014 at 11:04 pm
louie_vuittion (2/5/2014)
Not everybody is good at math.
Reported as spam.
February 5, 2014 at 5:45 pm
Viewing 15 posts - 5,746 through 5,760 (of 15,381 total)