Operating System - HP-UX
1753878 Members
7339 Online
108809 Solutions
New Discussion юеВ

Re: Need Help Accessing DATA

 
Kebede Johnson
New Member

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
advance.

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

Re: Need Help Accessing DATA

Hi

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]

Andreas
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 http://www.ascentialsoftware.com/ a call, they do this.

Or write the data movement in perl!

live free or die
harry

Live Free or Die