|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Removing words and spaces using DTS
I have a table of addresses I need to import each month and under the 'County' Column the word County or Burrough follows each county name. Ex 'Baltimore County', 'Washington County', 'Davis Burrough' etc.
Using DTS is there a way to remove the space and County(Burrough) following each county name? I've tried using the trim feature but that only seems the Trim the White Space. Thanks for any help you can offer. |
|
#2
|
|||
|
|||
|
I did it!
I used the following code successfully:
UPDATE TableName SET County = (REPLACE(REPLACE(County,' County',''),' Borough','')) GO |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Removing words and spaces using DTS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|