Problem connecting SQL toolkit Win7

I use CVI 2013 and tto toolkit (2.2) of SQL to connect to a mySQL database.  I can connect to properly using my development computer, but not with the target.  Both computers are running 64-bit Windows 7 Professional (SP1).  I used to start the 64-bit ODBC drivers (mysql-connector-odbc - 5.3.2 - win64.msi) on both machines.  After I got hurt, I found an article in the Knowledge Base which indicated that I should probably use the 32-bit instead.  So I deleted the drivers of the target and installed those 32-bit using odbcad32.exe found in Windows/SysWOW64.  No change.

I use the sample browser2.prj project included with the SQL Toolkit (default: C:\Users\Public\Documents\National Instruments\CVI\samples\sql\apps) to test the functionality of the SQL tool.  I create a distribution kit, including the runtime shared on the development computer and install it on the target.  I traced the problem to the call of DBSources() - it returns a - 100 (who, the hand is not among the list of database error codes).

On both machines the ODBC drivers seem to work.  I can get to the database using Panel-> administration-> Data Sources (ODBC) tools.  Select the user DSN or system DSN database, and then click Configure open the MySQL Connector/ODBC Data Source Connection window.  By clicking Test in this window will connect to the database.

If the problem seems to lie in the way that ICB connects to the database.  I'm naïve now, any suggestions would be greatly appreciated.

Sorry if this is a stupid question:

Have you followed the instructions help-> Reference Library-> library Toolkit SQL-> SQL language reference-> distributing a SQL Toolkit executable or a DLL?

Or is it a mistake you get despite following these instructions?

Tags: NI Software

