Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Location
    Los Angeles
    Posts
    16

    Unanswered: Leading blanks, 1 million records

    I"m sure this has been asked a million times before, but I searched and could not find...

    How do I remove leading blanks from all text fields in a large table (close to 1 million records). I tried Find/Replace in Datasheet View and it either takes forever or hangs up (did not have the patience to find out). My best shot so far: export the table as comma delimited text, making sure to NOT use " for text delimiter, then re-import. Takes a while (few minutes). Surely there's a more L.E. Gant solution?

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    UPDATE yourTable
    SET yourField = LTRIM(yourField)

Posting Permissions

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