LabWindows CVI and SQL Toolkit cursor/sch​ema error

We are using CVI 8.5 and SQL Toolkit 2.0.6 to write data to a SQL Server 2008 database.  We are utilizing the Microsoft ODBC SQL Server (non-native) driver.  We build a transaction that calls stored procedures on the database to write the data.  Occasionally we get the following error:
"Could not complete cursor operation because the table schema changed after the cursor was declared"
The error is unusual since we only use one cursor and it is in a stored procedure that gets called by other software hundreds of times a day and never fails.  Our database is also designed to only append records, not change existing ones.  We're trying to pinpoint the error and I'm wondering if anyone knows if the SQL Toolkit uses cursors to build transactions or if this error has been seen by others.  Since upgrading the toolkit or drivers takes a lot of effort, I want to make sure that I understand the problem before I start throwing darts at it.  Thanks in advance for any insight.

I've attached the function that's failing.  Unfortunately, the code isn't designed with much resolution as to what SQL toolkit call failed, since these calls haven't failed once validated and put into the production environment.  Can you tell if any of these functions use a cursor.  I could certainly try adding more resolution to the error handling, but since we've only seen errors occasionally in the production environment, I'd need to release a temp version and monitor it.  Let me know what you think.  Thanks.
Attachments:
StoreTestData.txt ‏5 KB

