dbTalk Databases Forums  

Weird BCP Issue

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Weird BCP Issue in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Barker
 
Posts: n/a

Default Weird BCP Issue - 12-22-2008 , 10:31 AM






Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.

Reply With Quote
  #2  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM






Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #3  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #4  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #5  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #6  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #7  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #8  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #9  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
  #10  
Old   
Russell Fields
 
Posts: n/a

Default Re: Weird BCP Issue - 12-22-2008 , 03:34 PM



Steve,

Weird response. I have seen unexpected Unicode values expand to 3 ANSI
characters in an OSQL script when the Unicode character is in a non-Unicode
script file. (A file without the leading 0xFFFE.)

(It doubtless depends upon the character and I do not fully understand what
is going one.)

Can you view your input file with a HEX editor and see if there is 1
(possibly invisible) character at the start of your file?

Definitely only FWIW,
RLF

"Steve Barker" <steve_barker (AT) nospam (DOT) nospam> wrote

Quote:
Hi guys,

I'm using BCP to import a CSV file into a database table, using the
following command:

BCP [Database].dbo.[Table] in "[CSV File]" -e "[Error
File]" -T -c -t, -r\r\n

The import is working, but once imported, the first column of the first
row
in the table begins with "n++". Very strange! I'm guessing this is an
encoding issue. Has anyone seen this before, and does anyone have any
suggestions how I can solve this?

Many thanks,

Steve.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.