http://qs321.pair.com?node_id=665080


in reply to opening a database file

I don't know if plain DBD::ODBC will work against a SQL Anywhere database, in particular if the database license has expired.

You might want to try DBD::ASAny which is specifically written to access SQL Anywhere databases (though I suspect that the license issue is going to be the real problem here...)

Michael

Replies are listed 'Best First'.
Re^2: opening a database file
by grashoper (Monk) on Jan 30, 2008 at 21:28 UTC
    I may have to give up on this one, here is attempt number 2.
    !/usr/local/bin/perl -w # use DBIx::AnyDBD; use strict; my $db=DBIx::AnyDBD->connect("dbi:Sybase:$database","dba","sql"); my $database = "FirstAm.bdb"; my $data_source = "DBI:AnyDBD:$database"; my $username = "UID=dba;PWD=sql;ENG="Foc_SageNet"; my $dbh = DBI->connect( $data_source, $username, '' ); or die "Can't connect to $data_source: $dbh->errstr\n"; $dbh->disconnect; exit(0);
      Errr.... just posting the code without any results or error messages won't really be any use - we can't guess what is broken.

      However, I'm pretty sure that you can re-download and re-install an eval version of SQL Anywhere, and then open the db file that way.

      Michael