Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Using Sybase::BCP ~ getting NULL values

by runrig (Abbot)
on May 06, 2016 at 20:53 UTC ( #1162390=note: print w/replies, xml ) Need Help??


in reply to Using Sybase::BCP ~ getting NULL values

Plugging relatively new library DBIx::BulkUtil, which is among other things a wrapper around Sybase bcp, Oracle sqlldr, and SybaseIQ "LOAD TABLE":
my ($dbh, $dbu) = DBIx::BulkUtil->syb_connect( Server => $server, Database => $database, User => $user, Password => $pw, ); # Default is "|" column, "\n" row delimiter $dbu->bcp_in($table, $file);
Columns in the file are assumed to be in the same order as the table, but that can be overridden.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1162390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2019-04-25 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (127 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!