Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Using Sybase::BCP ~ getting NULL values

by runrig (Abbot)
on May 06, 2016 at 20:53 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1162390]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-18 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found