Hi,
I have a database of about 12,000,000 rows and on one particular field I have a need to remove all spaces from the left, right and middle of the string. I've used LTrim and RTrim to complete the first bit however i'm having trouble removing the spaces from the middle of the string, I can see how to do it in VB by looping through each record removing the space and updating the DB but with 12,000,000 rows this is going to take too long.
Is there anyway I can do this in a stored procedure or in DTS (I am a complete novice with DTS by the way!)
Thanks all in advance for you help
Dazzer
I have a database of about 12,000,000 rows and on one particular field I have a need to remove all spaces from the left, right and middle of the string. I've used LTrim and RTrim to complete the first bit however i'm having trouble removing the spaces from the middle of the string, I can see how to do it in VB by looping through each record removing the space and updating the DB but with 12,000,000 rows this is going to take too long.
Is there anyway I can do this in a stored procedure or in DTS (I am a complete novice with DTS by the way!)
Thanks all in advance for you help
Dazzer