I had an issue in executing bcp command to connect to Sybase from Unix script for uploading the data from file to table.
I have a file called vrs_temp.txt (with two columns):
Created a table using isql command (with three columns - the third one should be null in database). Then used bcp command to insert the data:
1st Error:
by using the above command I have got the below error and it doesn't uploaded the date into table. 2nd Error:
The error I got was :
Could you please check and let me know the problem in the command.
Thanks.
Moderator's Comments:
Please use CODE tags - for data as well - as required by forum rules!
And, don't (over)use text colouring.
Last edited by RudiC; 10-02-2018 at 07:47 AM..
Reason: Added CODE tags.
Hi,
Good Morning everybody.
I need to write a perl script which will get some data from DB2 table and then put it into Sybase table. I have the experience in Oracle and Unix but new to these perl, DB2 and Sybase technologies.
Appreciate if any one can suggest with a sample code.
Thanks... (1 Reply)
how to upload system information(unix box) to MySql database's(running in another unix box) respective tables using a script only..i.e once script runs all the informations like hostid,hostna,disks,cpu etc get stored to respective tables of MySql database.... (2 Replies)
How to get the data from the sybase database and append the data obtained into the file.
For example,
I will get the filename 'temp' from the database. This filename is associated with the number 1.6... This number 1.6 needs to be copied into the file that matches the filename in the... (1 Reply)
How can I fetch and retreive data(of each result set) of multiple result set from sybase by calling a stored procedure using perl DBI module on an unix solaris environment?????
Please help (3 Replies)
To begin:
I use Linux
The Problem:
I need bcp functionality for scripts. Perl modules, such as Sybase:xfer, require ctlib which comes with Sybase Open Client. Talking with Sybase sales
reps is an exercise in futility and hate. They know absolutely nothing about their own products and will... (0 Replies)
Hi All,
I am trying to bcp in data file into database. now there is bcp command available in unix and another perl module Sybase::BCP is also available.
Can anyone please let me know if there is any limitations of bcp command in unix. whichever is good to use? (1 Reply)
I am trying to bcp in using sybase::bcp perl module. I can find we can give user, pwd and server name in the parameters.
How can I give database and table name? (1 Reply)
Hi,
When i execute a script in unix, the result i got is ::
./purgeErrors.ksh: bcp: not found
What is the meaning of that output ?
--- Aditya (9 Replies)
hi all,
Getting error while working on sybase::bcp as below,
DB-Library error:
Attempt to convert data stopped by syntax error in source field.
Code is like,
my $bcp_files = new Sybase::BCP $usr, $pass, $server;
---------- Post updated at 02:05 AM ---------- Previous update... (0 Replies)