http://qs321.pair.com?node_id=11122562


in reply to DBD::ODBC Core Driver Version

In the Windows search bar enter ODBC then click "ODBC Data Sources (64-bit). In the popup dialog click on the Drivers tab.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^2: DBD::ODBC Core Driver Version
by dominic01 (Sexton) on Oct 06, 2020 at 06:48 UTC
    Thank you and I checked it and I do not see a ODBC Driver. However, I am able to connect to my SQL Server without any issues. I used
    $dbh = DBI->connect( "DBI:ODBC:driver={SQL Server};Server=$server;Data +base=$database;UID=$dbusername;PWD=$dbpassword", { PrintError => 1, RaiseError => 1 } )
    Also I noted another driver "SQL Server". Hope that handles the connectivity part.
      I checked it and I do not see a ODBC Driver

      See also DBD::ODBC::FAQ. On a 64 bit Windows, there are two ODBC managers:

      Why cannot I connect to my data source on Windows 64?

      If you are running a 32bit Perl on a 64bit Windows machine you will need to be aware there are two ODBC administrators and you need to create your DSNs with the right one. The ODBC Administrator you get to from Control Panel, Administrative Tools, Data Sources is the 64bit one and data sources created here will not be visible or useable from 32bit applications. The ODBC administrator you need to use for 32bit applications can be found at X:\windows\syswow64\odbcad32.exe.

      You can find more about this than you'd probably care to know at http://www.easysoft.com/developer/interfaces/odbc/64-bit.html

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)