×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

MS SQL Server DTS Import

MS SQL Server DTS Import

MS SQL Server DTS Import

(OP)
I'm attempting to import a text file that can contain negative numbers into a SQL Server 2000 table via a DTS package.

My field is defined as numeric(9,2). The source data is formatted 123.99- Is there a way load it with the negative sign being at the end.

I know the load works when the negative sign is in front, -123.99. However; I have little control on the formatting because my source file is from an outside vendor.

Any help is appreciated.

RE: MS SQL Server DTS Import

only thing I can think of is a script to move the - to the front.

RE: MS SQL Server DTS Import

(OP)
MDXer - kind of what I was thinking also.

Thanks

RE: MS SQL Server DTS Import

I am probably too late on this response, but...

When I load data via DTS into a SQL table, I load it into all CHAR columns. This becomes my staging table, and I can guarantee that all data gets loaded, valid or not. Using this approach, you could load the trailing sign into its own column and use it to determine the numeric load.

Hope that helps.    

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close