<?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: Need help with writing data to the table in SQL server express 2012 database using labview in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461290#M754792</link>
    <description>&lt;P&gt;You haven't connected data type connector on DB tools Insert Data.vi... what type of data are you trying to write to the table? You will need to specify that first. I can't tell if you mean that you see a "broken arrow" prohibiting you from running the vi or if there is some other issue.&amp;nbsp; If you are familiar with database calls, communicating from LabVIEW isn't any different - those built-in functions are simply making such calls to the database on a lower-level (in fact there are even freeware toolkits for database connectivity that you can find on this site through search or on Lavag.org and look inside such toolkit functions to understand what is being done.) Mind you - data type you use must match what you have specified for that field in your database table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-DP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2013 16:22:36 GMT</pubDate>
    <dc:creator>BTC_Admin</dc:creator>
    <dc:date>2013-06-14T16:22:36Z</dc:date>
    <item>
      <title>Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461234#M754782</link>
      <description>&lt;P&gt;I am new to using Databases with Labview.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to write some data to the table I made in database of SQL server express 2012 using Labview. I am using the "DB tools Insert Data.vi" to insert some random data to the table. But when I try to enter some data through the front panel, it doesn't let me write anything.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To keeps things simple for now, I am just using 1 column in the table and just writing any to that column. Could anyone point out what I am doing wrong or how I can solve this issue?&lt;/P&gt;
&lt;P&gt;I have also attached the sample VI I made for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 15:24:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461234#M754782</guid>
      <dc:creator>manny09</dc:creator>
      <dc:date>2013-06-14T15:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461290#M754792</link>
      <description>&lt;P&gt;You haven't connected data type connector on DB tools Insert Data.vi... what type of data are you trying to write to the table? You will need to specify that first. I can't tell if you mean that you see a "broken arrow" prohibiting you from running the vi or if there is some other issue.&amp;nbsp; If you are familiar with database calls, communicating from LabVIEW isn't any different - those built-in functions are simply making such calls to the database on a lower-level (in fact there are even freeware toolkits for database connectivity that you can find on this site through search or on Lavag.org and look inside such toolkit functions to understand what is being done.) Mind you - data type you use must match what you have specified for that field in your database table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-DP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 16:22:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461290#M754792</guid>
      <dc:creator>BTC_Admin</dc:creator>
      <dc:date>2013-06-14T16:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461722#M754875</link>
      <description>&lt;P&gt;Can you attach 2011 format of your VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2013 04:22:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2461722#M754875</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-06-15T04:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2462854#M755126</link>
      <description>&lt;P&gt;Thanks Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to find the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:11:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2462854#M755126</guid>
      <dc:creator>manny09</dc:creator>
      <dc:date>2013-06-17T15:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2969893#M854411</link>
      <description>&lt;P&gt;What was your solution? I'm having the same issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create a table of accelerometer data using the Database Logging example VI. I've attached the VI I'm working with so you can help me step through this... If you look under the "Acquire Data" heading, you'll see a while loop that contains the database logging code I'm having trouble with. I've created a .udl file that successfully connects to the SQL server I want to write my data to, but I can't seem to get it to create a table and write my data to it. I've used my number of samples as the input for the number of rows in the table, and my sample clock timing as an input to the Wait function for the while loop iterations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas? I'm stuck...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 17:47:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2969893#M854411</guid>
      <dc:creator>dzehner2</dc:creator>
      <dc:date>2014-08-27T17:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970461#M854438</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/307698"&gt;@dzehner2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;What was your solution? I'm having the same issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create a table of accelerometer data using the Database Logging example VI. I've attached the VI I'm working with so you can help me step through this... If you look under the "Acquire Data" heading, you'll see a while loop that contains the database logging code I'm having trouble with. I've created a .udl file that successfully connects to the SQL server I want to write my data to, but I can't seem to get it to create a table and write my data to it. I've used my number of samples as the input for the number of rows in the table, and my sample clock timing as an input to the Wait function for the while loop iterations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas? I'm stuck...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No clue. Don't have LabVIEW 2014.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 19:16:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970461#M854438</guid>
      <dc:creator>nyc_(is_out_of_here)</dc:creator>
      <dc:date>2014-08-27T19:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970531#M854449</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 20:23:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970531#M854449</guid>
      <dc:creator>dzehner2</dc:creator>
      <dc:date>2014-08-27T20:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970739#M854458</link>
      <description>&lt;P&gt;Sorry. I don't have Labview 2014, so can't open your VI&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 20:47:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970739#M854458</guid>
      <dc:creator>manny09</dc:creator>
      <dc:date>2014-08-27T20:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970869#M854464</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the portion of the VI that handles the data exchange with the SQL server. I can post other areas of the VI if that will help. The wait function is using my sample rate and total number of samples to determine when to send the data to the server. The integer input into the table comes from the total number of samples (so it will create 1 table row for each sample).&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/f38cea538250585a65fbcac4dddc7db0b737a293/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353236353969323139363231393644463045433035342f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="SQL server logging loop.PNG" title="SQL server logging loop.PNG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 21:00:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970869#M854464</guid>
      <dc:creator>dzehner2</dc:creator>
      <dc:date>2014-08-27T21:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970959#M854469</link>
      <description>&lt;P&gt;Right now, your code has boolean set to False for creating a table.&lt;/P&gt;
