PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Stephen dot Sprague at MorganStanley dot com
Subject: blk_drop
Date: Mar 2 2002 10:45PM

Getting the error below on blk_drop. The obvious must  be  avoiding  me.
What am I doing wrong? I'm using 2.14 of Sybase::CTlib

code:
  use Sybase::CTlib;
  my ( $u, $p, $s, $a ) = qw/user pwd server app/;
  $dbh = Sybase::CTlib->new( $u, $p, $s, $a . '_T', { CON_PROPS => { CS_BULK_LOGIN => CS_TRUE } } );
  $dbh->blk_init( 'db..table', 1, undef, undef );
  $dbh->blk_drop();

error:
  Open Client Message:
  Message number: LAYER = (0) ORIGIN = (0) SEVERITY = (0) NUMBER = (0)
  Message String: STATE EVENT: blk layer: user error: Cannot call API blkdrop() from this state: initialized

Thanks,
Stephen Sprague