Why do I get a class conflict between the Prepare SQL.vi and the Get Column Name.vi with the SQL Toolkit compatibility vis from the Database Connectivity Toolkit?

I have done extensive programming with the SQL Toolkit with LabVIEW versions through 6.1. My customer now wants to upgrade to Windows 7, so I am trying to upgrade to LabVIEW 2009 (my latest purchased version) using the Database Connectivity Toolkit, and the SQL Toolkit Compatibility vis. Everything seemed to be going okay with the higher level SQL operations, but I ran into trouble with the Get Column Name.vi. 
The pictures below show the problem. The original SQL Toolkit connected the Prepare SQL.vi with the Get Column Name.vi with a cluster of two references, one for connection, and one for sql. The new compatibility vis have a class conflict in the wire because the Prepare SQL.vi contains a cluster with connection, and command references, but the Get Column Name.vi expects a cluster with connection and recordset references. 
How do I resolve this conflict?
Thank You.
Dan

I've never worked with the old version of the toolkit, so I don't know how it did things, but looking inside the SQL prep VI, it only generates a command, and the the column name VI wants a recordset. I'm not super familiar with all the internals of ADO, but my understanding is that is standard - you only have the columns after you execute the command and get the recordset back. What you can apparently do here is insert the Execute Prepared SQL VI in the middle and that will return what you need.
I'm not sure why it worked before. Maybe the execute was hidden inside the prep VI or maybe you can get the column names out of the command object before execution. In general, I would recommend considering switching to the newer VIs.
Try to take over the world!

