<?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>SPEED VI &#187; Database Connectivity Toolset</title>
	<atom:link href="http://www.speedvi.com/tag/database-connectivity-toolset/feed" rel="self" type="application/rss+xml" />
	<link>http://www.speedvi.com</link>
	<description>Everything about Virtual Instruments, Computer-based Measurement and Control, Automation...</description>
	<lastBuildDate>Thu, 28 Jan 2010 14:54:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>A Note about Using Database Connectivity Toolset in LabVIEW</title>
		<link>http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html</link>
		<comments>http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html#comments</comments>
		<pubDate>Sun, 08 Mar 2009 13:03:34 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Database Connectivity Toolset]]></category>
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html</guid>
		<description><![CDATA[The Database Connectivity Toolset is a great add-on toolkit for LabVIEW, it makes the database operation within LabVIEW so easy that you can operate database even without sound knowledge of database. I used this toolkit in one of my projects to record the test results of UUTs into MS Access database. I created a save [...]]]></description>
			<content:encoded><![CDATA[<p>The Database Connectivity Toolset is a great add-on toolkit for LabVIEW, it makes the database operation within LabVIEW so easy that you can operate database even without sound knowledge of database. </p>
<p>I used this toolkit in one of my projects to record the test results of UUTs into MS Access database. I created a save results to database subVI with this toolkit. The subVI looks like this:</p>
<p><img title="Origin LabVIEW subVI" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="266" alt="Origin LabVIEW subVI" src="http://www.speedvi.com/wp-content/uploads/2009/03/image.png" width="425" border="0" />&#160;</p>
<p> <span id="more-48"></span>
<p>It is simple. When the table does not exist, this subVI creates the table and inserts data, when the table exist, the subVI inserts data only. When I call this subVI for the first time, everything is fine. But when I call it again with the same table name and different data especially when the string data in the same column is much longer than the last time, there will be an error. After checked the Access database, I found out that the DB Tools Insert Data VI created the table and formatted every column’s size exactly the same as the initial data set. So, inserting data that longer than the initial will make an error. </p>
</p>
<p>The solution is first check if the table exists, then use the DB Tools Create Table VI to create table if table does not exist as in the following diagram:</p>
<p><img title="Solution To DB Save" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="263" alt="Solution To DB Save" src="http://www.speedvi.com/wp-content/uploads/2009/03/image1.png" width="550" border="0" /></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>January 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html" title="Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset">Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset</a> (2)</li><li>July 10, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/move-up-and-down-tree-control-sub-items-programmatically-in-labview.html" title="Move Up and Down Tree Control Sub-items Programmatically in LabVIEW">Move Up and Down Tree Control Sub-items Programmatically in LabVIEW</a> (0)</li><li>April 20, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/transfer-more-than-text-message-in-queue-between-loops-in-labview.html" title="Transfer More Than Text Message in Queue Between Loops in LabVIEW">Transfer More Than Text Message in Queue Between Loops in LabVIEW</a> (2)</li><li>March 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-create-linked-list-in-labview.html" title="How to Create Linked List in LabVIEW">How to Create Linked List in LabVIEW</a> (0)</li><li>February 22, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/build-a-tri-state-led-indicator-in-labview.html" title="Build a Tri-State LED Indicator in LabVIEW">Build a Tri-State LED Indicator in LabVIEW</a> (0)</li><li>February 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/ni-announcing-the-labview-2009-platform-beta-program.html" title="NI Announcing the LabVIEW 2009 Platform Beta Program">NI Announcing the LabVIEW 2009 Platform Beta Program</a> (0)</li><li>February 2, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/problem-with-dll-in-labview.html" title="A Strange Problem When Calling External DLL with LabVIEW">A Strange Problem When Calling External DLL with LabVIEW</a> (0)</li><li>January 13, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/a-way-to-improve-user-experience-in-complicated-applications-in-labview.html" title="A Way to Improve User Experience in Complicated Applications in LabVIEW">A Way to Improve User Experience in Complicated Applications in LabVIEW</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access Different Access Database Files Programmatically in LabVIEW with Database Connectivity Toolset</title>
		<link>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html</link>
		<comments>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html#comments</comments>
		<pubDate>Fri, 16 Jan 2009 09:25:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Database Connectivity Toolset]]></category>
		<category><![CDATA[UDL file]]></category>

		<guid isPermaLink="false">http://www.speedvi.com/?p=32</guid>
		<description><![CDATA[One of my project needs to save test results to different Access database files for different units to be tested. The database files&#8217; name is automatic generated based on UUT&#8217;s serial number. Currently, I&#8217;m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The [...]]]></description>
			<content:encoded><![CDATA[<p>One of my project needs to save test results to different Access database files for different units to be tested. The database files&#8217; name is automatic generated based on UUT&#8217;s serial number. Currently, I&#8217;m using the LabVIEW Database Connectivity Toolset, and the default method to access a database file by it is UDL file. The UDL file contains only one static database file and it is quite hard to change it programmly without manually select a database file and click the confirm button.  And it will be a nightmare to create each UDL file for each UUT before the test is taken.</p>
<p>To change the UDL file&#8217;s content in LabVIEW programmly is not easy too. Because UDL file  is unicode-formatted, and LabVIEW is quite limited in support to unicode. I had tried several ways to change the database file name in UDL file and save the UDL file to hard disk. And when I open the changed UDL again, I got &#8220;File corrupted&#8221; message. It seemed that it is not a good way.<span id="more-32"></span>At last, I had to read the help file of Database Connectivity Toolset word by word to find a way to work round. Wow, I found out that the VI DB Tools Open Connection is a Polymorphic VI that accepts string and file path data types. Just append the Access database file&#8217;s path after &#8220;Provider=Microsoft.Jet.OLEDB.4.0; Data Source=&#8221;, and wire it to connection information connector of DB Tools Open Connection VI, and everything will be OK.  Everything get solved.</p>
<p>It is really a good habit to read the help file carefully.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>March 8, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/a-note-about-using-database-connectivity-toolset-in-labview.html" title="A Note about Using Database Connectivity Toolset in LabVIEW">A Note about Using Database Connectivity Toolset in LabVIEW</a> (0)</li><li>December 24, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/howto-creating-a-microsoft-data-link-file-udl-for-connecting-to-microsoft-access-in-labview.html" title="Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW">Howto: Creating a Microsoft Data Link file (.UDL) for Connecting to Microsoft Access in LabVIEW</a> (0)</li><li>December 18, 2008 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-write-and-read-access-database-in-labview.html" title="How to write and read Access database in LabVIEW">How to write and read Access database in LabVIEW</a> (0)</li><li>July 10, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/move-up-and-down-tree-control-sub-items-programmatically-in-labview.html" title="Move Up and Down Tree Control Sub-items Programmatically in LabVIEW">Move Up and Down Tree Control Sub-items Programmatically in LabVIEW</a> (0)</li><li>April 20, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/transfer-more-than-text-message-in-queue-between-loops-in-labview.html" title="Transfer More Than Text Message in Queue Between Loops in LabVIEW">Transfer More Than Text Message in Queue Between Loops in LabVIEW</a> (2)</li><li>March 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/how-to-create-linked-list-in-labview.html" title="How to Create Linked List in LabVIEW">How to Create Linked List in LabVIEW</a> (0)</li><li>February 22, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/build-a-tri-state-led-indicator-in-labview.html" title="Build a Tri-State LED Indicator in LabVIEW">Build a Tri-State LED Indicator in LabVIEW</a> (0)</li><li>February 16, 2009 -- <a href="http://www.speedvi.com/everything-labview-related/ni-announcing-the-labview-2009-platform-beta-program.html" title="NI Announcing the LabVIEW 2009 Platform Beta Program">NI Announcing the LabVIEW 2009 Platform Beta Program</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.speedvi.com/everything-labview-related/access-different-access-database-files-programmly-in-labview-with-database-connectivity-toolset.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
