Why do SQL sample programs work when there is no entry for the data sources in the ODBC Data Source Administrator that are used by the sample program?

Hi,
I am trying to understand how to access an SQL database from CVI.  
I don't understand how the sample programs shipped with the toolkit can access the database they use if it is not listed in the ODBC Data Source Administrator.
In the code, I see the line:
hdbc = DBConnect ("DSN=CVI SQL Samples");
However, there is not an entry that I can find in the ODBC Administrator for "CVI SQL Samples."
The SQL help suggests there should be a User DSN named, "CVI32_Samples", but I don't see that entry in the ODBC Administrator on my win-7 system.
I believe the sample program is accessing a database file named, "C:\Users\Public\Documents\National Instruments\CVI\Samples\sql\samples.mdb".
Exactly how is the call to DBConnect() translated to the file, "samples.MDB", if there is no entry in the ODBC Administrator?
Regards,
Mark 

I figured it out.  There is a 32 bit ODBC administrator and a 64 bit ODBC administrator.  The ODBC administrator I run through the control panel is the 64 bit ODBC administrator. To access the 32 bit administrator I need to run, "C:\Windows\SysWOW64\odbcad32.exe".
I am running the samples in 32 bit mode, so I need to use the 32 bit ODBC administrator.
Best,
Mark

