connecting 5.8.3 Perl to ASE-12.5, connection successful, no dbh returned

From: Aeoric (aeoric_at_yahoo.co.uk)
Date: 05/17/04

  • Next message: Mathieu Barbeau: "RE: Question with DBI versus PERL"
    Date: Mon, 17 May 2004 10:46:16 +0100 (BST)
    To: dbi-users@perl.org
    
    

    I have installed the latest Perl from Activestate and
    (Personal) Sybase ASE 12.5 on WindowsXP, as well as the
    Sybase Client files and .dlls.

    On another part of the system we've managed to get Java
    (1.3.1) to connect and talk to Sybase, it seems the Perl
    ->Sybase connection is proving more tricky than expected.

    I've run ppm and installed both DBI and DBD::Sybase for
    Perl and used this code to connect :

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    use DBI;
    use DBD::Sybase;

    my $host = 'localhost';
    my $db = 'SYBSRV01';
    my $db_username = 'dev';
    my $db_password = 'dev';
    my $dsn = "dbi:Sybase:server=SYBSRV01";

    print "Before connect\n";

    $dbh = undef;
    $dbh = DBI->connect($dsn, $db_username, $db_password);

    print "Please print me, go on - be nice\n";

    # it never gets to this point

    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    Now - the Perl actually connects to Sybase, as I can
    see the connection using sp_who on Sybase - and as
    you would expect its "AWAITING COMMAND". But control
    is never passed back to Perl as no dbh (database
    handle) is returned, and the programs hangs at that
    point.

    I'm completely stumped as to why this might be, I've
    turned off (and even uninstalled ZoneAlarm in case
    there was any port protection) but no joy.

    Has anyone had this problem and solved it or could
    suggest anything I might do to further investigate
    this issue ?

    if so I'd be very grateful

    Thanks,

    aeoric@yahoo.co.uk

            
            
                    
    ____________________________________________________________
    Yahoo! Messenger - Communicate instantly..."Ping"
    your friends today! Download Messenger Now
    http://uk.messenger.yahoo.com/download/index.html


  • Next message: Mathieu Barbeau: "RE: Question with DBI versus PERL"

    Relevant Pages

    • Loading DBD::Sybase 1.08 On Windows 32 bits
      ... DBI to interface the Sybase database from the Apache Web Page. ... we have a new Microsoft Share Point server for the Portal ... Using ActivePerl from ActiveState I want to develop Perl code on ...
      (perl.dbi.users)
    • Loading DBD::Sybase 1.08 On Windows 32 bits
      ... DBI to interface the Sybase database from the Apache Web Page. ... we have a new Microsoft Share Point server for the Portal ... Using ActivePerl from ActiveState I want to develop Perl code on ...
      (perl.dbi.users)
    • Re: Perl / Sybase
      ... Excel and written some SQL queries. ... (we use Sybase) ... DBI is really *the* perl database interface. ... activestate's activeperl is probably the easiest to install on ...
      (comp.lang.perl.misc)
    • Re: 64bit Tcl/Tk loading 32bit extensions
      ... >> that you can do this in perl, but I'd certainly like to have this ... >> and I use sybtcl extensively, so I think I need to comile sybtcl as a ... Sybase servers, to be used in place of the standard Sybase libraries. ...
      (comp.lang.tcl)
    • Re: [PHP] Associative array issues with loading values after initialization
      ... while ($nex = next($list)) { ... global $dbh; ... $result = mysql_query("SELECT * FROM countries ORDER BY ... I know how to write this in perl but for some reason, when I write it in PHP it doesn't work. ...
      (php.general)