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 > load table problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-11, 05:12
neptune neptune is offline
Registered User
 
Join Date: Apr 2011
Posts: 2
Cool load table problem

hi
when i run the load script from sybase. it works perfectly fine and loads 10 rows. but when i load sybase table from unix 0 rows affected. pls let me know wats to be done.
LOAD TABLE table_acct(
ACCT_TYP_CODE ASCII(10),
ACCT_TYP_ID_CODE ASCII(3),
DESC_TEXT ASCII(60),
ACCT_UNIT_CODE ASCII(5),
UPD_DATE ASCII(8),
MIS_DATE ASCII(8)
)
from '/dir1/file1.txt'
format ascii
skip 1
row delimited by '\n'
escapes off;

the unix script i use is
isql -Ublah -Pblah -Sblah -Dblah <<EOF
> LOAD table_acct
> (
> ACCT_TYP_CODE ASCII(10),
> ACCT_TYP_ID_CODE ASCII(3),
> DESC_TEXT ASCII(60),
> ACCT_UNIT_CODE ASCII(5),
> UPD_DATE ASCII(8),
> MIS_DATE ASCII(8)
> )
> from '/dir1/file1.txt'
> format ascii
> skip 1
> row delimited by '\n'
> escapes off
> go
> EOF
(0 rows affected)
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