Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Weird BCP Issue

 
   Database Help (Home) -> Tools RSS
Next:  SQL Server 2008 Standard Edition on windows XP  
Author Message
Steve Barker

External


Since: Dec 22, 2008
Posts: 3



(Msg. 1) Posted: Mon Dec 22, 2008 8:31 am
Post subject: Weird BCP Issue
Archived from groups: microsoft>public>sqlserver>tools (more info?)

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.

 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Russell Fields

External


Since: Jan 10, 2008
Posts: 608



(Msg. 2) Posted: Mon Dec 22, 2008 4:34 pm
Post subject: Re: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" wrote in message

> 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.

 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Mark Han[MSFT]

External


Since: Aug 15, 2008
Posts: 102



(Msg. 3) Posted: Tue Dec 23, 2008 1:25 am
Post subject: RE: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Steve,

Thank you for using the Microsoft MSDN Managed Newsgroup. My name is Mark
Han. I am delighted to work with you on this issue.

From your description, I understand that after using BCP to input data from
CSV to SQL Server table, the first field begins with "n++".
Based on my experience, it is so strange. if the issue is related to the
type of the data, the first column data should all begin with "n++".
So to better understand the issue, if it is convenient to you, please send
me a sample of the CSV file and a sample of the table.

my email address is v-fathan.DeleteThis@online.microsoft.com(remove online). after
receiving your email, I will create a work space for you and then you can
upload the required files

If there are any additional questions or concerns, let me know.

Best regards,
Mark Han
Microsoft Online Community Support
===========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg.DeleteThis@microsoft.com.
===========================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx.
============================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Steve Barker

External


Since: Dec 22, 2008
Posts: 3



(Msg. 4) Posted: Tue Dec 23, 2008 3:39 am
Post subject: RE: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks very much for your reply. Yes, this is a weird one! I hope it doesn't
turn out to be something stupid that I've done!!!

I've emailed you the files so you can see if you can reproduce the bug.

Many thanks,

Steve.

"Mark Han[MSFT]" wrote:

> Hi Steve,
>
> Thank you for using the Microsoft MSDN Managed Newsgroup. My name is Mark
> Han. I am delighted to work with you on this issue.
>
> From your description, I understand that after using BCP to input data from
> CSV to SQL Server table, the first field begins with "n++".
> Based on my experience, it is so strange. if the issue is related to the
> type of the data, the first column data should all begin with "n++".
> So to better understand the issue, if it is convenient to you, please send
> me a sample of the CSV file and a sample of the table.
>
> my email address is v-fathan.DeleteThis@online.microsoft.com(remove online). after
> receiving your email, I will create a work space for you and then you can
> upload the required files
>
> If there are any additional questions or concerns, let me know.
>
> Best regards,
> Mark Han
> Microsoft Online Community Support
> ===========================================================
> Delighting our customers is our #1 priority. We welcome your
> comments and suggestions about how we can improve the
> support we provide to you. Please feel free to let my manager
> know what you think of the level of service provided. You can
> send feedback directly to my manager at: msdnmg.DeleteThis@microsoft.com.
> ===========================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
>
> Note: MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 2 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions. Issues of this
> nature are best handled working with a dedicated Microsoft Support Engineer
> by contacting Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx.
> ============================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> =========================================================
>
>
 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Mark Han[MSFT]

External


Since: Aug 15, 2008
Posts: 102



(Msg. 5) Posted: Mon Dec 29, 2008 2:25 am
Post subject: RE: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

I have re-produce the issue on my work machine. It seems to be a
known-issue.

For your convenience, I'm consulting with our dev team now. If updating
anything, I will send an email to you.

Besides, if it is convenient to you, could you please create a SSIS
package to copy the data from AgentData.csv to AgentData table. The issue
might not happen in the scenario.

Besides, about the SSIS package, there are serveral articles to share with
you:
SSIS package could be developed with SQL Server Business Intelligence
Development Studio. For your convenience, I would like to share some
general article with you:
How to: Create a Package Using SSIS Designer:
http://msdn.microsoft.com/en-us/library/ms141178(SQL.90).aspx
How to create a package template in SQL Server Business Intelligence
Development Studio: http://support.microsoft.com/kb/908018
SSIS Team Blog: http://blogs.msdn.com/mattm/
dtutil Utility:
http://msdn.microsoft.com/en-us/library/ms162820(SQL.90).aspx

Best regards,
Mark Han
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg.TakeThisOut@microsoft.com.
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Russell Fields

External


