Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Sybase::BCP

Status
Not open for further replies.

mmatchyn

Programmer
May 26, 2009
3
US
I am trying to bulk insert the text file input.txt into a table on sql server. I am using Perl.

Here is the code:

use Sybase::BCP;
my $bcp;

eval {
$bcp = new Sybase::BCP ($user, $passwd,"$ip:$port") || die "error\n";
};

if ($@) {
print "Error $@\n";
}
$bcp->config(INPUT => 'input.txt',
OUTPUT => 'urlwarehouse.dbo.TEMP_STR_UHA',
SEPARATOR => '\t');
$bcp->run;

This is the errors I receive:

DB-Library error:
Unexpected EOF from the server
Operating-system error:
Operation now in progress
DB-Library error:
Adaptive Server connection failed
Operating-system error:
Success
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top