How to Select Database Path via labview

Hello gurus...........
    I am new user in labview. I want read and write in database through labivew . I have
done read and write program. Now I want choose database storage path through labview .
I tried differnt ways but I couldn't.
First read and write program i did via UDL file path .Now i want Directly choose ".mdb" file path.
I dont know how to do ......
So if you know please help me.....
Thanks advance
Regards
Arunkumar M
India

I think the way the database connectivity toolkit works, it is expecting the database to already exist. The function you are calling creates a table so it probably errors if the file doesn't exist. If you google 'create access database programmatically' you may be able to find something useful for creating a new access database file. Don't forget that you also have the native File I/O functions in LabVIEW for copying/moving files on disk.
For the connection string...there's a handy website here: http://www.connectionstrings.com/
I think you can also open a connection file (UDL) in notepad?

Similar Messages

  • Oracle 11g Installation How to select Database Character Set

    Hi,
    I am Installing oracle 11g R2. After installation I had verified the character set it was AL16UTF16 but I wants to set AL32UTF8 charater set at the time of oracle installation only. I can't see the character set setting opetion at the time of installation because I am selecting the installation option " Install database softerware only" and after installation of oracle software manually I am creating the database. Please help me how can I set the character set at the time of oracle installation or at the time of database creation.
    My question is-
    How can I set the AL32UTF8 character set in above scenario?
    Why It is showing AL16UTF16 character set even I did not define any thing?

    But is there any choice to set the NLS_CHARACTERSET at the time of manually database creation. Actually For creating the database i am using one shell script for seting the parameter values in init.ora file so can I set the parameter at that level(at the time of creating init.ora using manually database creation). like
    ## Original init.ora file created by manual database creation tool on ${DATE}.
    *.aq_tm_processes=0
    *.background_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/bdump'
    *.compatible='10.2.0'
    *.control_files='/$db_file_loc/oradata/$ORACLE_SID/control01.ctl','/$db_file_loc/oradata/$ORACLE_SID/control02.ctl','/$db_file_loc/oradata/$ORACLE_SID/control03.ctl'
    *.core_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/cdump'
    *.db_block_size=8192
    *.db_cache_size=104857600
    *.db_domain='$server_name'
    *.db_file_multiblock_read_count=8
    *.db_name='$ORACLE_SID'
    *.fast_start_mttr_target=300
    *.instance_name='$ORACLE_SID'
    *.java_pool_size=16777216
    *.job_queue_processes=4
    *.large_pool_size=16777216
    *.log_archive_dest='/u05/oradata/$ORACLE_SID'
    *.log_archive_format='$ORACLE_SID_%s_%t_%r.arc'
    *.olap_page_pool_size=4194304
    *.open_cursors=500
    *.optimizer_index_cost_adj=50
    *.pga_aggregate_target=536870912
    *.processes=1500
    *.query_rewrite_enabled='TRUE'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.shared_pool_size=83886080
    *.sort_area_size=1048576
    *.sga_max_size=1048576000
    *.sga_target=536870912
    *.star_transformation_enabled='TRUE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/udump'
    *.utl_file_dir='/export/home/oracle/utlfiles'
    **.nls_characterset='AL32UTF8'*
    EOF
    Is it correct?

  • How to select directory path in a selection screen

    Hi ,
    We can select a file path using the below statement :
    DATA : P_FILE  TYPE RLGRAP-FILENAME.
    But how can the similar be achieved for a directory, that is if one wants to select a folder.
    Folder path can be retrieved from the function : "TMP_GUI_BROWSE_FOR_FOLDER" but this doesnt give us the privilege of displaying the path selected in a parameter form as is with the file type.
    Any kind of help would be apprecialble.
    Thanks!!!!

    Hi,
        Try with below Method
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : p_file LIKE rlgrap-filename MODIF ID ccc.
    SELECTION-SCREEN END OF BLOCK b2.
    *     AT SELECTION SCREEEN                                               *
    AT SELECTION-SCREEN ON VALUE-REQUEST  FOR p_file.
      PERFORM f4_filename.
    AT SELECTION-SCREEN ON p_file.
      IF p_file IS INITIAL.
        MESSAGE 'Please fill the path' TYPE 'E'.
      ENDIF.
    *     START OF SELECTION                                              *
    START-OF-SELECTION.
    *&      Form  F4_FILENAME
    *       Get the file from presenation server
    FORM f4_filename .
      DATA : lit_filetable TYPE filetable,
             lw_rc TYPE i.
    *  Get file from presentation system
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Find File'                 "#EC NOTEXT
    *    DEFAULT_EXTENSION       =
    *    DEFAULT_FILENAME        =
          file_filter             = '*.*'
          initial_directory       = 'C:\'
    *    MULTISELECTION          =
    *    WITH_ENCODING           =
        CHANGING
          file_table              = lit_filetable
          rc                      = lw_rc
    *    USER_ACTION             =
    *    FILE_ENCODING           =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *  Read file name into variable
      READ TABLE lit_filetable INTO p_file INDEX 1.
    ENDFORM.                    " F4_FILENAME
    Regards
    Bala Krishna

  • How to send a path from labview to teststand.

    Hi!
    I have a DLL that I have developed in LabView and as a input parameter I have a path to a file
    but if I in the LabViewCode uses String to recieve the path from TestStand and the path includes \T
    these just disapperes.
    ex:
    I send "C:\test.vi" to LabView from Teststand
    If I check the Path recieved in LabView i get "C: est.vi"
    Instead if I in LabView uses Path to recieve data from TestStand I get an error in Teststand.
    How should I do?
    /Andreas

    Labview strings use the backslash "\" as a special character. \t is a tab, \n is a newline, \r is carriage return, and so on. To send a real backslash use two of them, like \\. So your path string should be "C:\\test.vi".
    - tbob
    Inventor of the WORM Global

  • How to select a path in filebrowser?

    Hi all,
    I want to use the file browser (from FileBrowser.fp). If a path is given (e.g. from history) I want the file to be selected in the file browser, and the directory tree being expanded to the appropriate directory.
    The only function I have found was to set the attribute ATTR_START_PATH which doesn't fit my needs because it limits browsing to this directory (and subfolders), but I want the user to be able to browse everything, including root level.
    Is there a function or an example to preselect a path or a file with path in the file browser?
    Thanks in advance for  your help.

    The way I did this was to use Makepathname and FileSelectPopup functions like so:
    MakePathname ("c:\\", "Whatever.csv", pathname);
    ipath = FileSelectPopup ("c:\\", "*.csv*", ".csv", "Save File As...", VAL_SAVE_BUTTON, 0, 0, 1, 0, pathname);
    if (ipath = 0)
    break;
    This particular case sets the default as a .csv file, but you can have it as any file type. In the first argument of the FileSelectPopup function just set the directory as high up as you like. In my case I wanted to have the whole c drive available. Try this and let me know if it works for you. 

  • How to obtain database connection via PL/SQL

    Dear friends,
    I need to obtain the database name where user is connected - using PL/SQL. That is, if I type "select user from dual" I obtain the connected user; is there some similar way for me to obtain database connection?
    Thanks, and best regards,
    Franklin

    SELECT sys_context('USERENV', 'DB_NAME') FROM dual;
    SELECT sys_context('USERENV', 'INSTANCE') FROM dual;
    You can choose whichever you want to use. :-)
    Instace parameter will give you INSTANCE_ID (matches with GV$INSTANCE) so not that much useful I guess.
    Edited by: Satish Kandi on Oct 6, 2008 9:32 PM

  • ORGANIZER: How to select correct path to the folder to be controlled (Windows 7, GERMAN)

    The path selected automatically is set to users/my_name/pictures, whereas my path on my German OS is Benutzer/my-name/Bilder --> so this does not match, but I cannot change it.

      You may wish to create a new catalog and then try a catalog conversion from Organizer if the existing catalog is listed.
    http://kb2.adobe.com/de/cps/859/cpsid_85996.html
     

  • How to select Video Track Headers via hotkey??

    I want to know how to select seperat tracks via the highlighted headers without having to waste time clicking them seperatel with a mouse to make a fast edit (such as CMD+K). No such info on the googles and the interweb.

    I have set up  Shortcut keys to Toggle all Video (1-9) and all Audio (1-9)
    I use the numbers:  1 - 9 for Video and Shift 1- 9 for Audio.
    I use Click Shift for Toggle ALL. ( although there is a shortcut key available for that also but I have not set up it up.)

  • How to select for insert a long column through database link?

    How may a long column (for example a sql server 2000 text column) be selected for insert into a clob column in table in 10g over a database link without invoking ora-00997?
    I've tried using dbms_metadata_util.long2clob without success over a database link.

    Is the remote database an Oracle database? Or are you selecting data from SQL Server 2000 over a database link via Heterogeneous Services? What is the data type of the column in the remote database (LONG? TEXT? Something else?)?
    Justin

  • How to select a new table in logical database after creating the Infoset

    I have created a abap query report ,i have used logical data base ADA in the infoset in SQ02.In the logical database i had selected only two tables then ANALV and ANLB.Now my client wants one more field to be added and thats is from table ANEK.Now i need to select this table in logical database ADA.
    Please assist on how to select another table available in the Logicaldata base now which i didnt select when i created the query

    Markus,
    I have now selected the additional field Posting date in Document ANEK -BUDAT .Earlier the report had the fields from ANLCV - Current acquisition value ,ordinary dep posted selected for  the output.
    When i run the query after adding this new field ANEK-BUDAT the below warning  is generated  by system :
    The query specifications cannot be used to generate a list,
    i.e. the query will probably not return the list you desire.
    If you still want to execute the query, please use the
    "Generate" function
    -> 'Generate'
    Fields from parallel tables within a line*
    Line: 01
    Field: Posting Date in the Document
    (ANEK-BUDAT, table ANEK)
    Field: Ordinary depreciation posted
    (ANLCV-NAFA GEB, table ANLCV)
    Fields from parallel tables within a line*
    Line: 01
    Field: Posting Date in the Document
    (ANEK-BUDAT, table ANEK)
    Field: Current asset acquisition value
    (ANLCV-LFD KANSW, table ANLCV)
    2 warnings for query QUERY ***
    Please advice .How get this new field added.

  • How to get the path when i select a directory or a file in a JTree

    How to get the path when i select a directory or a file in a JTree

    import java.lang.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.HeadlessException;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Iterator;
    * @author Frederic FOURGEOT
    * @version 1.0
    public class JTreeFolder extends JPanel {
    protected DefaultMutableTreeNode racine;
    JTree tree;
    protected JScrollPane scrollpane;
    final static int MAX_LEVEL = 1; // niveau max de descente "direct" dans l'arborescence
    * Sous-classe FSNode
    * @author Frederic FOURGEOT
    * @version 1.0
    private class FSNode extends DefaultMutableTreeNode {
    File file; // contient le fichier li� au noeud
    * Constructeur non visible
    private FSNode() {
    super();
    * Constructeur par initialisation
    * @param userObject Object
    FSNode(Object userObject) {
    super(userObject);
    * Constructeur par initialisation
    * @param userObject Object
    * @param newFile File
    FSNode(Object userObject, File newFile) {
    super(userObject);
    file = newFile;
    * Definit le fichier lie au noeud
    * @param newFile File
    public void setFile(File newFile) {
    file = newFile;
    * Renvoi le fichier lie au noeud
    * @return File
    public File getFile() {
    return file;
    public JTree getJTree(){
         return tree ;
    * Constructeur
    * @throws HeadlessException
    public JTreeFolder() throws HeadlessException {
    File[] drive;
    tree = new JTree();
    // cr�ation du noeud sup�rieur
    racine = new DefaultMutableTreeNode("Poste de travail");
    // cr�ation d'un noeud pour chaque lecteur
    drive = File.listRoots();
    for (int i = 0 ; i < drive.length ; i++) {
    FSNode node = new FSNode(drive, drive[i]);
    addFolder(drive[i], node); // on descend dans l'arborescence du lecteur jusqu'� MAX_LEVEL
    racine.add(node);
    // Gestion d'evenement sur JTree (on �coute les evenements TreeExpansion)
    tree.addTreeExpansionListener(new TreeExpansionListener() {
    public void treeExpanded(TreeExpansionEvent e) {
    // lorsqu'un noeud est ouvert
    // on descend dans l'arborescence du noeud jusqu'� MAX_LEVEL
    TreePath path = e.getPath();
    FSNode node = (FSNode)path.getLastPathComponent();
    addFolder(node);
    ((DefaultTreeModel)tree.getModel()).reload(node); // on recharche uniquement le noeud
    public void treeCollapsed(TreeExpansionEvent e) {
    // lorsqu'un noeud est referm�
    //RIEN
    // alimentation du JTree
    DefaultTreeModel model = new DefaultTreeModel(racine);
    tree.setModel(model);
         setLayout(null);
    // ajout du JTree au formulaire
    tree.setBounds(0, 0, 240, 290);
    scrollpane = new JScrollPane(tree);
         add(scrollpane);
         scrollpane.setBounds(0, 0, 240, 290);
    * Recuperation des sous-elements d'un repertoire
    * @param driveOrDir
    * @param node
    public void addFolder(File driveOrDir, DefaultMutableTreeNode node) {
    setCursor(new Cursor(3)); // WAIT_CURSOR est DEPRECATED
    addFolder(driveOrDir, node, 0);
    setCursor(new Cursor(0)); // DEFAULT_CURSOR est DEPRECATED
    * Recuperation des sous-elements d'un repertoire
    * (avec niveau pour r�cursivit� et arr�t sur MAX_LEVEL)
    * @param driveOrDir File
    * @param node DefaultMutableTreeNode
    * @param level int
    private void addFolder(File driveOrDir, DefaultMutableTreeNode node, int level) {
    File[] fileList;
    fileList = driveOrDir.listFiles();
    if (fileList != null) {
    sortFiles(fileList); // on tri les elements
    // on ne cherche pas plus loin que le niveau maximal d�finit
    if (level > MAX_LEVEL - 1) {return;}
    // pour chaque �l�ment
    try {
    for (int i = 0; i < fileList.length; i++) {
    // en fonction du type d'�l�ment
    if (fileList[i].isDirectory()) {
    // si c'est un r�pertoire on cr�� un nouveau noeud
    FSNode dir = new FSNode(fileList[i].getName(), fileList[i]);
    node.add(dir);
    // on recherche les �l�ments (r�cursivit�)
    addFolder(fileList[i], dir, ++level);
    if (fileList[i].isFile()) {
    // si c'est un fichier on ajoute l'�l�ment au noeud
    node.add(new FSNode(fileList[i].getName(), fileList[i]));
    catch (NullPointerException e) {
    // rien
    * Recuperation des sous-elements d'un noeud
    * @param node
    public void addFolder(FSNode node) {
    setCursor(new Cursor(3)); // WAIT_CURSOR est DEPRECATED
    for (int i = 0 ; i < node.getChildCount() ; i++) {
    addFolder(((FSNode)node.getChildAt(i)).getFile(), (FSNode)node.getChildAt(i));
    setCursor(new Cursor(0)); // DEFAULT_CURSOR est DEPRECATED
    * Tri une liste de fichier
    * @param listFile
    public void sortFiles(File[] listFile) {
    triRapide(listFile, 0, listFile.length - 1);
    * QuickSort : Partition
    * @param listFile
    * @param deb
    * @param fin
    * @return
    private int partition(File[] listFile, int deb, int fin) {
    int compt = deb;
    File pivot = listFile[deb];
    int i = deb - 1;
    int j = fin + 1;
    while (true) {
    do {
    j--;
    } while (listFile[j].getName().compareToIgnoreCase(pivot.getName()) > 0);
    do {
    i++;
    } while (listFile[i].getName().compareToIgnoreCase(pivot.getName()) < 0);
    if (i < j) {
    echanger(listFile, i, j);
    } else {
    return j;
    * Tri rapide : quick sort
    * @param listFile
    * @param deb
    * @param fin
    private void triRapide(File[] listFile, int deb, int fin) {
    if (deb < fin) {
    int positionPivot = partition(listFile, deb, fin);
    triRapide(listFile, deb, positionPivot);
    triRapide(listFile, positionPivot + 1, fin);
    * QuickSort : echanger
    * @param listFile
    * @param posa
    * @param posb
    private void echanger(File[] listFile, int posa, int posb) {
    File tmpFile = listFile[posa];
    listFile[posa] = listFile[posb];
    listFile[posb] = tmpFile;

  • How to control the line-in volume input via LabView?

    Anyone know how to control the line-in volume and balance input via LabView?

    I assume you are referring to audio line-in volume control and lerft-right balance...
    If so, then check out this thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000D83A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Look at the info near the bottom from Paul S & Spectre. They talk about "winmm.dll"
    -cheers-
    JLV

  • How to select alternate entries from the database table

    Hi Experts,
    can u help me, how to select alternate entries from the database table.
    Thanks

    As there is no concept of sequence (unless there is a field specifically included for the purpose), there is no meaning to "alternate" records.
    What table do you have in mind, what data does it hold, and why do you want alternate records?
    matt

  • How to select a Tab in a TabPane via API

    I am trying to figure out how to select a Tab in my TabPane via the API. In the javadoc for the Tab it says to use the TabPane.selectedTab, there is no selectedTab property that I can find. Also on the tab there is a selectedProperty but it is read only.
    So how do you change the selected tab via the API?

    Hi,
    Its...
    tabPane.getSelectionModel().select(index)You also have other options on the selectionmodel.
    Cheers,
    Nuwanda

  • How to select item in combobox using database?

    I inserted some data in oracle database using comboboxes and to retrieve that data from oracle database.my problem, How to select the item in combobox using that data(retrieve data)?

    Not quite sure what you're asking; do you want to show some value in the combo box selected when the page loads? Then you need to use the "selected" key word in the correspoding <option> element.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

Maybe you are looking for

  • HELP!!! How to create a modal JPanel

    Hi I've been creating an applet that uses transparent JPanels to draw boxes that look like windows. I'm in need, now, to create one that asks for user input (ie "click the OK button") and that blocks the current thread and other panels until the user

  • Creative Cloud Apps

    I want to use Creative Cloud Apps on two computer's, but it is not allowing me activate on the second computer. I have taken out a student/teacher subscription on special offer for Creative Cloud. I recently purchased CS6 student edition which is sti

  • How do i make purchase at foreign non-american itunes music stores???

    i wanted to purchase a song from the german itunes music store, so i headed over there, and was told that my account was only valid for purchase in the american itunes store, but if i click the ok tab, then it will transfer over my account info, so i

  • Change orders item price conditions

    Hi all !! I have to change/update orders item price condition in a report. I think is possible calling the function CRM_ORDER_MAINTAIN but I do not manage to do that. The CT_INPUT_FIELDS have these values: REF_GUID = item guid REF_KIND = 'B' OBJECTNA

  • 'dead' alias in finder

    Hi, I installed GnuPG the other day, and have yet to work out how to manipulate keys etc. That's another matter. However, in Finder, there is an alias for GnuPG keys, and when I click on it, nothing happens. No big deal, I'd like to delete the alias,