_ROOT Version: 6.24/06
Compiler: MSVC 19.23.28107.0
TSQLServer* srv = TSQLServer::Connect(“odbcn://ERT6”,0,0) works well under ROOT 5.34/32 and returns a valid pointer, the same command returns a nullptr under root 6.24/06.
Has the syntax changed?
Sorry, but AFAIK, this has not been tested on Windows, but maybe
@linev knows if something changed in the code…
There were no changes in ODBC plugin since a long time.
Did you compile it with ROOT6?
Can you check if there is
I downloaded a pre-compiled binary distribution of root 6.24/06. I tried to connect with the SQL server in an interactive session (see screen shots above).
I could not find libRODBC.dll in C:\root_v6.24.06\bin
Thanks for your help!
Means to get ODBC functionality in ROOT6, you need to compile from source, enabling
-Dodbc=ON. Most probably, you will need to install windows ODBC library and correspondent include files.
And if you decide to try - here you will find more info how ROOT search ODBC:
This file has been truncated.
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
Find an Open Database Connectivity (ODBC) include directory and library.
On Windows, when building with Visual Studio, this module assumes the ODBC
library is provided by the available Windows SDK.
On Unix, this module allows to search for ODBC library provided by
unixODBC or iODBC implementations of ODBC API.
This module reads hint about location of the config program:
.. variable:: ODBC_CONFIG
Location of odbc_config or iodbc-config program
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.