Viewing 15 posts - 47,746 through 47,760 (of 59,099 total)
If FName has no spaces, the CHARINDEX will return 0 and then you subtract 1 to make the operand of LEFT a negative number. You need to check for...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 8:44 pm
Max,
Can there be a 4th possibility or not?
RECID COL1 COL2 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 8:32 pm
Shree (10/14/2008)
Hi, I saw that article and tried but its not working. Its giving me null values.
What did you try? Please post the code and the data you tried...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 7:23 pm
TheSQLGuru (10/14/2008)
That site has a lot of really great stuff. Aaron Bertrand, IIRC.And I too think this is a presentation layer item. Or perhaps a CLR function??
I agree......
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 7:21 pm
Shree (10/14/2008)
Sorry, actually I posted in the wrong forum before. I didn’t find the option to delete the topic. Anyway Madhivanan helped me by giving me this article link.
That's a...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 7:16 pm
noeld (10/14/2008)
By this time I think the PO is not longer with us (no pun intended)
Heh, agreed. It's a shame, too. I would have liked to take a...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 7:06 pm
Dang... I gotta learn to read all the new posts before I reply...
Richard Fryar's fine solution is a dynamic solution that will work fine in SQL Server 2005.
Heh... if you...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 7:00 pm
jon.malenfant (10/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 6:57 pm
Charles Kincaid (10/14/2008)
It's practically impossible to meaningful queries as you have seen.
But, "practically" and "is" are two different things... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 6:55 pm
peter (9/30/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 6:41 pm
GF (10/14/2008)
I do have a question as I am trying to apply your solution to my needs.
I have hundreds of addresses in a single address...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 6:38 pm
Still, the code is doomed to be comparatively slow because of the loops. If we knew the actual problem this was supposed to solve, perhaps we could find a...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 5:26 am
rgillings,
Thanks for the feedback, I appreciate it. If you really want to get a handle on that particular logic, take a gander at the article in the link I...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 5:21 am
amit (10/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 5:15 am
Heh... this has been a lot of fun, but the funny thing about this whole thing is that people keep talking about everything except the original post.
Yes, I agree that...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2008 at 5:05 am
Viewing 15 posts - 47,746 through 47,760 (of 59,099 total)