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 > how to reformat the data in a format to bcp

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-09, 14:57
rxg rxg is offline
Registered User
 
Join Date: Oct 2009
Posts: 8
Question how to reformat the data in a format to bcp

hi

I have a file which is delimited by right curly bracket }.

i need to fetch only few column values and bcp those values into a table, and that table contains some columns whose values doesnot exist in the input file , for those columns , a default value is given based on the column name .

How can i reformat the data in a format to bcp into the table .

Pls help .
Reply With Quote
  #2 (permalink)  
Old 12-29-09, 17:04
pvvsnaveen pvvsnaveen is offline
Registered User
 
Join Date: Feb 2007
Location: India
Posts: 56
Once you bcp out the file with delimeter. Use awk command to rearrange the data. And then bcp into the table.
__________________
Regards,
Naveen.
Sybase DBA-Consultant
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

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