Similar Messages

  • I recently purchased the newest nano. I have 3 other nano's and iPad   iPhone, oh and iPod touch. When I plug in nano to my mac I get the message "iPod cannot update because it contains files that are used by another application. How can manage this?

    I recently purchased the newest nano. I have 3 other nano's and iPad   iPhone, oh and iPod touch. When I plug in nano to my mac I get the message "iPod cannot update because it contains files that are used by another application. How can manage this?

    dedonred wrote:
    "iPod cannot update because it contains files that are used by another application.
    It means that nano was used on a third-party software or synced from different computer to sync music. Does that nano show in iTunes? If yes, then restore completely. If not, then you may need to head to Apple Store and see what they can do.

  • How to know the List of Tables that are updated through a ABAP Program

    Hi,
    Is there a program or something that will help me to identify the List of Tables that are used in a ABAP program(ABAP Report, Transaction .... program) without debugging it or looking at the dictionary structure.
    I really need this urgently. Try to give me many methods as possible.
    Thkx
    Kishan

    Hi,
    I created a Z-transaction for my SE49 and debugged a little bit - it's not so fantastic any longer - just like the proposal of SE80 - DDIC list.
    SE49 (and I guess similiar functions, too) just scan the source code for a list of key words: tables, select, update, insert, modify, export, import.
    But very (very!) often updates are encapsulated into function modules - and here this technical cross reference (just like SE80 DDIC list) is of no help.
    So a SQL trace (or runtime analysis) is still the best option to get a complete list. Still these tools just analysis one process - if in other circumstances more tables are involved, can't be judged.
    E.g.:
    - creating one new entry: 1 table
    - changing existing entry: 2 accesses to 1 table + log table
    Regards,
    Christian

  • Why does fix capitalization work when there is only one space after the period in pages 09?

    why does fix capitalization work when there is only one space after the period in pages 09?  For example:  "Turn on 3rd St. After the traffic light."  There is only one space after the period in "St."  shouldn't it only auto correct after TWO spaces..??  the word After, should be after..

    You may also use a noBreak space after the period at the end of the abbreviation.
    If I remember well, in such case the capitalization will not apply.
    Yvan KOENIG (VALLAURIS, France) mercredi 27 avril 2011 23:34:46

  • Why this path doesnt work when there is "!DOCTYPE" element?

    Hi, I need to extract contents from an xml file, which looks like
    <hr />
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article PUBLIC "-//ES//DTD journal article DTD version 5.0.1//EN//XML" "xyz501.dtd" > <!-- LINE 1 -->
    <article docsubtype="fla">
    <item-info>
    <jid>YANBE</jid>
    <aid>12941</aid>
    </item-info>
    </article>
    <hr />
    And I have tested with this path "//article/item-info/jid/text()", but it doesnt give me anything. But I noticed that when I remove line 1, it does extract the content "YANBE"...
    why the path doesnt work when there is that DOCYTYPE element? How should I get around with this please?
    Many thanks!

    The extract of XML you gave is not valid (Line 1: <hr/>) but besides that ... I think your problem is in the DTD.
    Somewhere in the DTD it probably 'sneakily' defines a default attribute which in reality is a default-namespace for one of the elements. This means that in your XPath handling, you will have to map a prefix to a namespace-uri (NamespaceContext [1]) and use this newly defined prefix in your XPath expression.
    //tst:article/tst:item-info/tst:jid/text()[1] http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/namespace/NamespaceContext.html

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Why does my MacBook stop working when I tr to plug in my iPad to do some file syncing?

    Why does my MacBook stop working when I try to plug in my iPad to do some file syncing? This is the second time I have had it happen to my MacBook. The computer just shuts down and cannot be restarted. When I plug it into the charger I get a faint Green light where it plugs into the MacBook. When I took the computer into my local Mac store last time this happened (Nov 2012) they reckoned they couldn't find anything wrong with it. Has any body else encountered a similar issue?

    That would be a filter, yes. Didn't know Verizon handed out phone/DSL wall split filters. I would honestly take a look at the physical jack it is connected to for corrosion or lose connections as I doubt the filter is bad out of the box. Anyways, what was the original problem you had with the Phone and DSL that prompted Verizon to send out a filter?
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Why do antimated themes stop working when i re-open my browser?

    I can load any of the firefox themes that are antimated and they work fine. When I close down the browser and go back in the next time the animation no longer works. This has been happening on multiple computers, not just one. It has been going on for months. Just tried again today and same failure.
    I have checked all the things they recommend with no good results,
    THanks!

    See this reply by jorge-villalobos:
    *https://forums.mozilla.org/viewtopic.php?p=40955#p40955
    <blockquote>Animated themes no longer work in Firefox because of performance problems. You can install an animated theme and it will work the first time, but after then it will be static (the reason is that there's code that automatically crops the image to make it smaller). I didn't know (or remember) there was a block for animated themes on AMO, but it makes sense given that we no longer support them in Firefox.</blockquote>
    See also:
    https://forums.mozilla.org/viewtopic.php?f=30&t=20017&p=39585

  • Why does AirPort Extreme stop working when I plug in a USB hard drive?

    Why does Airport Extreme stop working when I plug in a USB hard drive?  The USB drive has its own power supply.  I've tried isolating the hard drive from Airport using a powered USB hub to no avail.

    The USB port on the AirPort Extreme is borderline as far as its ability to supply adequate power to a hard drive. Another way of saying the same thing is that this is not a high power USB port, like you would find on a computer.
    Your 2TB drive likely requires a bit more current than the USB port on the AirPort Extreme can supply. It is also possible that the drive's firmware may not support a network USB connection....only a "local" connection to a computer. Check with Seagate support on that possibility.
    Try using a powered USB hub with the 2TB drive....and make sure that the drive is formatted correctly in Mac OS Extended (Journaled) or FAT32....which the AirPort Extreme USB port can accept.

  • HT4993 why does my internet not work when not connected to wifi?

    why does my internet not work when not connected to wifi

    Hi farmgirl0812,
    Thanks for using Apple Support Communities.  This article has steps to try if you are unable to connect to a cellular network:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Cheers,
    - Ari

  • Why do some apps no work when you plug in car charger?

    why do some apps no work when you plug in car charger?

    Dunno... but if you want need help, provide some details.
    Which apps?  Have you contacted the developer of those apps to ask them?

  • Why does my iTunes stop working when i try to sync music to my iPhone?

    Why does my iTunes stop working when I try to sync music to my iPhone?

    Morning Bandg72,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    Best of luck,
    Mario

  • Why won't my pandora work when I'm not on wifi? I have the cellular data on for it but I never works. Also pandora isn't the only app of mine that does that.. What's wrong with it??

    Why won't my pandora work when I'm not on wifi? I have the cellular data on for it but I never works. Also pandora isn't the only app of mine that does that.. What's wrong with it??

    You're welcome.
    Voicemail is left at your carrier's server. That will continue to work unless you report your iPhone as lost or stolen with your carrier.
    You may never find it again and you can't if the iPhone remains offline or out of service which means the iPhone is powered off or doesn't have cellular reception.

  • HT204266 Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i do?

    Why does only one headphone work when i listen to music? I have to hold the base of the cord in a certain position for it to work, it does this with all headphones i try, what do i have to do?

    You can try cleaning the headphone jack. However, I suspect that th headphone jack needs replacement.
    Apple will only exchange your iPod for a refurbished one for this price.
    Apple - Support - iPod - Repair pricing
    A third-party place like the following is less expensive. Google for more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Why do input tags stop working when I add more tags to my project ?

    I'm having a problem with tags, when I add more input tags to my project the rest of the tags stop responding, that is when I monitor them with the tag monitor I get a low limit error, if I delete the new tags in the project the rest of the tags start working ok, the whole project has 804 tags, and I'm using a Pentium 4 2.8GHz server, 256 Mb RAM and Windows 2000 Advanced Server, Any idea of what could be happening ?

    Hello, I'm attaching the SCF File, the new tags that we created when the problem started are "VoltajeBateriaPozo11" and "VoltajeLineaPozo11" through "VoltajeBateriaPozo15" and "VoltajeLineaPozo15" (new set of tags)
    When this set of new tags are included in the SCF file the tags "VoltajeBateriaPozo1" and "VoltajeLineaPozo1" through "VoltajeBateriaPozo15" and "VoltajeLineaPozo15"
    don't show the correct value when we monitor them (We get the low limit alarm), the rest of the tags work properly.
    When we delete the new set of tags all the tags work properly (including "VoltajeBateriaPozo1" and "VoltajeLineaPozo1" through "VoltajeBateriaPozo10" and "VoltajeLineaPozo10").
    The OPC server we are using is the National Instruments OPC Lo
    okOut Driver Version 4.5, the alarms are not communication alarms.
    Thank you for your help.
    Attachments:
    TurbioTags.scf ‏282 KB

Maybe you are looking for