I totally agree with everything you write. The customer actually previously has used a consultant with special SQL DBA skills, so I'll make sure he will take care of this instead of me. ;-) This is not my job - you're right.

Would be nice to learn more about it for my own sake, though, since it's quite basic to make my part of the job to go online, so I'll take a closer look at the SQL Server Books Online.

As for the security issue; you are right again, and the plan is definitely to use another port than the default (1433), plus restricting the database access to connections from the webserver's IP address. The code I posted is simply a "first stage connection test code", so far I've only tried it with a test installation of MSSQL on one of our own servers. :-)

Who knows, maybe I'll write a little tutorial when I'm done - something like a "Step-by-step tutorial for ALL you need to know about connecting to a remote MSSQL database server from your local Perl script using DBI-ODBC". (Including all neccessary tasks on both servers). It believe it would be appreciated by many a monk. Take care! :-)

In reply to Re^4: Connect to remote MSSQL database with DBD-ODBC? by FinnR
in thread Connect to remote MSSQL database with DBD-ODBC? by FinnR

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.