Similar Messages

  • Why am I getting a blue box with question mark instead of logo image?  It happens in my signature (in gmail) and in mailchimp (again, only with the logo).

    Why am I getting a blue box with question mark instead of logo image?  It happens in my signature (in gmail) and in mailchimp (again, only with the logo).

    The question mark in the box, if it looks like this:   means that safari cannot find the linked image.  On windows machines, this would be the equivilant of  the small "page-with-a-red-X" logo that appears in the same scenario.  Check the reference to the image and make sure that the image is in the correct location, and is accessable by the reference.

  • Is there a conflict between Safari 4.0.3 and the latest version of FlashPlayer? Everytime I try to download, FP ends up in "Disabled Plugins" in my Library, and I can't move it out of there.

    Is there a conflict between Safari 4.0.4 and the latest version of FlashPlayer? I have tried repeatedly to download and install the latter. Instead of properly installing, FP ends up in my Disabled Plugins folder in my Library. Help!

    Safari 4.0.4 or 4.0.3 ??  your profile shows you are running v10.6.8.
    If you are running v10.6.8, click your Apple menu  / Software Update. The current version of Safari is 5.0.5.
    Then if necessary, reinstall Flash.

  • Why is my iPhones volume silent only between the hours of 8pm and 7am when the night selection isn't selected? How can I fix my iPhone 4 problem?

    Why is my iPhones volume silent only between the hours of 8pm and 7am when the night selection isn't selected? How can I fix my iPhone 4 problem?

    May be you have turned the DO NO DISTURB in your iphone settings.
    Check as below DND settings
    Settings>>Do Not Disturb
    If you are iPhone is on version iOS 5.X there was a bug which does not let the DO NOT DISTURB function properly.
    SO, its better you to latest iOS version 7.0.4, no other versions of iOS are signed by APPLE hence forth.

  • Why cant i get automatic translations of forain web pages like i do from chrome.

    why cant i get automatic translations of forain web pages like i do from chrome from Firefox

    You can look at extensions like these:
    *FoxLingo: https://addons.mozilla.org/firefox/addon/foxlingo-translator-dictionary/
    *ImTranslator: https://addons.mozilla.org/firefox/addon/imtranslator/
    *Translate This!: https://addons.mozilla.org/firefox/addon/translate-this/

  • Why do i get an error message when i try to transfer photos from my pc to my ipad

    why do i get an error message when i try to transfer photos from my pc to my ipad

    Don't know why, what exactly is the error message?

  • Why do I get an error page when I select Toolkit for CreateJS? I am using CS6 Flash Pro.

    Why do I get an error page when I select Toolkit for CreateJS? I am using CS6 Flash Pro.

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • Why do I get a blue box with ? In Safari with my iPad?

    Why do I get a blue box with ? In Safari with my iPad?  It appears to be where pictures should be.  Very annoying when trying to read through an explanation of something and I get this dang blue box.

    It's usually some graphics element that the iPad can't handle. Maybe it's a flash image, maybe it has another protocol that the iPad just can't display. NO way to say for sure without viewing the same page on a computer then checking the file type.

  • HT201471 Why did I get a 2011 model ipad when I just purchased it from apple?

    Why did I get a 2011 model ipad when I just purchased it from apple?

    If you ordered an "iPad 2" (as shown in your profile), that model was created in 2011. The current model is called "iPad with Retina Display" (or "iPad 4" colloquially).

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • Getting column names using EJB3.0

    Hi,
    Could someone help me how to get column names in EJB3.0.
    I am having reference to folloiwng ejb.
    @Entity
    @Table(name = "users")
    @org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
    @SequenceGenerator(name = "users", sequenceName = "users")
    public class User {
    private Long userId;
    private String username;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "users_seq")
    @Column(name = "user_id")
    public Long getUserId() {
    return userId;
    public void setUserId(Long userId) {
    this.userId = userId;
    @NotNull
    @Column(name = "username")
    public String getUsername() {
    return username;
    public void setUsername(String username) {
    this.username = username;
    Thanks in advance

    You shouldn't be getting column names from EJBs.
    You need to know the object, the schema, and how to map one to the other.
    So you should look at the SQL table "users" and map this object to it.
    %

  • HT1771 why did apple erase ichat? its so much better than messages and now I cant video chat with my ichat buddies

    why did apple erase ichat? its so much better than messages and now I cant video chat with my ichat buddies!!!

    HI,
    Apple did not erase iChat.
    Messages in Mountain Lion is iChat +
    The plus bit is the fact you can iMessage iOS devices.
    All the other features that were in iChat are still there.
    If you upgraded Lion to get to Mountain Lion then in System Preferences > Mail, Contacts and Calendars you probably list all the iChat Accounts (Screen Names and IDs).
    You may need to enable them for Messages.
    They should also show up in Messages Menu > Preference > Accounts
    Once those accounts (AIM and Jabber) are Enabled they can be viewed in a Combined Buddy List
    Windows Menu > Buddies (Or using CMD + 1 Keystrokes)
    In the General Section of the Preferences you can Unlink these Buddy lists.
    The Green icons or highlight a Buddy and then using the Buddies Menu or the icons at the Bottom of the Buddy list can be used the same way to start Video or Audio Only chats.
    The iMessage "Account" is only for texting iOS devices or other people using their Apple ID on a Mac in Messages.
    It is an account "in addition to" rather than "taking over from" the services that iChat can join.
    9:22 PM      Thursday; December 6, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Error while applying a patch "Unable to get the database connection"

    Dear Experts,
    A patch which got successfully applied is failing Production and the error is kind of surprising to me.
    Apps version is 11.5.10.2
    db version is 10.2.0.4
    The worker log file shows
    Time when worker restarted job: Thu Nov 24 2011 22:14:52
    Start time for file is: Thu Nov 24 2011 22:14:52
    adjava -ms128m -mx256m -nojit oracle.apps.fnd.odf2.FndXdfCmp &un_apps &pw_apps &un_apps &pw_apps &jdbc_protocol &jdbc_db_addr table &fullpath_pa_patch/115
    Reading product information from file...
    Reading language and territory information from file...
    Reading language information from applUS.txt ...
      Temporarily resetting CLASSPATH to:
      "/erp/oracle/prodappl/ad/11.5.0/java/adjri.zip:/usr/java14/jre/lib/charsets.jar:/usr/java14/jre/lib/core.jar:/usr/java14/jre/lib/graphics.jar:/usr/java1
      Calling /usr/java14/bin/java ...
    Exception occured
                  Copyright (c) 2003 Oracle Corporation
                     Redwood Shores, California, USA
             XDF(XML Object Description File) Comparison Utility
                            Version 1
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    Unable to get the database connection using schema username/passwordIo exception: The Network Adapter could not establish the connection
    AD Run Java Command is complete.
                         Copyright (c) 2002 Oracle Corporation
                            Redwood Shores, California, USA
                                        AD Java
                                     Version 11.5.0
    NOTE: You may not use this utility for custom development
          unless you have written permission from Oracle Corporation.
    AD Worker error:
    The above program failed.  See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Thu Nov 24 2011 22:14:53
    {code}
    The error says database connection error.  I am able to connect to the database using sqlplus.  I tried to restart the failed worker, but the same error is repeating. 
    Any help would be appreciated.
    Thanks
    qARS
    Edited by: user7640966 on Nov 24, 2011 9:07 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hussein,
    One thing which I noticed now is in the apps Tier the
    tnsnames.ora under $TNS_ADMIN
    shows entry like this:
    PROD=
            (DESCRIPTION=
                    (ADDRESS=(PROTOCOL=tcp)(HOST=<appsServerName>)(PORT=1521))
                    (ADDRESS=(PROTOCOL=tcp)(HOST=<dbServer>)(PORT=1521))
                (CONNECT_DATA=
                    (SID=PROD)
            )Actually *(ADDRESS=(PROTOCOL=tcp)(HOST=<appsIPaddress>)(PORT=1521))* this line in the tnsnames.ora is not correct. In fact the appsServerName should be replaced with dbServerName
    I deleted the tnsnames.ora and reran autoconfig but it is again recreating the same entry.
    Any clue how this can be fixed?
    Thanks
    qARS

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • Switching between the firewire connection and USB 2.0 Connection

    Is it possible to switch between the firewire connection and USB 2.0 Connection on a portable external hard drive? I've tried unsuccessfully to use the firewire connection on my external hard drive after using the 2.0 connection. No machine will read the drive if it is connected via the firewire port. Using USB 2.0 it works as intended.

    Hello Grizzly Marmot,
    Thank you for the feedback. So probably my old MAXTOR enclosure is playing me tricks ....
    Last night the backup on my USB 2.0 was terribly slow ??? The incremental duplication of my hard drive (372.9 MB of data from 35GB of complete data) gave me these stats:
    Copied : 6232 files, 372,9 Mo
    Average : 8,8 Mo/minute (4,5 copying, 148,1 verifiying)
    Just to analyse the drive it takes ±45 minutes ??? Also could the energy saving mode be a slow down factor (the suspension of the computer is NEVER) ???
    I still wonder what speed I could experience for a wireless backup to a NAS drive ??
    Thanks for helping.
    Robert

Maybe you are looking for