Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a few perl programs which use Sybase::DBlib and Sybase::CTlib to connecto to Sybase 12.5 databases. The Sybase databases have been migrated to SQL Server 2008(R2), so I have to change the perl programs to connect to the SQL Server databases.
I'm trying to use FreeTDS to do that as it supports TDS protocol 8 (which is same as the one used by SQL Server). I have got FreeTDS installed (as mentioned by this node in perlmonks: http://www.perlmonks.org/?node_id=392385) and made required changes to the freetds.conf. This node also mentions compiling of DBD::Sybase after exporting the LD_LIBRARY_PATH and SYBASE to the freetds installation paths.
Since I already have Sybase::CTlib and Sybase::CTlib installed, should I recompile them after exporting the LD_LIBRARY_PATH and SYBASE to point to freetds paths? (Posted the same question on the above node too, sorry for the double post)
Another question: The perl libraries are compiled as 32 bit and FreeTDS libraries are compiled as 64 bit. Will this be an issue? For example this is what I see when I run a 'file' command on:
and$ file /opt/perl-5.6.1/lib/site_perl/5.6.1/i686-linux/auto/Sybase/DBli +b/DBlib.so /opt/perl-5.6.1/lib/site_perl/5.6.1/i686-linux/auto/Sybase/DBlib/DBlib +.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not + stripped
$ file /opt/sqlserver/client/freetds/0.82-1/lib/libsybdb.so.5.0.0 /opt/sqlserver/client/freetds/0.82-1/lib/libsybdb.so.5.0.0: ELF 64-bit + LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
Some other details - freetds version: 0.82-1, perl version: 5.6.1, SQL Server: 2008 R2, OS: Linux 2.6
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Accessing sql server from perl using dblib/ctlib and freetds
by Anonyrnous Monk (Hermit) on Dec 16, 2010 at 20:47 UTC | |
by Anonymous Monk on Dec 20, 2010 at 15:14 UTC | |
Re: Accessing sql server from perl using dblib/ctlib and freetds
by Anonymous Monk on Dec 20, 2010 at 15:18 UTC | |
by Anonyrnous Monk (Hermit) on Dec 20, 2010 at 16:37 UTC | |
by Anonymous Monk on Dec 21, 2010 at 19:02 UTC | |
by mpeppler (Vicar) on Jan 20, 2011 at 10:04 UTC |