&lt;P&gt;Yet in your first post, you write that you want to create a table.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 21:06:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970959#M854469</guid>
      <dc:creator>nyc_(is_out_of_here)</dc:creator>
      <dc:date>2014-08-27T21:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970979#M854470</link>
      <description>None of that makes any sense. The wait is not required, nor the while loop. If it works at all, it would just keep writing the same data over and over again. What is the actual data type in the cluster? I suspect you need a for loop to write each row.</description>
      <pubDate>Wed, 27 Aug 2014 21:09:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2970979#M854470</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-08-27T21:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971071#M854487</link>
      <description>&lt;P&gt;If you are planning to write a lot of data and really fast into SQL table, You should make the VI in 2 steps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Write the data to a text file&lt;/P&gt;
&lt;P&gt;Step 2: Read from text file and write to the SQL table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason being that you cannot write really fast and lot of points from labview to SQL. You will loose half of the points in the process.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you write to the text file, its way faster and you have all the data secured. Then you can run the other part and it might take like 5 mins approximetly (depending on the number of points you are reading) to send the data to SQL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 22:22:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971071#M854487</guid>
      <dc:creator>manny09</dc:creator>
      <dc:date>2014-08-27T22:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971171#M854488</link>
      <description>&lt;P&gt;I have attached an example for reading from text file to SQL. Maybe that helps&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 22:30:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971171#M854488</guid>
      <dc:creator>manny09</dc:creator>
      <dc:date>2014-08-27T22:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971283#M854499</link>
      <description>I've been using the database toolkit since before it was owned by NI and have never lost data or had to resort to writing to a file.</description>
      <pubDate>Wed, 27 Aug 2014 23:01:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971283#M854499</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-08-27T23:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971999#M854641</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/1040"&gt;@Dennis_Knutson&lt;/a&gt; wrote:&lt;BR /&gt;None of that makes any sense. The wait is not required, nor the while loop. If it works at all, it would just keep writing the same data over and over again. What is the actual data type in the cluster? I suspect you need a for loop to write each row.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The actual data type is DBL, it's just acceleration in g. I had the wait and the while loop in there from the example on continuous logging, but I had suscpicions it wasn't really necessary.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 12:06:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2971999#M854641</guid>
      <dc:creator>dzehner2</dc:creator>
      <dc:date>2014-08-28T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2972007#M854642</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/251488"&gt;@manny09&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have attached an example for reading from text file to SQL. Maybe that helps&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Let me just make sure I understand your VI... You write to a text file, and then call that file name into the loop that connects to your SQL server and insert it into a table? That would work... I'll give it a shot!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 12:07:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2972007#M854642</guid>
      <dc:creator>dzehner2</dc:creator>
      <dc:date>2014-08-28T12:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with writing data to the table in SQL server express 2012 database using labview</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2972161#M854673</link>
      <description>&lt;P&gt;First off, you only have to create the table once -- ever. While you can do that in LV, you will hardly ever want to.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Second, the DCT will make life infinitely more difficult for you. The process for inserting data into a database is really very easy and the DCT does an excellent job of hiding that simplicity beneath a complex, proprietary interface. &lt;BR /&gt;&lt;BR /&gt;Check out this &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;A href="https://ni.lithium.com/t5/LabVIEW/Extracting-one-column-from-Database/m-p/547276#M257531" target="_blank"&gt;thread&lt;/A&gt;&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;for most of what you need to know to use databases easily -- including some free drivers.&lt;BR /&gt;&lt;BR /&gt;Mike...&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 13:21:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Need-help-with-writing-data-to-the-table-in-SQL-server-express/m-p/2972161#M854673</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2014-08-28T13:21:27Z</dc:date>
    </item>
  </channel>
</rss>

