Results 1 to 3 of 3

Thread: Exporting Data

  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    USA
    Posts
    386
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am working on a fixed length file export. I have created a spec for the export with the field names, start position, and length. All the fields seem to be exporting in the correct position, but when I turn around and import the file using the same spec, I am getting some unusual results.

    One thing I see is that although I wish all the fields to be exported as text, some are exporting as numbers. I have looked at the spec in the MSysIMEXColumns table and it shows most as Datatype 10, which I seem to remember is text. There are three fields however that show either a 4 or 16 as datatype. I think these are Integer and Long.

    I have tried editing the table, but am not able to change these values. I do not see a place when building the spec to force a datatype, only the start position and length.


    How can I force this to be exported / imported as text rather than a number?


    Thanks
    Richard

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You can't edit MSysIMEXColumns directly, but you can use an update query to modify values in it.

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    USA
    Posts
    386
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That worked.


    Thanks
    Richard

Posting Permissions

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