If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Bcp Issue "Attempt to convert data stopped by syntax error in source field."

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-11, 15:50
awahidt3 awahidt3 is offline
Registered User
 
Join Date: Feb 2011
Posts: 9
Question Bcp Issue "Attempt to convert data stopped by syntax error in source field."

As part of a data tranfer from Sybase 15 to SQL server 2005 I am exporting .txt files using bcp command on Linux. During the process, some of the float fields with small decimals appear in scientific notation in the .txt file. When using the .txt file as the source of input for a freeBCP into the receiving server, BCP fails on the sci note with error message "Attempt to convert data stopped by syntax error in source field.". Does anyone know of a way,to get BCP to convert the sci note to float.
I tried exporting data with bcp -c, bcp -n, bcp -a, but float is still getting converting into scientific form.

I guess there is some setting that needs to be done either on Sybase or on Linux to force bcp to avoid converting float values in scientific format.

Earnestly request you to Please help me.

Many Thanks.

Best Regards,
Abdul Wahid
Reply With Quote
Reply

Tags
bcp, freebcp, sql server 2005, sybase, sybase ase

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On