Re: Simple Bulk Insert
From: Uri Dimant (urid_at_iscar.co.il)
Date: 09/20/04
- Next message: Wayne Snyder: "Re: Simple Bulk Insert"
- Previous message: Prabhat: "Re: Bulk Insert With Identity Field"
- In reply to: Prabhat: "Simple Bulk Insert"
- Next in thread: Prabhat: "Re: Simple Bulk Insert"
- Reply: Prabhat: "Re: Simple Bulk Insert"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Sep 2004 14:57:21 +0200
Try
BULK INSERT dbo.tb FROM 'd:\txt.txt' WITH (FIELDTERMINATOR = '","')
"Prabhat" <not_a_mail@hotmail.com> wrote in message
news:%23z6uOYwnEHA.1152@TK2MSFTNGP10.phx.gbl...
> Hi All,
>
> I have one TEXT (Source file = D:\V090804.TXT) file which I want to Bulk
> Insert into SQL Table (Table Name = PLEDGEFILE) of Same Structure.
>
> The text file has Data like:
>
> "I","0406927277","MR","EUGENE","JUNGBLUTH"
> "I","0401111111","MRS","PAULA","DICESARE"
>
> and My Bulk Insert Statement like:
>
> BULK INSERT PLEDGEFILE FROM 'D:\V090804.TXT'
> WITH (FIRSTROW = 1, FIELDTERMINATOR = ',', ROWTERMINATOR = '\n')
>
> But this is Not working. I think it is treating "I" as value for 1st
Column
> [Including "" = Double Quotes.] while My field length is 1 for 1st column.
I
> Don't want the Double Quotes. I want Only the VALUE.
>
> Please Suggest How do I Bulk Insert Only Values - Excluding the double
> Quotes.
>
> Thanks
> Prabhat
>
>
>
>
- Next message: Wayne Snyder: "Re: Simple Bulk Insert"
- Previous message: Prabhat: "Re: Bulk Insert With Identity Field"
- In reply to: Prabhat: "Simple Bulk Insert"
- Next in thread: Prabhat: "Re: Simple Bulk Insert"
- Reply: Prabhat: "Re: Simple Bulk Insert"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|