Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Insert Data into a Table that Contains a Global Unique Identifier (GUID)?

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Database Connectivity Toolset

Problem:
Using the Database Connectivity Toolset, I would like to insert data into a table which contains a Global Unique Identifier (GUID) but I recieve an error when trying to populate the GUID field. Why do I get such an error and what can I do about it?

Solution:
Since the GUID field is automatically generated by the database, it cannot be populated by LabVIEW. Instead, specify the fields you want to populate with an array, and their values with a cluster. See the attached example insert record.vi

Related Links:

Attachments:


insert record.vi


Report Date: 02/08/2007
Last Updated: 02/21/2007
Document ID: 46790FSF

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit