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 > Sybase > bcp issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-21-03, 16:41
Ova Ova is offline
Registered User
 
Join Date: Jan 2003
Posts: 21
bcp issue

I am trying to bcp the syslogins from a 12.0.0.7 ASE server to a 12.5 ASE server.

I am using the following command:
bcp master..syslogins in file.txt -c -b1 -Usa -P

I am getting the error:
cs_convert: cslib user api layer: common library error: The conversion/operation was stopped due to a syntax error in the source field.

Why does this happen and what is the fix?

Thanks,
O
Reply With Quote
  #2 (permalink)  
Old 03-22-03, 05:12
osy45 osy45 is offline
Registered User
 
Join Date: Nov 2002
Posts: 833
the table syslogins has changed within 12.5
you have to use a fmt file

I have done it the following way

bcp out with 12.0 fmt file
bcp in with 12.0 fmt file into a tmp table and then

insert into syslogins .... as select .... from tmp_syslogins
Reply With Quote
  #3 (permalink)  
Old 03-22-03, 12:56
Ova Ova is offline
Registered User
 
Join Date: Jan 2003
Posts: 21
Thank you.
I will try this Monday.


O.
Reply With Quote
Reply

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