Hi All,

Want to connect to the SQL Server DB available in the Azure from the perl installed in CentOS 7.

I wan using The CentOS 7 from Oracle VirtualBox. This VirtualBox I have installed in Windows 8.1.

When I was trying to connect same from perl installed in the master OS, i.e.: Windows 8.1, it was working fine. But, then why it is failing in when I was trying to connect the same from the Oracle VirtualBox?

Do, I need to add trusted IP to Azure for Oracle VirtualBox (value of inet)?

I was receiving the following error:
---------------------------------------------------------------------------------------------------------------------
DBI connect('Driver={SQL Server Native Client 11.0};Server=tcp:<server>.database.windows.net,1433;Database=<database>;Uid=<u_name>@<server>;Pwd=<pswrd>;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;','',...) failed: [unixODBC][Microsoft][SQL Server Native Client 11.0]Login timeout expired (SQL-HYT00) [state was HYT00 now 08001]
[unixODBC][Microsoft][SQL Server Native Client 11.0]TCP Provider: Error code 0x2726 (SQL-08001)
[unixODBC][Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. (SQL-08001) [state was 08001 now 01S00]
[unixODBC][Microsoft][SQL Server Native Client 11.0]Invalid connection string attribute (SQL-01S00) at odbc_perl.pl line 9.

In reply to Connection issue to the SQL Server in Azure from perl installed in CentOS by m_pant0808

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.