<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect to oracle/mysql DB through ODBC in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247376#M153899</link>
    <description>&lt;P&gt;Thank you a lot for this, I use Visual Studio.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 16:25:59 GMT</pubDate>
    <dc:creator>Mattia</dc:creator>
    <dc:date>2021-01-18T16:25:59Z</dc:date>
    <item>
      <title>Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247346#M153890</link>
      <description>&lt;P&gt;I know that this topic has been discussed many and many times, but this problem is concerning me since 5 years and I still have not found a solution.&lt;/P&gt;
&lt;P&gt;I am using a virtual machine with Compaq visual Fortran under Windows XP because I need to compile a F project using the SQL tools from Canaima. My code works with Oracle/MySWL dbs. Now I want to move to Visual Studio and the Intel Fortran Compiler, but I do not know how to connect to a sql db.&lt;/P&gt;
&lt;P&gt;Is there a solution for this? Of course, I would like to continue using the Canaima libraries, but if not possible I can switch to other tools...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:03:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247346#M153890</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2021-01-18T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247350#M153891</link>
      <description>&lt;P&gt;Several years ago I worked on an interface for SQLite and, derived from that, for ODBC. You can find the code here: &lt;A href="http://flibs.sourforge.net" target="_blank"&gt;http://flibs.sourforge.net&lt;/A&gt; There is also an interface specific to MySQL. It may or may not be sufficient for your needs. (I should probably update it, because the interfacing with C predates ISO_C_BINDING ;)).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:13:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247350#M153891</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-18T15:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247360#M153894</link>
      <description>&lt;P&gt;Thank you, I have seen this. The use I make of the DB is quite basic, I think this may help but I am not sure how to use it...&lt;/P&gt;
&lt;P&gt;I have downloaded a file called flibs-0.9.zip, and then I have found a sqlite.f90 file containing a module.&lt;/P&gt;
&lt;P&gt;I do not really know how to make this work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:56:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247360#M153894</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2021-01-18T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247368#M153895</link>
      <description>&lt;P&gt;I will send you a private message regarding this.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 16:03:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247368#M153895</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-18T16:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247373#M153897</link>
      <description>&lt;P&gt;Hm, that seems not to be possible any more. Then I will have to do it this way.&lt;/P&gt;
&lt;P&gt;I have not updated the zip files in a long time now, so the best way to get the code is to get a copy of the source code via the SVN repository. For the ODBC interface, you need to get the files fodbc.f90 and codbc.c and add them to your program. I see I have forgotten to include the sample makefile, when I moved the sources to a cleaner set-up. &lt;/P&gt;
&lt;P&gt;The easiest way to help you wih this will be to prepare a small test program with all the necessary bits and pieces. Do you use Visual Studio or makefiles or the like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 16:16:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247373#M153897</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-18T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247376#M153899</link>
      <description>&lt;P&gt;Thank you a lot for this, I use Visual Studio.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 16:25:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247376#M153899</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2021-01-18T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247386#M153902</link>
      <description>&lt;P&gt;Well, it took a bit of work to assemble all the pieces, but here at least is a zip file containing the source code and a very basic batch file to link the program. More to follow (that is: a VS solution).&lt;/P&gt;
&lt;P&gt;The trst program does not do all that much, as it wants to read an MS Access file, but it ought to ilustrate the use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 17:01:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247386#M153902</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-18T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247413#M153908</link>
      <description>&lt;P&gt;I will wait for the VS solution, the batch is not working because cl and ifort are not recognized as commands&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 18:10:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247413#M153908</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2021-01-18T18:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247626#M153917</link>
      <description>&lt;P&gt;What I do in such cases, especially with small programs like this one, is open the console window - "Compiler ... environment". That sets up the path and environment variables to use the command-line tools. I hope to be able to set up the VS solution today (that always takes me more time than writing a batch file ;)).&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 07:47:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247626#M153917</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-19T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247631#M153919</link>
      <description>&lt;P&gt;Thanks, I realized that It was an environment path issue. So I run the Intel oneAPI command prompt, and it worked, I have got the exe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The VS solution would help a lot, thank you...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 08:13:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247631#M153919</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2021-01-19T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247663#M153922</link>
      <description>&lt;P&gt;Well, the attached zip file contains my example VS solution. I hope the set-up is clear enough. FYI: I needed to add the option _CRT_SECURE_NO_WARNINGS to avoid error messagea about the use of strcpy() and I needed to add the odbc32.lib library as a dependency.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 09:21:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247663#M153922</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-19T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247681#M153923</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This text below is not connecting through ODBC but another solution. So, maybe offtopic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some years ago I build successfully interfaces based on FLIBS/ Daniel Krafts wrappers to the MySQL c-API. One of my old threads regarding this topic can be found &lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/connecting-from-Fortran-to-MySQL-via-C-API/m-p/994557/highlight/true?profile.language=ja&amp;amp;countrylabel=Mexico" target="_self"&gt;here&lt;/A&gt; and another thread &lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Database/td-p/1150506" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;FLIBS can be found still: &lt;A href="https://github.com/philip-peterson/flibs" target="_blank"&gt;https://github.com/philip-peterson/flibs&lt;/A&gt; or &lt;A href="http://flibs.sourceforge.net/" target="_blank"&gt;http://flibs.sourceforge.net/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It worked totally fine for me. I have modified the files and could provide my version, if it would help.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 10:14:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247681#M153923</guid>
      <dc:creator>Johannes_Rieke</dc:creator>
      <dc:date>2021-01-19T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247694#M153926</link>
      <description>&lt;P&gt;Interesting :).I am definitely interested in that.&lt;/P&gt;
