Viewing 9 posts - 1 through 9 (of 9 total)
Hi Jeff, I'm having the same xp_cmdshell issues. By any chance can you post your script?
Thanks
January 4, 2016 at 2:23 pm
Did you ever figure out what caused this? I am having the same issue.
March 17, 2014 at 2:15 pm
I was thinking the same thing, but could not get the CHARINDEX to work, so I added the space then trimmed it off. Works fine now.
SELECT MyAddress, address1, address2=RTRIM(LEFT(address2, CHARINDEX('...
February 12, 2013 at 8:26 pm
Yes, that looks much cleaner. Unfortunately I can't seem to get it to translate to my data:
SELECT MyAddress, MyAddress as [address1], [address2]=LEFT([address2], CHARINDEX(' ', [address2])-1)
FROM MyTable
-- Remove extra...
February 12, 2013 at 7:55 pm
Thanks for the quick response, but that's a little more complicated than I was hoping for. I thought maybe using CHARINDEX and SUBSTRING might do it.
February 12, 2013 at 3:51 pm
I tried that, but it does not seem to work when the amount of spaces vary, for example one column may be '1 north main st' and I need to...
February 12, 2013 at 2:52 pm
Is there a way to get the first two? For instance I need to pull out 'aabbbb' from 'aa bbbb c ddd ee'. The lengths and the number of spaces...
February 12, 2013 at 2:21 pm
Thank you all for your help!
September 24, 2012 at 2:25 pm
So your saying that this code still produces the same result in with the same efficiency? (I took out another join and moved it to the where clause)
INSERT INTO Table5...
September 24, 2012 at 8:16 am
Viewing 9 posts - 1 through 9 (of 9 total)