Hello,
Im running crystal reports XI and SQL 2000.
I have a weekly XML file I recieve. I need to compare it to my database to find if any item numbers that are in the file are not in the database.
Unfortunatly the XML file has the item number text parsed as " 12345678" where in my SQL database, its "12345678" with no leading spaces. I cant link the two together on the database expert because they dont properly match.
The only solution i could find was to not create a link, and then in the record selection put:
trim({BELORDER.PART_NO}) = {INVENTTABLE.ITEMID}
To trim the one that has the leading spaces, however this goes through a huge amount of work. Is there any better way I can do this? i would really like to create the initial link with this. I dont want to have to format the XML file in a different way each time I recieve it.
thanks,
Andrew
Im running crystal reports XI and SQL 2000.
I have a weekly XML file I recieve. I need to compare it to my database to find if any item numbers that are in the file are not in the database.
Unfortunatly the XML file has the item number text parsed as " 12345678" where in my SQL database, its "12345678" with no leading spaces. I cant link the two together on the database expert because they dont properly match.
The only solution i could find was to not create a link, and then in the record selection put:
trim({BELORDER.PART_NO}) = {INVENTTABLE.ITEMID}
To trim the one that has the leading spaces, however this goes through a huge amount of work. Is there any better way I can do this? i would really like to create the initial link with this. I dont want to have to format the XML file in a different way each time I recieve it.
thanks,
Andrew