Re: ODBC drivers for MSSQL

From: Craig A. Berry (craigberry_at_mac.com.spamfooler)
Date: 02/26/04


Date: Thu, 26 Feb 2004 14:51:43 GMT

In article <912b238d.0402252128.f88bc82@posting.google.com>,
 joseph_lamb@yahoo.com (Joseph Lamb) wrote:

> Is there a way to have a VMS box run a PERL script that queries a
> WIN2k MSSQL server?

There are at least two ways, and you may or may not need an ODBC driver
as your title implies. For Perl, you need to build and install the
extensions DBI and either DBD::Sybase or DBD::ODBC. These can be found
at <http://search.cpan.org>.

But before you do that, you need some primary building blocks. If you
want to go the ODBC route, you need both a driver manager and a
database-specific driver. As far as free driver managers, I recommend
unixODBC, which you can find at <http://www.unixodbc.org>. Despite the
name, it does work on VMS, though I think its current build script
needs some tweaking.

Then you need a driver that knows the tabular datastream protocol that
both Sybase and MS SQL Server speak dialects of. The only free one I'm
aware of is FreeTDS (see <http://www.freetds.org>) which I recently
ported to VMS. You can either build FreeTDS with ODBC support by
letting it know that unixODBC is its driver manager at build time, or
you can skip ODBC entirely and use DBD::Sybase directly. (Despite the
name, DBD::Sybase works with and is commonly used with MS SQL.) Your
Perl code will look about the same either way except for the connect
statement.

The foregoing recommendations assume you have a C compiler and some
familiarity with troubleshooting open source builds. If not, you'll
probably want to pursue one or more commercial packages. Even if you
do choose a commercial solution, you'd probably still have to build DBI
and DBD::ODBC yourself if you want to use Perl.

The commercial ODBC driver managers (such as the one from Attunity
someone mentioned [but also check out OpenLink and EasySoft]) often do
not connect directly to the database on the server. Instead they
communicate with an intermediate driver service on the server, which in
turn communicates with the database. This potentially introduces a
performance hit, not to mention the license cost and maintenance cost
involved in providing the service on each server that needs it. There
are advantages to these products, though, and you'd do well to talk to
their sales staffs and see what they can do for you.



Relevant Pages

  • core install of Solaris 9 (sparc) package list can be trimmed ?
    ... This is a server that will have very specific reasons ... system SUNWadmr System & Network Administration Root ... system SUNWeu8os American English/UTF-8 L10N For OS Environment User Files ... system R SUNWfcip Sun FCIP IP/ARP over FibreChannel Device Driver ...
    (comp.unix.solaris)
  • Re: 2008 SBS no longer boots
    ... driver issue initially, the fact that it seems to happen randomly now ... weird with a hardware problem that consistently doesn't get through boot ... other customer, even a 2 week old one, the problem immediately returned. ... There was a time when a server was fired up with a specialized OS and had a battery of tests run against each component to purposefully stress it. ...
    (microsoft.public.windows.server.sbs)
  • Re: 2008 SBS no longer boots
    ... Intel raid card for Server 2003. ... install with one raid driver, or with the other raid driver. ... Any thermal issues and a lot of other hardware problems should show up ... other customer, even a 2 week old one, the problem immediately returned. ...
    (microsoft.public.windows.server.sbs)
  • RE: Error from FoxPro connection in Visual Basic 6
    ... Try installing the VFP ODBC driver on the server. ... Microsoft FoxPro Technical Support ...
    (microsoft.public.fox.vfp.dbc)
  • RE: ODBC-Server Middleware
    ... We have the need to use ODBC. ... see only those datasources which were configured on the server. ... animal with the combination of Sequelink and Informix though the conception ... The ODBC driver usually is used by the application. ...
    (comp.databases.informix)