Results 1 to 2 of 2

Thread: Non Alphabetic Characters

  1. #1
    Join Date
    Sep 2002
    Posts
    218

    Non Alphabetic Characters

    Is there a better way of removing the non alphabetic Characters In a name
    And spaces sometimes double or plus. I'm doing it the long way.

    Select
    Ltrim(Rtrim(Replace
    (Replace
    (Replace
    (Replace
    (Replace
    (Replace
    (Replace
    (Replace
    (Replace
    (Replace(Replace(Replace(Replace(Replace(Replace(R eplace(Convert(Varchar(30),a.LastName),
    '( ',''),')',''),' ',''),'.',''),'[',''),']',''),'/',''),
    '(',''),';',''),',',''),'-',''),'*',''),',',''),'~',''),'''''''',''),'`','') )) As LastName
    from test


    2. Are They any articles on batch processing with commits that have been written

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    I suggest, you to create a user defined function to do this instead of using replace function multiple times. It is not efficient.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •