Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bizzare Transformation "non-error"

Status
Not open for further replies.

RemyS

Technical User
Jul 3, 2001
100
GB
I am importing a Fixed Field .txt file into a SQL table.

One of the fields is 12 characters long begining with 2 alpha characters; 'AB1234567890'
However sometimes this can be 9 characters long of only numeric, preceded by blank spaces; ' 123456789'

This field is transfered to a field Varchar(12)

My DTS transformation copies the 12 character values, no problems,

but it omits the whole row where the value is 9 characters preceded by spaces, and doesn't produce an error.

I have tried all maner of Script conversions; Cstr, Trim, even replacing the spaces with bogus alpha-numeric characters.

I will probably have to write a script to import those few rows separately, but I'm curious to know why the error is happening in the first place.
[hammer]

Most appreciated if anyone can shed any light.
Remy

Hundreds of ways to do things with PC's, and learning new ways every day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top