&lt;P&gt;Aside: I had some trouble with the ODBC library for MinGW-w64/MSYS2, as that used to be accessible via "-lodbc", but apparently a different name is now used (or at least a different name was used by the package nanodbc I had to install). And some other stuff relating to C data types specific to SQL. That used not to be a problem. Well, another lesson learned. Things may change, so you have to check now and again that other things still work.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 11:15:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247694#M153926</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-19T11:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247776#M153934</link>
      <description>&lt;P&gt;Thank you a lot for this.&lt;/P&gt;
&lt;P&gt;The code is compiling, but the test on the available drivers is returning this output. Also, I tried to connect to the odbc with a connection string and using odbc_connect, but it does not work. Now I am using a mysql community server database. I think I will give up with this... unless the solution is simple.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mattia_0-1611074082917.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/14858iF7F56A8F547AD353/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Mattia_0-1611074082917.png" alt="Mattia_0-1611074082917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 16:37:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247776#M153934</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2021-01-19T16:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247801#M153935</link>
      <description>&lt;P&gt;Hm, odd, but I understand. Perhaps the direct connection to MySQL that Johannes Rieke mentioned is a solution?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 18:03:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247801#M153935</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-19T18:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247814#M153936</link>
      <description>&lt;P&gt;I have attached the code in Flibs that Johannes referred to. It does not contain his adaptations ;).&lt;/P&gt;
&lt;P&gt;I am puzzled by the output you got. On my system I get:&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;Overview of installed drivers:

SQL Server                              APILevel=2
SQL Server Native Client 11.0           UsageCount=1

Overview of data sources:


Opening a particular database file:
List of tables:
 Create a (new) table:
 08003     [Microsoft][ODBC Driver Manager] Connection not open
 08003     [Microsoft][ODBC Driver Manager] Connection not open
 Check the contents:
 08003     [Microsoft][ODBC Driver Manager] Connection not open
 Data:
 Columns of table "example"
 08003     [Microsoft][ODBC Driver Manager] Connection not open
Example with MS Excel:
List of tables:
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(This is on Windows 10.)&lt;/P&gt;
&lt;P&gt;Obviously on your system things are quite different.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 18:42:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1247814#M153936</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-19T18:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1248131#M153949</link>
      <description>&lt;P&gt;Hi, sorry has been very busy. I had to seperate the modified files from other dependencies. Since I used the code in 2015 with mysql libs from this time in x64 GNU/Linux + ifort. I cannot say, whether my modified code is working, still. I attached it anyways. It's based on the FLIBS version. I've no idea about rights and license. Please contact in this case the owner of FLIBS or Daniel Kraft.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:44:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1248131#M153949</guid>
      <dc:creator>Johannes_Rieke</dc:creator>
      <dc:date>2021-01-20T13:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1248132#M153950</link>
      <description>&lt;P&gt;Second try, first time, the attachment has been erased.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:46:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1248132#M153950</guid>
      <dc:creator>Johannes_Rieke</dc:creator>
      <dc:date>2021-01-20T13:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to oracle/mysql DB through ODBC</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1248133#M153951</link>
      <description>&lt;P&gt;As the "owner" of Flibs, I thank you for this contribution. The license for all the stuff in that project is "BSD", I could have been clearer about that (by inserting the license text in the source files).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:51:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Connect-to-oracle-mysql-DB-through-ODBC/m-p/1248133#M153951</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-20T13:51:37Z</dc:date>
    </item>
  </channel>
</rss>

