February 13, 2009 at 2:57 pm
Hello, i was wondering if it is possible to calculate a column while doing Bulk Insert. What I need to do is calculate the value of say column c in a table based on the first 3 characters in column a. Column c will not be part of the file being loaded. I do this in Oracle all the time using SQL*Loader control files. Can you do this using a Bulk Insert format file? Thank you.
Best Regards,
~David
February 13, 2009 at 9:01 pm
Note possible using Bulk Insert alone. Is possible if you use a calculated column on the target table and, maybe, a bcp format file... but a simple post-import update would be simple enough.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply