<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MySQL Database Archives - Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</title>
	<atom:link href="https://navsupports.com/tag/mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Microsoft Dynamics NAV &#124; Business Central</description>
	<lastBuildDate>Wed, 03 Aug 2022 05:59:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>

<image>
	<url>https://navsupports.com/wp-content/uploads/2018/11/cropped-fav-1-32x32.png</url>
	<title>MySQL Database Archives - Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Get data from MySQL database using ODBC Connection</title>
		<link>https://navsupports.com/get-data-from-mysql-database-using-odbc-connection/</link>
		
		<dc:creator><![CDATA[Shan Abeywickrema]]></dc:creator>
		<pubDate>Wed, 03 Aug 2022 05:59:35 +0000</pubDate>
				<category><![CDATA[C/AL]]></category>
		<category><![CDATA[Microsoft Dynamics NAV]]></category>
		<category><![CDATA[MySQL Database]]></category>
		<category><![CDATA[MySQL ODBC Driver]]></category>
		<category><![CDATA[ODBC Connection]]></category>
		<guid isPermaLink="false">http://navsupports.com/?p=209</guid>

					<description><![CDATA[<p>This topic shows you how to connect to MySQL database using ODBC Connection. You may have to download the ODBC</p>
<p>The post <a href="https://navsupports.com/get-data-from-mysql-database-using-odbc-connection/">Get data from MySQL database using ODBC Connection</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This topic shows you how to connect to <strong>MySQL</strong> database using <strong>ODBC Connection</strong>.</p>
<p>You may have to download the O<strong>DBC MySQL driver</strong> from MySQL Community downloads.</p>
<p><span style="text-decoration: underline;">Download ODBC MySQL Connector</span><br />
<a href="https://dev.mysql.com/downloads/connector/odbc/">https://dev.mysql.com/downloads/connector/odbc/</a></p>
<p>You may also have to look up the required connection info that you have to provide. You can get connection string details with samples from this third-party site <a href="https://www.connectionstrings.com/">https://www.connectionstrings.com/</a></p>
<p>before  you start, it would better read and understand ODBC Connection.</p>
<p><span style="text-decoration: underline;"><strong>ODBC Connection</strong></span></p>
<p>https://docs.microsoft.com/en-us/dotnet/api/system.data.odbc.odbcconnection?view=dotnet-plat-ext-6.0</p>
<p><span style="text-decoration: underline;"><strong>ODBC Command Type</strong></span><br />
https://docs.microsoft.com/en-us/dotnet/api/system.data.odbc.odbccommand.commandtype?view=dotnet-plat-ext-6.0</p>
<h5 id="make-sure-the-driver-you-want-is-installed" class="heading-anchor">Make sure the driver you want is installed</h5>
<ol>
<li> Navigate to ODBC Data Sources (64-bit)</li>
<li> On the Drivers tab, you can find list of drivers</li>
</ol>
<figure id="attachment_213" aria-describedby="caption-attachment-213" style="width: 300px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-medium wp-image-213" src="http://navsupports.com/wp-content/uploads/2022/08/ODBC-Driver-300x216.jpg" alt="" width="300" height="216" srcset="https://navsupports.com/wp-content/uploads/2022/08/ODBC-Driver-300x216.jpg 300w, https://navsupports.com/wp-content/uploads/2022/08/ODBC-Driver.jpg 592w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-213" class="wp-caption-text">ODBC Data Source Administrator</figcaption></figure>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Variables (DotNet Type)</strong></span><br />
<strong>OdbcConnection</strong><br />
System.Data.Odbc.OdbcConnection.&#8217;System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p><strong>Command</strong><br />
System.Data.Odbc.OdbcCommand.&#8217;System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p><strong>QueryReader</strong><br />
System.Data.Odbc.OdbcDataReader.&#8217;System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p><span style="text-decoration: underline;"><strong>Text Constants </strong></span><br />
<strong>ConnectionStr</strong><br />
DRIVER={MySQL ODBC 5.3 ANSI Driver}; Server=YourServerName/IP; PORT=MysqlPORT;Database=mysql; User=UserName; Password=PassWord; Option=1;</p>
<p><strong>MySqlQuery</strong><br />
SELECT * FROM mysql.db</p>
<p>C/AL Code</p>
<p><img decoding="async" class="alignnone size-full wp-image-218" src="http://navsupports.com/wp-content/uploads/2022/08/Code-Snippet.jpg" alt="" width="577" height="397" srcset="https://navsupports.com/wp-content/uploads/2022/08/Code-Snippet.jpg 577w, https://navsupports.com/wp-content/uploads/2022/08/Code-Snippet-300x206.jpg 300w" sizes="(max-width: 577px) 100vw, 577px" /></p>
<p><img decoding="async" class="alignnone size-full wp-image-219" src="http://navsupports.com/wp-content/uploads/2022/08/Table-data.jpg" alt="" width="1019" height="125" srcset="https://navsupports.com/wp-content/uploads/2022/08/Table-data.jpg 1019w, https://navsupports.com/wp-content/uploads/2022/08/Table-data-300x37.jpg 300w, https://navsupports.com/wp-content/uploads/2022/08/Table-data-768x94.jpg 768w" sizes="(max-width: 1019px) 100vw, 1019px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://navsupports.com/get-data-from-mysql-database-using-odbc-connection/">Get data from MySQL database using ODBC Connection</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
