import text file to SQL

  • hi,

    I want to import data form text file to SQL. The data contain character which is supposed to be numeric in SQL table. Error conversion appears when the data contain minus (-) sign in the behind.

    (ex. 9999.99-)

    can someone help me ?

    thanks,

  • You could BCP into a staging table as varchar, do some substringing to remove the (-) sign and import into the final table.

    If DTS is an option, you could use ActiveX scripting to remove the (-) sign before loading into your table.


    Joseph

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply