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


in reply to Re: DBD::ODBC Core Driver Version
in thread DBD::ODBC Core Driver Version

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.

Replies are listed 'Best First'.
Re^3: DBD::ODBC Core Driver Version
by afoken (Chancellor) on Oct 06, 2020 at 19:09 UTC
    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". ;-)