July 10, 2012 at 9:11 am
Hello,
I'm using BULK INSERT to laod a comma delimited file into a SQL table. I only need a number of columns and want to ignore the rest.
Any clues how to do that ?
Thank you
July 10, 2012 at 3:07 pm
BULK INSERT supports the use of a format file. See the FORMATFILE option: BULK INSERT
Depending on what you meant:
Using a Format File to Skip a Data Field
or
Using a Format File to Skip a Table Column
edit: updated links to point to SQL 2005 docs
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 16, 2012 at 12:39 pm
Thank you !!!!!!!!!!!!!!!
July 16, 2012 at 12:55 pm
You're welcome 🙂
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply