DTS import with dashes in source data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garzon
    New Member
    • Jun 2007
    • 3

    DTS import with dashes in source data

    I'm trying to import numbers from an excel spreadsheet into a SQL table using a DTS package. I'm getting null values imported when my source data contains a dash (-). The data type for the source is text, and the datatype for the destinations is varchar(100). I've also tried a source data type of general. I'm doing a straight copy.

    The source data might look 234-b87-456. Why would I be getting nulls when importing this data?

    Thanks.
    Stumped
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Did you check your transformation options and make sure that the columns line up correctly?

    Comment

    • garzon
      New Member
      • Jun 2007
      • 3

      #3
      I did. The column names in the source file are identical to the column names in the destinations table. I double-checked the mapping just to be sure all were correctly mapped.

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Try doing the same import but without the dashes in the columns.

        Comment

        • garzon
          New Member
          • Jun 2007
          • 3

          #5
          There are values within the same column that do not have dashes, and they import correctly. It is only the values with dashes that are not importing. All other values import correctly.

          Thanks.

          Comment

          Working...