November 21, 2003 at 12:22 pm
How do you do it in SQL Analyzer?
i.e. I have a string that could contain 'TWC123456' or 'TWC 123456' or even 'TWC1234567' (length of number portion is not constant). How can I parse it and/or remove space in middle?
Thanks!
November 21, 2003 at 12:36 pm
there's several of string manipulation functions in SQL online help. I'm no expert on them all but the replace function would work.
November 21, 2003 at 12:37 pm
Yes, REPLACE(your_string, ' ', '') should work
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
November 21, 2003 at 1:07 pm
Thanks guys! Works beautifully.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy