We have a requirement for the migration project from Sybase to mssql in Linux box which is RHEL

We have bunch of Perl programs which is connecting to Sybase and has to be migrated to MSSQL in the Linux box RHEL.

I see two option

1. Microsoft ODBC driver and DBD:ODBC cpan module along with unixODBC

DBI -> unixODBC -> DBD:ODBC & microsoft's ODBC DRIVER.

2. Using freetds and sybase's DBD::Sybase

My question is which option is more feasible considering my environment

  1. Linux RHEL
  2. Perl code connecting to Sybase has to be migrated to MSSQL Perl code.
  3. One mssql.pm ( just a name given by me, ) module has to connect with around 400 Perl script with minimal code changes in 400 scripts.

***Is anyone here already done this and get successful

Please kindly help .

My research : I hardly seen people connecting to MSSQl using ODBC driver provided by MySQL ( guess it has been introduced recently)

But I was able to set it up using below link

https://github.com/pplu/perl-mssql-server/blob/master/connect.pl

And I see a comment in internet saying::
"Microsoft has a driver for Linux which can be used to connect via Linux. I had tried it and it worked like a charm. I was able to connect to SQL server using Microsoft binary. The real problem is that it cannot be used as Perl module to extend the usability via scripting"

https://www.slideshare.net/mobile/venkivoice/connect-sqlusingperlfromlinux

Im really confused which one to take and which one is feasible for our requirement.

2021-01-24 Athanasius added tags.


In reply to Sybase to MSSQl migration for Perl in Linux RHEL by prakruthias

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.