Re: Bulk Insert for data with quotes
From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 09/29/04
- Next message: Allan Mitchell: "Re: Naming DTS tasks at a "Deeper" level"
- Previous message: Ron: "DTS pkg only runs once in my app?"
- In reply to: Mark: "RE: Bulk Insert for data with quotes"
- Next in thread: Mark: "Re: Bulk Insert for data with quotes"
- Reply: Mark: "Re: Bulk Insert for data with quotes"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Sep 2004 20:32:10 +0100
No you cannot use REPLACE in the BULK INSERT. You would have to issue the
statement after import.
-- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.Konesans.com "Mark" <Mark@discussions.microsoft.com> wrote in message news:4185CF0F-A7DA-4F11-9AD4-BC90BF7B4576@microsoft.com... > Thanks for your reply. > 1. I have tried the format file and given the double quotes as the text > qulaifier but it still doesnt work. > 2. How do I use the REPLACE() ? Can it be used in Bulk inserts? > thanks > Mark > > "Allan Mitchell" wrote: > >> You have a couple of options >> >> 1. Format file (Examples on Google) >> 2. Clear the " after the event using REPLACE() >> >> >> >> >> >-----Original Message----- >> >Hi >> >I am new to DTS, I use bulk insert to load a csv file >> which has all its >> >character (as opposed to numeric) data in double quotes. >> But the bulk insert >> >takes the data into the table along with the quotation >> marks. I know you can >> >do this easily in Transform Data Task, but for lot of >> records I want to use >> >bulk insert. How can I get bulk insert to recognise >> double quotes? >> >. >> > >>
- Next message: Allan Mitchell: "Re: Naming DTS tasks at a "Deeper" level"
- Previous message: Ron: "DTS pkg only runs once in my app?"
- In reply to: Mark: "RE: Bulk Insert for data with quotes"
- Next in thread: Mark: "Re: Bulk Insert for data with quotes"
- Reply: Mark: "Re: Bulk Insert for data with quotes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|