georgev
07-31-07, 12:38
| Hey peeps. We have a program that modify AD Users via information stored in a csv file and is well... Except when it comes to the streetAddress column. The data is being pulled from a table with the following structure Branch(BranchID, AddressLine1, AddressLine2, AddressLine3, City, PostCode) And the problem lies in putting all 3 address lines into AD separated by carriage returns. It's easy enough to produce something like "123 Fake Street, TestLand, Down South" but it's been requested that we separate it by carriage returns as well as commas... "123 Fake Street, TestLand, Down South" I've tried using escape characters (\OD \n \r \n/ etc) to no avail. Any suggestions are more than welcomed because I'm at a complete mental block on what to try next! It may be worth noting that when you export the data in CSV from this field, if there are no carriage returns then you get a lovely "123 Fake Streed, Testland, Down South" but a single carriage return sends the things something like this X'12324153414142' :mad: What can be done?! E-hugs for a solution ;) |