Since: Jan 10, 2008
Posts: 608



(Msg. 6) Posted: Mon Dec 29, 2008 8:59 am
Post subject: Re: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mark,

Is there a reference to the known issue? If so, I would like to read it.

RLF

"Mark Han[MSFT]" wrote in message

> Hi
>
> I have re-produce the issue on my work machine. It seems to be a
> known-issue.
>
> For your convenience, I'm consulting with our dev team now. If updating
> anything, I will send an email to you.
>
> Besides, if it is convenient to you, could you please create a SSIS
> package to copy the data from AgentData.csv to AgentData table. The issue
> might not happen in the scenario.
>
> Besides, about the SSIS package, there are serveral articles to share with
> you:
> SSIS package could be developed with SQL Server Business Intelligence
> Development Studio. For your convenience, I would like to share some
> general article with you:
> How to: Create a Package Using SSIS Designer:
> http://msdn.microsoft.com/en-us/library/ms141178(SQL.90).aspx
> How to create a package template in SQL Server Business Intelligence
> Development Studio: http://support.microsoft.com/kb/908018
> SSIS Team Blog: http://blogs.msdn.com/mattm/
> dtutil Utility:
> http://msdn.microsoft.com/en-us/library/ms162820(SQL.90).aspx
>
> Best regards,
> Mark Han
> Microsoft Online Community Support
> =========================================================
> Delighting our customers is our #1 priority. We welcome your
> comments and suggestions about how we can improve the
> support we provide to you. Please feel free to let my manager
> know what you think of the level of service provided. You can
> send feedback directly to my manager at: msdnmg.TakeThisOut@microsoft.com.
> =========================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> =========================================================
>
 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Mark Han[MSFT]

External


Since: Aug 15, 2008
Posts: 102



(Msg. 7) Posted: Mon Dec 29, 2008 11:26 pm
Post subject: Re: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi RLF,

Because of the holiday, I haven't got a update from our dev team. and if
our document team will public an artilce about the issue is based on a lot
of elements.
I will forward your requirement to them. if they send a feedback to me, i
will public it as soon as possible.

Thanks.


Best regards,
Mark Han
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg RemoveThis @microsoft.com.
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Steve Barker

External


Since: Dec 22, 2008
Posts: 3



(Msg. 8) Posted: Tue Jan 06, 2009 2:05 am
Post subject: Re: Weird BCP Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, please keep me in the loop with what happens with this, as we are going
to need a fix at some point soon.

Many thanks,

Steve.

"Mark Han[MSFT]" wrote:

> Hi RLF,
>
> Because of the holiday, I haven't got a update from our dev team. and if
> our document team will public an artilce about the issue is based on a lot
> of elements.
> I will forward your requirement to them. if they send a feedback to me, i
> will public it as soon as possible.
>
> Thanks.
>
>
> Best regards,
> Mark Han
> Microsoft Online Community Support
> =========================================================
> Delighting our customers is our #1 priority. We welcome your
> comments and suggestions about how we can improve the
> support we provide to you. Please feel free to let my manager
> know what you think of the level of service provided. You can
> send feedback directly to my manager at: msdnmg.TakeThisOut@microsoft.com.
> =========================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> =========================================================
>
>
 >> Stay informed about: Weird BCP Issue 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL 2005 Shrink issue - Hi, We have a SQL 2005 DB which has a .ldf file of around 10GB...so it needs shrinking!! I've tried a shrink from the management tools but nothing actually happens. This is probably due to the fact the DB is set as Full recovery mode. Without having...

Issue with date move from Sql 6.5 to Sql 2000 using bcp - Hi, My apologies if this question is not suitable to be posted here.. We are facing an issue while moving a Sql 6.5 database to a Sql 2000 server using bcp out/bcp in. We have moved several databases from Sql 6.5 to Sql 2000 earlier by scripting out an...

[MS Design Tools] - Class Not Registered - On a Windows 2000 pro workstation I am using SQL 2000 enterprise manager I am trying to return all rows, I get the error message "An unexpected error happened during this operation. [MS Design Tools] - Class not registered." I have reinstalle...

Exporting ToExcel file - Hi, I have a SP that adds an Excel file as a linked server, then tries to send the result of a query into this file. I get the following error : ------------ OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. Authentication failed. Insert..

Importing MS Access queries and relationships to MS SQL Se.. - Dear fellow programmers, I am having a big problem on how to import queries and relationships from MS Access to SQL Server. Any suggestions will be a great help & will be appreciated. Thanks in advance, Jeri
   Database Help (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]