grashoper has asked for the wisdom of the Perl Monks concerning the following question:
I need to open a database file that was written using sybase sql anywhere, I am just stumped on how to go about this.
My database driver is running as a service the servername itself is focsage, the driver name is foc_sagenet, username should work with my network username, I have no idea what data this file contains, it was being used for asset management and whoops our free trial expired, the db has been locked out and attempts to open it so far have proven futile. here is my pathetic attempt so far to get this to work.
use DBI; # test connect to DB $server = "focsage"; $username = "medwards"; $password = "password"; #$schema = "User"; $query = "(1 = 1)"; my $dbh = DBI->connect('DBI:ODBC:$server','$username','$password') || +die $!;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: opening a database file
by Narveson (Chaplain) on Jan 29, 2008 at 23:24 UTC | |
Re: opening a database file
by mpeppler (Vicar) on Jan 30, 2008 at 07:42 UTC | |
by grashoper (Monk) on Jan 30, 2008 at 21:28 UTC | |
by mpeppler (Vicar) on Jan 31, 2008 at 07:33 UTC |
Back to
Seekers of Perl Wisdom