Similar Questions

  • SQL toolkit connection problems on ICB

    Hi all.

    I wrote this post because I'm not able to find a solution for the problem of the Telegraph...

    I have developed a program that uses SQL Toolkit, the CVI 9. I have access to a MS Access 97 database, using an ODBC (DSN = MyProgram) connection.

    The program works well, on windows 7 and windows XP (windows xp is the operating system of the end user).

    However, when I install the program on the pc to the end user (windows xp) and then create the DSN user on ODBC connections, I got an error during execution of the program. We mean the error is not possible to connect to the database (its the ODBC connection).

    As I said, on the other machine, different, with windows xp, it works!

    I'm a little lost. Do I need a special component installed to SQL Toolkit fine work?

    The PC with XP where the application works, has the same applications installed as the end user's PC.

    I tried to install on the end user the LabWindows CVI SQL Toolkit with pc, and I checked that when connecting to the DSN will be tried, I get "unknown error."

    Help will be very appreciate!

    Run it on pc without Sql toolkit, you must copy the cvidb32.dll into your your windows system32 folder.

  • problem of memory sql toolkit

    Hello

    We use CVI 2012 and SQL Toolkit 2.2. Once a minute, we're looking a record for a special SQL database and we update the data in this leaflet. After update, let's close the database. Whenever we do this procedure that we see in the Task Manager which increases the memory needs of our program.

    After a few minutes (20-30) we get an error message memory.

    Anyone know if there is a problem to know or can someone help us?

    Thanks in advance

    Oliver

    Here is a part of the code:

    //
    hdbc = DBConnect (DATABASE_STRING);

    //
    HSQL = DBActivateSQL (hdbc, "' SELECT * FROM 'data_l01'" ");

    //
    RW = DBBindColChar (hsql, SQL_DATE, 32, cDB_Date, & iDB_Date_State, "");
    RW = DBBindColChar (hsql, SQL_TIME, 32, cDB_Time, & iDB_Time_State, "");
    RW = DBBindColInt (hsql, SQL_SPEED, & iDB_Clock, & iDB_Clock_State);

    Flag, ob der entry found wurde loeschen
    iFoundFlag = 0;

    Find the folder that we want to update
    While ((rw = DBFetchNext (hsql)) == DB_SUCCESS)
    {
    //
    If ((StrICmpWithoutSurrWhiteSpace (cDB_Date, cDate) == 0) &)
    (StrICmpWithoutSurrWhiteSpace (cDB_Time, cTime) == 0))
    {
    Flag, ob der entry found wurde set
    iFoundFlag = 1;
    break;
    }
    } / / Ende von find the folder that we want to update

    Daten uebernehmen
    iDB_Clock = Mutec;

    Insert the record into the database
    RW = DBPutRecord (hsql);

    //
    RW = DBDeactivateSQL (hsql);

    //
    RW = DBDisconnect (hdbc);

    Hi Oliver,.

    To read your code, I understand that you open a connection to the database for each update that you want to run.

    Usually I would advice you to open the database connection to the start once this reference until the program is closed instead of open every time.

    This could potentially solve your problem.

    Please let me know if that solves your problem.

    Best regards

    Raphael

  • Having problems with SQL Developer connection to the database on a LINUX machine

    Having problems with SQL Developer connection to the database on a LINUX machine
    Hello
    I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
    Status: Failed - Test has failed: the network adapter could not establish the connection


    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    and TNSPING
    tnsping 172.x.x.x
    
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$
    Tnsnames.ora on Linux,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )
    )
    Listner on Linux,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    )
    )
    
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )
    )
    hosts/ect/Linux,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBilling
    and there is no problem to ping linux from windows

    Published by: user11309581 on April 11, 2013 15:16

    user11309581 wrote:
    as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
    tatus: failed - Test has failed: the network adapter could not establish the connection

    It's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.

    This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with

    c:\ telnet 172.x.x.x 1521
    
  • Connection problem with SQL Developer 3.0.0.4

    I have a strange problem with SQL Developer (SD) 3.0.0.4. So that the implementation of a new connection I have in double entries listed for some of the databases listed in my TNSNAMES.ora file. When I try to connect to one of the databases has entered duplicated, I get the following Oracle error:
    ORA-01034: Oracle not available ORA-27101: Kingdom does not exist SVR4 shared memory error: 2: no files or directory
    however, if I try to connect to the same database using SQL * more or TOAD, it works perfectly and TOAD has no duplicates.

    At first, I thought maybe that SD has been reading multiple copies of the TNSNAMES.ora so I checked and removed all the duplicate files and set the variable of environment TNS_ADMIN to point to that and the single instance of the TNSNAMES.ora file. Yet once, SQLPlus and TOAD to work fine, but SD is always showing entries twice and always have reported the above error when I try to connect to a database with a duplicate entry. I should mention, I'm able to connect to the database that have only a single entry listed use SD.

    If I understand correctly, SD uses JDBC as underlying connection mechanism. Based on this "agreement" I thought that maybe I had a file corrupted in the Java Cache, so I cleared the cache, but I always get errors.

    As mentioned, I use SQL Developer 3.0.0.4 with Java 1.6.0_11 (included in the download). In addition, I have installed JRE 1.6.0_24 and I am running Windows XP SP3. Any ideas or suggestions are greatly appreciated.

    Craig...

    Hi Craig,.

    Or, if I have misunderstood completely the scenario you describe, here's a post on the forum about duplicate entries appear in the drop-down list Alias network when the connection Type is TNS:

    Developer SQL 2.1.0.63 TNS name in characters of the connection

    This solution involves clean a bad TNSNAMES. ORA file with double score entries to test the death of SID.

    -Gary

  • -What is the function of SQL or API Availble in SQL Toolkit 2.2 connection (Urgent)?

    Hello

    I have to build an application using LabWindows 2010 and SQL Toolkit 2.2. Is there any function or dll or api availble so that I do not want to link in the ODBC Control Panel.?

    Concerning

    Umer


  • Database MySQL with SQL Toolkit

    Hello

    We use CVI 2012 and the SQL Toolkit 2.2 and we want to connect to a MySQL database.

    The MySQL database has been created with MySQLServer. When we try to connect with the BD connection, we get an error.

    How can connect us to the MySQL database?

    What do we have to type in the connection string to the DB? What is the name of the database, the path to the database or anything else?

    Have experience with the SQL toolkit?

    Thanks in advance

    Oliver

    You must install the mysql odbc connector and then create an ODBC dns for your database.

    Control Panel, administration, odbc

  • CVI sql toolkit

    Hello

    We use the CVI 2012 and the last sql toolkit. We want to find and update the data in a mysql database. But we have the problem that we still get an error message.

    Here's our code:

    // -----------------------------------------------------------------------

    initialisiert das SQL Toolkit
    DBInit (DB_INIT_MULTITHREADED);
    DBInit (DB_INIT_SINGLETHREADED);

    //
    sprintf (String, "DSN = SYSTEM_DATABASE; Server = 127.0.0.1; Basis of data = backup_demo8; UID = root; PWD = admin");

    //
    hdbc = DBConnect (String);

    //
    HMAP = DBBeginMap (hdbc);

    //
    RW = DBMapColumnToInt (hmap, 'speed', iSpeed, & iSpeedState);
    RW = DBMapColumnToChar (hmap, "datetime", 32, cDateTime, & cDateTimeStat, "");

    Activate the map
    HSTMT = DBActivateMap (hmap "plots");

    Find the folder that we want to update
    While ((rw = DBFetchNext (hstmt)) == DB_SUCCESS)
    {
    //
    If (StrICmpWithoutSurrWhiteSpace (cDateTime, ' 05:37 "" ") == 0)
    break;
    }

    //
    iSpeed = 10;

    Insert the record into the database
    RW = DBPutRecord (hstmt);

    //
    RW = DBDeactivateMap (hmap);

    //
    RW = DBDisconnect (hdbc);

    // -----------------------------------------------------------------------

    When we call the cmd DBPutRecord we get the attached error message

    Can someone help us?

    Thanks in advance

    Best regards

    Oliver

    Hello

    I found a solution in the meantime:

    The Board features seem to be the problem. A google search I found a few comments about similar problems.

    Using the SQL functions activate 'normal', it runs.

    Here is my solution:

    // -----------------------------------------------------------------------

    initialisiert das SQL Toolkit
    DBInit (DB_INIT_MULTITHREADED);
    DBInit (DB_INIT_SINGLETHREADED);

    //
    sprintf (String, "DSN = SYSTEM_DATABASE; Server = 127.0.0.1; Basis of data = database_l01; UID = root; PWD = admin");

    //
    hdbc = DBConnect (String);

    //
    HSQL = DBActivateSQL (hdbc, "' SELECT * FROM 'data_l01'" ");

    //
    RW = DBBindColChar (hsql, SQL_TIME, 32, cTime, & cTimeStat, "");
    RW = DBBindColInt (hsql, SQL_SPEED, iSpeed, & iSpeedState);

    Find the folder that we want to update
    While ((rw = DBFetchNext (hsql)) == DB_SUCCESS)
    {
    //
    If (StrICmpWithoutSurrWhiteSpace (cTime, ' 05:34 "" ") == 0)
    break;
    }

    //
    iSpeed = 15;

    Insert the record into the database
    RW = DBPutRecord (hsql);

    //
    RW = DBDeactivateSQL (hsql);

    //
    RW = DBDisconnect (hdbc);

    // -----------------------------------------------------------------------

    Thank you and Bravo to me :-D

    Oliver

  • mySQL and SQL Toolkit 2.0

    Hello

    I use a database mySQL and sql toolkit 2.0 in application of Labwindows CVI.

    I have a problem when the database increases in size. Indeed, when the number of records reached 3 million, the program memory is 1.7 GB. So, it stops on an Out of Memory error.

    The program memory increases when I use the DBActivateMap function, before adding the records.

    For now, I use the following method to add records:

    DBBeginMap

    DBMapColumnToDouble

    DBMapColumnToDouble

    ...

    DBActivateMap

    DBCreateRecord

    DBPutRecord

    Will there be another opportunity to open the table and add records?

    Thank you for your help.

    Benjamin

    Hello

    Have you tried to use sql statement directly to y to insert a data, for this, you can use this function:

    DBActivateSQL

    And for the sql statement you can use:

    Table INSERT [] [(GBA)]
    {VALUES (list_of_value) | requete_select |} DEFAULT VALUES}

    Kind regards

  • When I try to print on a printer connected to my win7 I get code "printer not responding" 105-100003

    How to fix error code 105-100003

    I am running windows7 on my host network and vista on the other computer. I am able to connect to the correct internet on vista computer, but when I try to print on a printer connected to my win7 I get code "printer not responding" 105-100003. I printed before and I have not changed or added to any software since. Both computers are desktop computers and connected by ethernet cable. I have run diagnostics and checked all cables. I have a modem 2 son I had about 2 months.

    Hi, Jimmy.

    Make the printer and model would be useful.  Thank you.

    Try the following:

    If your printer is connected via a wireless network:

    1. Make sure that your printer is turned on. (Start button / stop is turned on).
    2. Make sure that the blue LED of Wi - Fi on the front of the printer is on and stays on.
    3. When the blue LED on Wi - Fi from your printer stays on (not flashing):
      • If the error ' printer does not "occurred while you have been setting up the printer:
        1. Open Software Center.
        2. Select the tools of the printer, and then select Printer Setup Utility (under Tools).
        3. Follow the on-screen instructions to set up the printer.
        4. Try to use the printer again.
      • If the error occurred after you completed the roll-out of your printer from Home Center Software:
        1. Make sure that the print queue is online.
        2. From your computer, click Start > settings > printers and faxes (or start > printers and faxes).
        3. Click on your printer.
        4. In the printer menu, make sure that use printer offline is not checked.
          NOTE: These steps may vary depending on your operating system.
        5. Try to use the printer again.

    If the error persists:

    1. Remove the printer from your computer.

      1. Select start > settings > printers and faxes.
      2. Right click on your printer, then click on remove.
    2. If your computer is WINDOWS VISTA or WINDOWS 7 OS, turn user account control.
      1. Select start > Control Panel.
      2. Double-click user accounts.
      3. Click turn user account control on or turn it off.
      4. Select the check box use user account control.
      5. Click OK.
    3. Configure the printer again.
      1. Go to start > programs > Kodak > Kodak Printer Setup Utility.
      2. Follow the on-screen instructions to set up your printer.
    4. Try to use the printer again.

    If the error persists:

    1. If you have updated to the Home Center Software v6.x or greater, disable the Hello Service.

      1. Select start > run.
      2. Type services.msc in the box, and then click OK.
      3. Locate and right click on the Hello Service and select Properties.
      4. Since the "Startup type:" drop-down list, select Disable.
      5. Click OK.
      6. Locate and right click on the network AiO Kodak Discovery Service, then select restart.
    2. If you configure your printer, run the KODAK printer setup utility.
      1. Select start > programs > Kodak > KODAK Printer Setup Utility.
      2. Follow the on-screen instructions to set up your printer.
    3. Select the Hello Service.
      1. Select start > run.
      2. Type services.msc in the box, and then click OK.
      3. Locate and right click on the Hello Service and select Properties.
      4. Since the "Startup type:" drop-down list, select automatic.
      5. Click OK.
    4. Try printing from the center of renovation again.

    If the error persists:

    1. Make sure that any firewall software blocking the required services and that it does not block the firewall of the router. See cannot use a wireless printer to computer on the same network with firewall security program.

    NOTE: If you use BitDefender Total Security 2010, the problem can be solved by turning on the game mode in the firewall. If it does not turn on the game mode, temporarily disable the firewall to enable wireless printing.
  • Make sure your computer is not connected to a virtual private network (VPN) or wireless home another network of safe working when you use the printer on your network. See using printer with the virtual private network (VPN).
  • Check that your printer is not connected to the network trouble with the same name (routers with the same default SSID in your area). It is common for users to keep the value by default, out-of-box, SSID as the manufacturer provides (for example the linksys). If your router still has the default SSID, change the SSID under a new name specific to your router.
  • NOTE: updated to the latest version of the firmware of the printer and the software when prompted will help you have the most reliable connection possible. Go to www.kodak.com/go/aiodownloads.

    If the error persists, contact us.

    http://support.en.kodak.com/app/answers/detail/A_ID/36674/selected/true

  • Problem with SQL Loader ODI

    Hello

    I have problems using SQL Loader with ODI. I am filling an oracle table with data from a txt file. Initially, I had used 'File to SQL' LKM, but due to the size of the file (700 MB) source, I decided to use 'file to Oracle (SQLLDR)' LKM.
    The error that appears in myFile.txt.log is: "SQL * Loader-101: invalid argument for the name of user and password.

    I think the problem might be in the definition of the database server (physical JavaBeans in topology), because I left empty Host, user and password.

    What is the problem? What host and user should I use? With "File to SQL" works fine living that white, but takes too much time.

    Thanks in advance

    Note the last * @*. He expects a connection string after him.

    So, goto Oracle server topology, specify Instance/Dblink (server) as the SID of the oracle database you want to connect.

  • Problem connecting to the server

    Whenever I open the pictures, I get an alert that reads: 'there was a problem connecting to the server "my-server", which is another Mac on my network.

    If I close the dialogue box, Photos keeps trying to connect and it appears again a few seconds later.

    Does anyone have an idea as Photos is all this and how I can stop doing?

    No idea - don't forget we can not see you if you have details

    We do not yet have an idea what software you use or you use 'MyServer' for

    What are the versions of the operating system and Photos do you use? What is your server? How are you connected to it?

    LN

  • Problem connecting to the server after moving

    Hi, I keep getting the message "there is a problem connecting to the server"192.168.0.19"etc. This happened after I moved. New ISP, new router. I have an Airport Express and a NAS connected to it. Time Machine and Icloud on the NAS. I think that the NAS has this IP address before moving. There are now 192.168.10.176. Everything works, but I get the pop up frequently.

    I look at the accounts and start but nothing. I reboot safe mode does not remove the problem. So, what can I do?

    I'm on Yosemite with MBR.

    Can you connect using the new IP address?

  • There was a problem connecting to the server 'SERVER NAME' error guard appearing

    There was a problem connecting to the server 'SERVER NAME' error guard appearing even though the server is not on my current network.  I recently moved my iMac to a different location and a different network, and now he constantly tries to connect to the old server.  This message appears every 30 seconds and several of those who appear (see pictures) it's extremely frustrating because it makes the machine almost useless because I am constantly closing them.  No matter how many times I try to stop the activity monitor it it keeps reappearing, and I even tried a few terminal commands that I found online, then restarted the computer, but still had no success.  I would appreciate all the advice really.

    I hope that gives you an idea of what I got!

  • Problems connecting to a site I never had problems before

    Hello
    I don't know if my current problem is related to the LENGTH of the questions that I posted earlier today. This morning I logged on a website as usual, but tonight, I have a problem connecting to. When I can I connect, I can not use the services. First of all, I have a new page greeted me that I've never seen before.

    Another thing, should I say that I don't have the latest FF browser when I click on help == > Feedback. Today, I downloaded the latest version 19.0.2.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    If clearing cookies doesn't work, then it is possible that the cookies.sqlite file that stores the cookies is corrupted.

    Rename (or delete) cookies.sqlite (cookies.sqlite.old) and delete other files to present as cookie cookies.sqlite - journal in the profile folder of Firefox in the case where the cookies.sqlite file has been corrupted.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file

Maybe you are looking for

  • Tecra S1: Empty screen and beep error Code appears

    Hello I have a toshiba tecra s1 and it no longer works, and I don't know why. When I start the laptop there is nothing wrong, but after 3 minutes or if the screen is not responding. Then I tried to reboot, it gives a black screen and beeps. The beeps

  • Sign third-party LDAP in the Profile Manager

    Hello We have implemented the LDAP authentication against our OpenLDAP Ubuntu Server that works very well for all services except the Profile Manager. I can't see groups or users in the web UI of PM. Connection under server.local/mydevices does not w

  • Get Queue Status output / empty the queue

    Hey everybody, I am trying to create the program that will record all the data in a queue after a number / deadline is met. However, when you try to save the output of the Flush queue / status of the queue, I'm not sure how to proceed. My original en

  • Ask about OTG on Lenovo A6000 support more

    Hello I want to know if the new Lenovo A6000 launch more (launch on flipkart, 28 April 2015) a OTG, supported or not. Kind regards Vipin

  • Need help to install Vista on a netbook with XP

    Several problems here. I'm shooting for is to install Vista on my Dell netbook (model 1011). As it is not a dvd player... I can't use the Vista installation dvd. I'll settle for dual-boot XP and Vista if there is a way to cram in there. If there is a