Similar Messages

  • Mysql database connection with Labwindows/CVI 2009 sql toolkit

    Dear experienced users,
    I am using the following software/hardware:
    Windows 7/ Mysql database 5.6.15 64-bit with MySql ODBC 5.2 Ansi driver installed
    Labwindows/CVI 2009 with sql toolkit
    The user DSN of ODBC Data source administrator have been confiugred to one of mysql database. The test MYSQL Connector/ODBC is succesful.
    The Labwindows/CVI build setting is configure to debug64 after trying debug (32)
    The source code is from the example readtab.c with changes to the dsn I am testing
        hdbc = DBConnect ("DSN=dvd_collection");   
    The error message I have is confusing me.
    (it is in the attachd png)
    I thought it was due to the 64 bit mysql database. That's why I tried the 64 bit build from Labwiondws/CVI. I alsow tried Labview DB tools open connect.vi. It shows me the same error.
    Any suggestion is appreciated.
    Thanks,
    Jimmy
    Attachments:
    Capture.PNG ‏24 KB

    Jimmy
    I always use connection strings of the form "DSN=datasourcename;UID=database_user_id; PWD=database_user_password".
    Where:
    datasourcename = The name of the connection defined in the ODBC connection.
    database_user_id = One of the user identities created by the database administrator. Obviously the administrator will lock down the permissions appropriate to the task in hand.
    database_user_password = The password that identifies database_user_id, again set by the database administrator.
    Note that while it is obviously desireable to lock the permissions down as far as possible on the MySQL server, the more you do so, the slower the database will run, because of the way mySQL searches the permissions tables.

  • Need to install LabWindows​/CVI PID Control Toolkit (Part Number 320794A-01​)

    Hello -
    I have a customer with a very old application who needs to upgrade their system to Win7 64-bit. The app references the old PID functions (manual here: http://www.ni.com/pdf/manuals/320794a.pdf) but no matter what I have searched for, I cannot find an installation for that toolkit. I have never had a need to use the current PID toolkit so I am not versed with it, and the difference in the functions do not seem to be a 1 to 1 change. Additionally, the customer is not paying for a code change - just assistance with the upgrade and reinstall. I would greatly appreciate if someone could point me to that download. 
    If such a download is not in existence any longer, I will need to request some assistance with modifying the source to use the current PID functions. I could attach the pertinent code if need be (there are not a great deal of references).
    Thank you.

    Hi CVIBri,
    The installation files for the LabWindows/CVI PID Control Toolkit 2.1 are located at the URL below.  I realize these are only officially compatible with versions of Windows up to Vista, however this is the most recent version of the toolkit that exists.  I've also provided a link to the Evaluation License Files.  That being said, LabWindows/CVI 2013 SP2 now includes the PID Control Toolkit as part of its Base and Full versions, and it is fully licensed with the same serial number used to activate the LabWindows/CVI development environement. The Readme linked below should provide more information.
    PID Control Toolkit: http://www.ni.com/download/labwindowscvi-pid-contr​ol-toolset-2.1/1037/en/
    PID Control Tookit Evaluation License Files: http://www.ni.com/download/labwindowscvi-pid-contr​ol-toolset-2.1/1038/en/
    LabWindows/CVI 2013 SP2 Readme: http://www.ni.com/pdf/manuals/374674a.html
    Thanks,
    Myriam

  • Announcement: Security Update 5Q5FJ4QW for multiple versions of LabWindows/CVI and LabVIEW

    An update for LabWindows/CVI and LabVIEW users is now available for download. This update resolves security vulnerabilities in components installed with LabWindows/CVI 2010 SP1 and earlier and LabVIEW 2011 and earlier. Further details can be found at KnowledgeBase Article 5Q5FJ4QW: How Does National Instruments Security Update 5Q5FJ4QW Affect Me?
    The update can be downloaded with NI Update Service 2.0 (which installs with LabWindows/CVI 2010 SP1 and LabVIEW 2011) or from the Drivers and Updates page. Information about the update is also available in other languages through links in the Drivers and Updates page.
    This is free update for all LabWindows/CVI and LabVIEW users.
    National Instruments
    Product Support Engineer

    The correct link should be this one
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • LabWindows CVI 2009 Word_Rpt routines: Document is corrupted: Error reported: The MSWORD.OLB file cannot be opened.?

    Using WordRpt support routines with a C application in LabWindows CVI 2009 to format Word files, an error sometimes occurs resulting in the document format being corrupted.  An error  is generated: The MSWORD.OLB file cannot be opened.  I don't know why or how to correct this problem.
    Any help you can provide would be appreciated!

    Hi LPR1,
    Do you have an application that reproduces this.  If so, do you mind posting it?
    Regards,
    Hassan Atassi
    NI Community Project Engineer

  • How to compact and repair a MS Access database with NI CVI 8.5 (and SQL Toolkit)

    Hello
    I'm using the SQL Toolkit with CVI 8.5 for accessing MS Access Databases.
    Is there a possibility to compact and repair the .mdb file with  CVI?
    Thanks in advance.

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • Labwindows/CVI and Android

    Hello,
    I work in Labwindows/CVI on Windows XP for the moment, I developpe a software and I would like to know if it will be possible to make a software, the same that this one to run on Windows, which runs on Android please ?
    My software uses a SQL database (SQL Server) and an OPC Server (Phoenix Contact).
    If it's possible, how can I do to create this application and install on a tablet for example?
    I just know that a "NI LabWindows™/CVI Run-Time Module for Linux" exists, but I don't know if this module allows me to install my software on a tablet...
    Thanks.
    Bye Karine

    In addition Android programs are normally written in Java, which has nothing
    to do with CVI. But I read a tutorial some time ago that showed how to
    compile C for Android. So at a very basic level of a pure ANSI C program
    with no (or duplicate) user interface, it is possible.
    Guillaume Dargaud
    http://www.gdargaud.net/

  • I used to working with Labwindow CVI and i would like to know how can i use the commands "loadpanel" and "Displaypanel " in Labview. Using Invoke Nodes?

    I want to make another panel appears and runs, but i don´t want to use a subpanel. So, i would like to use somenthing similar to Loadpanel and Displaypanel, that you can use in Labwindows CVI, but in Labview, is ti possible?I hope your answers, thank you!!!

    Hi Bichillo,
    I posted an example here.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000014570100&HTHREAD=000087828&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    It demonstrates how to do what you are asking.
    I do not mind you laughing at the code.
    Have fun!
    Ben

  • Packed library and SQL Toolkit

    Hi 
    I have labview development studio and I have made some test software that runs a test and posts the results to a database.
    I have built the functions of the test in to a packed library
    Another company will be using the packed library to test some pcb's for us. The problem is that they do not have the database module in their labview and so the database section of the code does not work. 
    Is there a run time program for the SQL toolkit I can give them? 
    Solved!
    Go to Solution.

    No, but you can replace them with these drivers and not have to worry about toolkits. Be sure to read the discussion too - it will give you other reasons why you are better off without the DCT. The download link for a current version of LV is on the last page of the discussion.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Labwindows CVI and RT Module

    Hi All,
    I have a developed a Real time application using Ni Labview. In this I have developed a GUI using NI Labview and RT Module in Labview. 
    Iam able to read and write data from HOST PC GUI to the RT Module applications. I am exchanging the data between GUI and RT Module using the shared variables.
    Now I want to recrate the GUI using the Labwindows. I still want to use the RT application developed in NI Labview.
    So Previously GUI was build in Labview and RT Application running on RT Target is also built in NI Lab view.
    Now I want to Create the GUI in NI Lab Windows CVI and still use the RT Application build in NI Labview.
    Is it Possible to do it. 
    Can any provide any links.
    Waiting for your replies.
    Ramesh.

    Hello Armand -
    Instead of using the LabWindows/CVI implementation of SetSystemTime, you should use the Win32 implementation.  To do this, ensure you've included windows.h as the first include file in your source. 
    Let me know if you have any questions.
    NickB
    National Instruments

  • The process could not execute 'sp_repldone/sp_replcounters' error for Log Reader Agent and SQL Server Assertion 17066 & 3624 errors in SQL Logs

    One of our SQL Server started creating SQLDUMP file and and on investigation I found the error longs are filled with Errors 3624 & 17066. There is transnational replication configured on one of the databases is the LogReader Agent is failing error "The
    process could not execute 'sp_repldone/sp_replcounters' on XXXXX". 
    Not sure if both these Assertion & Logreader Agent errors are related. Before I remove and put the replication, I wanted to check if anyone has experienced the same issues or aware of what the cause. 
    ***********Error messages from SQL Logs******
    **Dump thread - spid = 0, EC = 0x0000000111534460
    Message
    A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider running DBCC CHECKDB. If you agreed to send dumps to
    Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical Support.
    Error: 3624, Severity: 20, State: 1.
    SQL Server Assertion: File: <logscan.cpp>, line=2123 Failed Assertion = 'UtilDbccIsInsideDbcc () || (m_ProxyLogMgr->GetPru ()->GetStartupState () < RecoveryUnit::Recovered)'. This error may be timing-related. If the error persists after rerunning
    the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
    Error: 17066, Severity: 16, State: 1.
    External dump process return code 0x20000001.
    External dump process returned no errors.
    Thank you in advance.

    You need to determine if this error is a transient one or a show stopper one.
    It sounds like your log reader agent has crashed and can't continue.
    If so your best bet is to call Microsoft CSS and open a support incident.
    It also sounds like DBCC CHECKDB was running while the log reader agent crashed.
    If you need to get up and running again run sp_replrestart, but then you might find that replicated commands are not picked up. You will need to run a validation to determine if you need to reinitialize the entire publication or a single article.
    I have run into errors like this, but they tend to be transient, ie the log reader agent crashes, and on restart it works fine.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • I use LabWindows/CVI and SCXI modules, how can i check the polarity of a capacitor during an ICT?

    I am a newbie using CVi Lab Windows and SCXI modules, how can i perform ICTs to check the proper polarity of a capacitor?

    Hello,
    That's a big question for a single sentence. Could you give some more details about the hardware you have, and the measurements you want to take?
    By the way, when you say ICT, do you mean In-Circuit Test or something else?
    Thanks,
    John N
    Applications Engineer
    National Instruments

  • LabWindows/CVI and IMAQ - Invalid Image Type when saving bitmap

    I create and image, grab it, then display it, but when I go to save it using imaqWriteBMPFile, I get an error that maps to Invalid Image Type, so I use imaqCast to cast it to an IMAQ_IMAGE_U8 type (which is what the orignal image was created as), then it works, except that my image has changed, that looks like the contrast or something has changed. Any suggestions?
    Attachments:
    image.bmp ‏302 KB

    What kind of camera & IMAQ board are you using? I have seen similar problems when a 12 bit camera is used. The image is acquired as a 16 bit image, and if you just convert it to an 8 bit image, it ends up looking like the one you attached. To correctly convert to 8 bits, you need to shift the appropriate number of bits during the conversion. For a 12 bit camera, that would be 4 bits.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Labwindows​/CVI and Corba

    Hi all,
    can somebody give me a little hand on this one. Is there somebody out there
    that knows if there is any support for Corba in labwindows. Info or
    library's ???
    With kindest Regards
    Bart de Rouck

    Since 11 years are you still waiting for some informations
    I'm really interested in. Any indication that lead me on my way would be awesome.
    Regards
    Petey

  • Visual Studio or LabWindows/CVI?

    I have a bit of a dilemma.
    I currently own Visual Studio 2010, IMAQ Vision Development Module 2013, and Measurement Studio (not sure of version). I currently do all of my programming in VB.net. Because IMAQ VDM is stuck in .Net framework 3.5 and there will be no further .net development by NI, I need to plan for the future. My applications need run on Win 8, 9, 43, or whatever my company decides to migrate to from Win 7.
    My understanding is that the NI modules I currently own will work with LabWindows/CVI. Correct? I also believe I can use them with C++ using the VS IDE. Is this also correct?
    Within my applications I do a lot of interfacing with Excel, writing text files, and interfacing to non-NI devices (cameras, DAQs, scanners, etc). I am able to do these things pretty easily using VB.net using vendor-provided SDK's.
    Therefore, my question is this...given the investment I have in software already, do I gain anything by migrating to LabWindows/CVI? What do I lose?
    I should point out that regardless of the path I choose I will need to bone up on my programming skills in the corresponding language.
    Thanks for all your help!

    Hello Steverino!
    Here are some advantages when using LabWindows/CVI over Visual Studio, which make the product more suitable for various industry-related applications:
    You are correct, LabWindows/CVI integrates with the NI platform: NI hardware and software, like TestStand or LabVIEW (e.g. debugging source code from one software to another, seamlessly).
    NI hardware and third-party hardware connectivity.
    OpenMP support.
    CVI integrates with intrument control.
    CVI Run-Time benefits from User Protection.
    Run-Time checking (e.g. for uninitialized variables).
    Scientific User Interface Controls and GUI Editor.
    Advanced debugging capabilities:
    Remote debugging support from ADE.
    Real-Time debugging support from ADE.
    Memory leak detection using the LabWindows/CVI Resource Tracking Window.
    Just-In-Time debugging.
    Deployment: build custom installers and patches that you can ship as stand-alone easy-to-use installers.
    LabWindows/CVI libraries: Advanced Analysis, Toolbox, Connectivity (Network Variables, Network Streams, DataSocket), etc.
    Support for LabWindows/CVI Toolkits: SQL Toolkit, Vision, PID, RT.
    Regards,
    - Johannes.

Maybe you are looking for

  • How to call a static method in a class if I have just the object?

    Hello. I have an abstract class A where I have a static method blah(). I have 2 classes that extend class A called B and C. In both classes I override method blah(). I have an array with objects of type B and C. For every instance object of the array

  • Brand new IPod Touch frozen

    My son's brand new ipod touch went to a blank screen and now won't do anything. Even when we hold the sleep button for more than ten seconds nothing happens. Should we return it to the store? He just got it last night.

  • Inserting long text in a programmatically created table

    Hi there! I have to create, in a programmatic way, a 2dtable where some cells have to contain a long string. As it seems to be not possible to have an automatic word-wrap, I triend to insert carriage return/line feed (vbCrLf) inside my string, but th

  • Is there a cd slot on my new iMac

    IS THERE A SLOT TO PUT CD IN THE IMAC NEW COMPUTER

  • Two applications sharing database

    Hi, I have one database with information and two different applications who both can read and write in that database. But how can i implement that if one application is writing in the database that the other one can't access the database?