Dunno about within the BULK INSERT statement, but if you use DTS, you
can basically write VBscript that did that.

Darryl

On 04/01/07, Chris Ellem <[EMAIL PROTECTED]> wrote:

Does anyone know of a way to auto truncate a column in a csv file of
say length char(50), into a table column that is char(40) in a SQL
Server database?

BULK INSERT    targetTable
FROM               'c;\temp\target.csv'
WITH                (fieldterminator = ',')


Is it possible?

Yes, already suggested that the give it to me correctly in the
csv......

Regards
Chris


>



--

Darryl
http://www.acheron.org/darryl/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to