Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

Need Help Accessing DATA

Kebede Johnson
Occasional Visitor

Need Help Accessing DATA

Hey guys,
I am new to the unix world. I have done some programming on the Unix environment years ago(when at school). I have a client who has this issue. They have acquired some company and apparently there is a HP-UX machine that has a sybase database running on it. They want to extract the data from this sybase database but don't how to do it. They haven't been able to give me much information either for they are not technical at all. I looked for some books on Sybase at my local bookstores but couldn't find any. My question is how do I go about doing this? Is the database management done from the command line or is there some type of interface for the database? If you guys can give me some pointers and also know of any useful source online, I would appreciate it. Thanks in

P.S I am mainly a microsoft developer and work a lot with SQL server.
Andreas D. Skjervold
Honored Contributor

Re: Need Help Accessing DATA


I'm primarly Oracle but have done some Sybase, and the command line tool you'll need is "bcp" (bulk copy) which copys tables in or out to text files.
Not to sure about the syntax but command help:
roma==>Sybase12 41: bcp
usage: bcp [[database_name.]owner.]table_name[:slice_number] {in | out} datafile
[-m maxerrors] [-f formatfile] [-e errfile]
[-F firstrow] [-L lastrow] [-b batchsize]
[-n] [-c] [-t field_terminator] [-r row_terminator]
[-U username] [-P password] [-I interfaces_file] [-S server]
[-a display_charset] [-q datafile_charset] [-z language] [-v]
[-A packet size] [-J client character set]
[-T text or image size] [-E] [-g id_start_value] [-N] [-X]
[-M LabelName LabelValue] [-labeled]
[-K keytab_file] [-R remote_server_principal]
[-V [security_options]] [-Z security_mechanism] [-Q]

Only by ignoring what everyone think is important, can you be aware of what everyone ignores!
harry d brown jr
Honored Contributor

Re: Need Help Accessing DATA

have them give a call, they do this.

Or write the data movement in perl!

live free or die

Live Free or Die