MySQL DSN files

Hello!

I'm trying to store data of LabVIEW in a MySQL database, I foloved the procedures folowing (http://digital.ni.com/public.nsf/allkb/47A8CF66D5E3C8CC8625720A006139D6) and everything works fine. But then, I wish I could put my way to my DSN in a string so that I don't have to Brown it everytime I run the program. They say you can do it in the last sentence of the tutorial, but I can't find my specific path. I did exactly as it is sad in the tutorial, does anyone know how I can find thise address?

ollef,

Hello! Following this tutorial you connected you can create DSN user and according to the documents below is not really a file, but the information stored in a register. Thus, with the use of the DB tools Open Connection VI you would wire a control to the string in the entry of login information VI the name of Data Source for the user DSN that you created in step 6 of the tutorial.

What is the difference between a system DSN a DSN user, a file DSN, Universal Data Link (UDL), and...
Source database name

Tags: NI Software

Similar Questions

  • Is it mandatory to have DB & DSN file for 12.2 Documaker?

    We have installed Documaker 12.2. But while create workspace his asking us to have the DB connection.

    Please help on this.

    Documaker workspace contains, at a minimum, the following:

    (1) file DXM/DXS

    (2) INI file (s)

    (3) structure folder/directory - for example the deflib, policies, data

    (4) Master Resource Library (MRL) - repository where models and resources are stored.

    The MRL can be stored in a data file (a data file of code base that usually appears in the deflib directory, consisting of several files with dbf, lby, and mdx extensions). In later versions of Documaker Studio the ability to create new workspaces using the codebase data file has been deleted. This is because using codebase MRL in a multi - user environment leads to severe performance problems. The wizard of the workspace will present only the opportunity to create a workspace that uses an MRL of database-backed and select a valid DSN.

    It is possible to create an MRL-backed code base, but you will have to do it by hand - there is no assistants for this because it is not recommended to use MRLS-backed code base for the above reason. To create an MRL-backed code base which is, as I said, not of best practices for a multi-user environment, perform the following steps:

    1. start by an empty directory. I refer to it as [MRL_HOME], you can use any name is valid for your operating system.

    2 create a directory deflib and the user within [MRL_HOME].

    3. create a file DXM and DXS, named however you like, I refer to it as [MRLS].

    Content [MRLS]. DXM should be:

    
    
    
        
            
                test.DXS
            
            
                fsiuser.ini
            
        
    
    
    
    
    

    Note the reference to [MRLS]. DXS, use the appropriate here name. The contents of [MRLS]. DXS should be:

    
    
    
        
            
                fsiuser.ini
            
        
    
    
    

    Next, you will create the fsiuser.ini and the fsisys.ini. The content of the fsiuser.ini must be:

    < environment="">

    DO_LOGON = Yes

    FSISYSINI = fsisys.ini

    Yes, it is deliberately not much here - this file is intended for specific settings to the user, and in this environment of vanilla, it is not needed here. The content of the fsisys.ini must be as follows below; Keep in mind, it's a failure, and you have to change your environment. Search for TO_DO to see that you need to change the following.

    < ArcRet >
        APPIDX                   = Arc\APPIDX
        ARCPath                  =  ARCPath =
        CARPATH                  = [ARCRET] ARCPath =
        CATALOG                  = Arc\CATALOG
        TEMPIDX                  = Arc\TEMP
    < BATCH1 >
        EnableBatchBanner        = No
        EnableTransBanner        = No
        Printer                  = Printer1
    
    < BatchingByRecip >
        Batch_Recip_Def          = TRUE;"BATCH1";RECIPIENT
        DefaultBatch             = ERROR
    
    < CONFIG:dev >
        ARCPath                  = Arc\
        BaseDef                  = TO_DO_BDF Name
        BDFFile                  = Master.lby
        BDFLib                   = BDFLib\
        CARPATH                  = ~MRLDIR Arc\
        DalFile                  = Master.lby
        DDTFile                  = Master.lby
        Deflib                   = ~MRLDIR DEFLIB\
        EDLLIB                   = ~MRLDIR EDLLIB\
        FNTFILE                  =
        FontLib                  = ~MRLDIR DEFLIB\
        FORFile                  = Master.lby
        FORLib                   = ~MRLDIR FORLib\
        FormDef                  = FORM.DAT
        FormFile                 = Master.lby
        FormLib                  = ~MRLDIR FORMS\
        FormsetTrigger           = SETRCPTB.DAT
        GRPFile                  = Master.lby
        GRPLib                   = ~MRLDIR GRPLib\
        HELPLIB                  = ~MRLDIR HELP\
        LBYLIB                   = ~MRLDIR DEFLIB\
        LogoFile                 = Master.lby
        MasterLibrary            = Master.lby
        MRLDirectory             = TO_DO_Path to MRL Directory.
        TABLELIB                 = ~MRLDIR TABLE\
        WIPPATH                  = ~MRLDIR Wip\
        XDDFile                  = Master.lby
        XRFFILE                  = TO_DO_Name of FXR File
    
    < CONFIGURATIONS >
        Config                   = dev
    
    < DALLibraries >
        CompileWhenLoaded        = No
    
    < Data >
        AfgJobFile               = afgjob.jdt
        Datapath                 = DATA\
        TblFile                  = tblfile.dat
    
    < DocSetNames >
        FormName                 = NULL
        GroupName1               = KEY1
        GroupName2               = KEY2
        GroupName3               = NULL
        TransactionId            = KEYID
        TransactionType          = TRANCODE
    
    < MasterResource >
        BaseDef                  =  BaseDef =
        BDFFile                  =  MasterLibrary =
        BDFLib                   =  BDFLib =
        CompLib                  =  CompLib =
        DalFile                  =  MasterLibrary =
        DDTFile                  =  MasterLibrary =
        DDTLib                   =  DDTLib =
        Deflib                   =  Deflib =
        DictionaryFile           =  DictionaryFile =
        EDLLIB                   =  EDLLIB =
        FieldBaseFile            =  FieldBaseFile =
        FNTFILE                  =
        FontLib                  =  FontLib =
        FORFile                  =  MasterLibrary =
        FORLib                   =  FORLib =
        Form7x                   =  Form7x =
        FormDef                  =  FormDef =
        FormFile                 =  MasterLibrary =
        FormLib                  =  FormLib =
        FormsetTrigger           =  FormsetTrigger =
        GRPFile                  =  MasterLibrary =
        GRPLib                   =  GRPLib =
        HELPLIB                  =  HELPLIB =
        LBYLIB                   =  LBYLIB =
        LbyScriptLib             =  LbyScriptLib =
        LogoFile                 =  MasterLibrary =
        LogoLib                  =  LogoLib =
        MasterLibrary            =  MasterLibrary =
        TABLELIB                 =  TABLELIB =
        TablePath                =  TABLELIB =
        XDDFile                  =  MasterLibrary =
        XRFFILE                  =  XRFFILE =
    < MENU >
        File                     = C:\FAP\DLL\MEN.RES
    < PRINT_BATCHES >
        BATCH1                   = Data/all.bch
        ERROR                    = Data/error.bch
        MANUAL                   = Data/manual.bch
    < Printer >
        EnableBatchBanner        = No
        EnableTransBanner        = No
    < Printer1 >
        Port                     = data/all.pdf
        PrtType                  = PDF
    < Printer7 >
        Port                     = data/all.pdf
        PrtType                  = PDF
    < Printer8 >
        Port                     = data/all.pdf
        PrtType                  = PDF
    < PrinterInfo >
        Printer                  = Printer1
        Printer                  = Printer7
        Printer                  = Printer8
    < Printers >
        PrtType                  = AFP
        PrtType                  = PCL
        PrtType                  = XER
        PrtType                  = PDF
        PrtType                  = PST
        PrtType                  = RTF
        PrtType                  = HTML
        PrtType                  = EMAIL
    < Recip_Names >
        CLIENT                   = 001,Client Copy
    < RUNMODE >
        CompiledFap              = No
    < ERROR >
        EnableBatchBanner        = No
        EnableTransBanner        = No
        Printer                  = Printer7
    < FixOptions >
        UseXDBRule               = Yes
    < Library:Master >
        DBTable                  = Master
        Description              =
    
    < LibraryManager >
        Class                    = GA;Georgia resource
        Class                    = TX;Texas resource
        Class                    = MD;Maryland resource
        DefaultPromoteSelectedOn = Yes
        KeepFileOnCheckin        = No
        LBYLogFile               = DEFLIB\LBYLOG.lby
        Library                  = deflib\master.lby
        Project             = Project1
        PromoteReqClass          = No
        PromoteReqDesc           = No
        PromoteReqMode           = No
        PromoteReqProject        = No
        PromoteReqStat           = No
    < MANUAL >
        EnableBatchBanner        = No
        EnableTransBanner        = No
        Printer                  = Printer8
    < Transactions >
        01                       = ;NB;New Business;TRNW32->TRNNew
        02                       = ;EN;Endorsement;TRNW32->TRNEndorse
        03                       = ;RN;Renewal;TRNW32->TRNRenew
        04                       = ;QU;Quote;TRNW32->TRNNew
    < TRN_FIELDS >
        ACTION                   = TO_DO_DefineACTION
        APPROVALSTATE            = TO_DO_DefineAPPROVALSTATE
        CURRGROUP                = TO_DO_DefineCURRGROUP
        DESC                     = TO_DO_DefineDESC
        KEY1                     = TO_DO_DefineKEY1
        KEY2                     = TO_DO_DefineKEY2
        KEYID                    = TO_DO_DefineKEYID
        ORIGUSER                 = TO_DO_DefineORIGUSER
        TRANCODE                 = TO_DO_DefineTRANCODE
        TRNNAME                  = TO_DO_DefineTRNNAME
    < TRN_FILE >
        BinaryExt                = N
        MaxExtRecLen             = 4000
        TRNRECFMT                = TO_DO_Define
        XMLTrnFields             = Yes
    < Userinfo >
        File                     = user\userinfo
    < WIPDATA >
        File                     = WIP\Wip
        Path                     =  WIPPATH =
    < Data >
        AfgJobFile        = afgjob.jdt
        Datapath          = DATA\
        Db2TrnDfd         = db2trnfl.dfd
        DbLogFile         = dblogfle.dat
        ErrFile           = errfile.dat
        Exclude           = INPUT\Exclude.dat
        ExtrFile          = INPUT\ExtrFile.dat
        LogFile           = logfile.dat
        Manual            = manual.bch
        MsgFile           = MsgFile
        NaFile            = nafile.dat
        NewTrn            = newtrn.dat
        PolFile           = polfile.dat
        RcbDfdFile        = rcbdfdfl.dfd
        TblFile           = DEFLIB\tblfile.dat
        TextTbl           = texttbl.dat
        TranslationFile   = translat.ini
        TrnDfdFile        = trndfdfl.dfd
        TrnFile           = trnfile.dat
        WipBatch          = manual
    < LibraryManager >
        Mode            = Development; Development
        Mode            = Review; Review
        Mode            = Testing; Testing
        Mode            = Administration; Administration
        Mode            = Production; Production
        Status          = Checked out; Checked out
        Status          = Checked in; Checked in
        Status          = Rejected; Rejected by Reviewer
        Status          = Submitted; Submitted by Developer for review
        Status          = Completed; Completed by Developer in later revision
        Status          = Failed; Failed testing
        Status          = Approved; Approved by Reviewer
        Status          = Promoted; Promoted to next tier
        Status          = Passed; Passed testing
    

    This will give you an environment stripped. You will need to create a FXR, JDT/DFD files, etc. But it will create an environment of code base for you.

  • Failed to connect MySQL ServerScipt file are endangered

    Running Dreamweaver, Mac OS 10.7.5 CCS. Server Local of MAMP works.

    I have a successful connection on Manage Site > server > Server Local

    I am trying to connect to a database by window > database > MySQL connection.

    1, I copied the MMHTTPDB.php and the fopen file for my folder of mmServerScript sites. According to Adobe

    I get this error message:

    error.jpg

    (Mysql.php, mmServerScript) files I copied in the folder of my web site are now missing from the website > mmServerScript folder.

    I did it three times! The same results.

    Anyone?

    There are detailed instructions for setting up a PHP development environment in Dreamweaver on Mac here: http://www.adobe.com/devnet/dreamweaver/articles/setup_php.edu.html#articlecontentAdobe_nu mberedheader_1.

    Looking at the error message you have, you have not set your site in the MAMP server root (/ Applications/MAMP/htdocs). Also, you need not copy the MMHTTPDB.php and files of fopen. Dreamweaver does this automatically for you.

    You should also know the name of the folder that contains these files begin with an underscore. It is _mmServerScripts, not mmServerScripts.

    Finally, be aware that PHP in Dreamweaver server behaviors are deprecated. They use the code that will be removed from a future version of PHP.

    Dreamweaver is very good for developing with PHP, but you should be ready to scripts PHP code manually if you want that your web pages, to continue to work in the future.

  • Model color in PHP/MySQL coding: file INC.

    8.02 Dreamweaver on Vista RTM (wouldn't matter I don't think).

    I have a site I used DWMX manage previously and at the time there, I got in one of the XML or associated TXT DW files and changed so it would be reckonize. INC. in form of valid file and so give me a color code, suggestions of code I type etc.

    On DW8 I see similar XML/TXT files (for DW config) and then increase files in all directions... so I think that there reckonize this file types.

    Still though, the color coding (and the possibility to use the menus to insert img, etc.) are greyed out.

    Any ideas?

    A typical Inc.

    < div >
    HTML
    HTML
    HTML
    < / div >

    nothing hardcore.

    Any ideas? Macromedia/Adobe online help was not much help and my research on forums does not do anything.

    Thank you
    Sean

    Solution:

    Vista seems to run DW8 in a mode that disables the user-specific settings (it's probably because DW8 does not run natively under Vista). Thus, instead of C:\Documents and Settings\nom of user (or more precisely, C:\users\username in Vista) files are all located in the path below and shared between all users. Help of Adobe shows you in records specific user, who does not work in this case:

    C:\Program Files\Macromedia\Dreamweaver 8\Configuration

    Put a capital, INC. at the end of the first line of the Extensions.txt file and save it.

    In the folder C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes

    Edit the MMDocumentTypes.xml file as follows:

    winfileextension = "php, php3, php4, php5, Inc." on the section called "PHP MySQL", his halfway the document... the tiny Inc. is the only thing added... Save and reboot DW8 and files INC. should see color coding coded, including PHP reckonizing...

    I don't know how big an issue it is, but INC. is a popular as an ext include for PHP and I imagine that people are going to run on Vista that they get new machines. I hope this can help someone.
    -sean

  • How to locate a file DSN path (e.g. "C:\Program Files\Common Files\Data Sources\mydata.dsn"changes to C:\Program Files\Fichiers communs\ODBC\Data Sources\mydata.dsn"in French")

    Use us the DSN file in our application LabVIEW but have found that, when the application is distributed to Windows XP configured for foreign lanugages (e.g. French), the C:\Program Files\Common Files is localized to something else (for example C:\Program Files\Fichiers common).

    How can you change Setup to handle these problems? Or how we can programmatically determine the correct path of common files (i.e. localized) what, so we can copy the DSN files in the folder when the application first runs?

    You can also read a large number of paths by using the register screw

    The paths are in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders or in the HKEY_CURRENT_USER folder.

  • Moving the data store files

    Hello

    It's on 11.2.2.4.1

    If I move my data store files (ds0, ds1, etc.) to a new location, is there a way to get TimesTen use from the new location?

    I tried moving them and update the sys.odbc.ini but get * 10003: unexpected database file exist for new data store * which I suppose is because the TT daemon keeps a record of location of data of the DSN file, as seen in ttStatus.

    I have to go through a route of backup/restore (http://docs.oracle.com/cd/E18283_01/timesten.112/e13063/upgrade.htm) to move data files a data store?

    Thank you.

    Yes, if you want to re - locate the control point files or transaction logs you must proceed as follows:

    1 stop all activities demand etc. on the data store.

    2. make a full backup using ttBackup.

    3. remove the data of the memory store.

    4. destroy the datastore usign ttDestroy.

    5. change the Datastore or LogDir attributes in sys.odbc.ini to point to the new locations.

    6. restore the backup data store using ttRestore

    7. you can now start and use the data store.

    It is the change of safely / supported only the location of the files in the data store.

    Chris

  • JDeveloper and MySQL

    I'm trying to follow the tutorial Oracle 'building a Web Application with JDeveloper 11 g Using EJB and JPA JavaServer Faces'
    but instead of the Oracle using MySQL database. I have successfully created a connection to MySQL, but when I tried to
    Run SessionFacade it gave me an error do not find a MySQL library. After that I copied mysql-connector-java - 5.1.7 - bin.jar to
    'C:\Users\user\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\lib' this problem has been corrected
    and SessionFacade works OK (IntergradedWebLogic server starts and application gets deployed). But when
    I try to run the SessionEJBClient (client java sample created automatically by JDeveloper) it gives me a
    mySql to error again ("javax.ejb.EJBException: problem to find the error class;") nested exception is:
    ("java.lang.ClassNotFoundException: unable to load class com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxError ').

    I tried to copy the mysql-connector-java - 5.1.7 - bin.jar to "C:\Oracle\Middleware\jdeveloper\lib", but it did not work.

    Any ideas?

    Go to project-> libraries and classpath properties and add the mysql Jar file.

  • OT: Excel to MySQL @ Low / no cost

    I am a small, zero budget, small business owner who needs to know how to convert Excel files into MySQL files that I can download on my host. We have more than 2000 items of product that we publish on our online store. Some of the data is already in SQL, things like article number, description, dimensions and price. Excel does a conscientious job of importing these files. But I need to add to the SQL table that provides my point of sale software, the name of 'photo' for example. Other things that I need to be created in a new table, as the "long description" and "number of long description. (Many articles get the same long description.)

    I can't be the first person who have faced this problem, so I throw it out there. Help, please.

    Background: I'm a programmer of old school (think punch cards and FORTRAN) that learned Dreamweaver CS3 of 'no experience' and built a website for 50-some page in less than two weeks. I also know of relational databases quite well. But being away from computers for so long, a lot of slang is lost on me. Feel free to challenge me, but don't assume that I know that the words you know.

    PS: A mentor is QUITE welcome. Volunteers?

    ~ Scott
    oldcountrypeddler.com

    Hi, people. Thanks again for bearing with me. I wanted to just summarize my successes and failures.

    I definitely had the right approach, at least for me. I know than Excel, its functions and VBasic pretty well, so I was right when I said "if I string together enough CONCATENATE (s), IF (s), ISNUMBER (s) and ISTEXT () s together, I should get a statement for each row in the inventory table. A loop up to what I was with all the easy fields emissions real. Once again, for me, it worked, because I did some "heavy lifting" in before VBasic. In about 15 minutes, I had all the instructions INSERT MySQL that I needed in a text file.

    The declaration (on the side of CREATING the text file) also took another 15 minutes. All in all I would have had a valid statement of MySQL text file in about 30 minutes, which should create the database. Simple enough for 2057 records with eleven fields, that much I had to start from scratch. (God bless the guy who invented the "copy and paste"!)

    Note I said if.

    It took me 4 days to understand that, on the side of the statement, SQL quotes aren't really quotes at all, but the key under the key on the keyboard. Four days to go back from w3schools, other sites, my books, Dreamweaver Help menu and my text file, and, finally, I got the right part. (It's actually a very important point.) If anyone has a traction at w3schools, you might want to suggest that this say specifically in their tutorial. I finally found the solution to my problem in the comments of the users below the documentation on MySQL.com. The universal user comment is that it is not properly explained anywhere.) But it still doesn't work.

    Stunned that my SQL statements still cannot create a valid database, it took me another 4 days to understand that converts word all CITES in the "quotes" as soon as the document is loaded. They are distinguished by standard quotes that they visually "lean in" the text quoted and have a different value of the ASCII character associated with it. Orders INSERT need good quotes old, regular, smooth. (This means they touch next to the key on your keyboard.) WordPad gave me single quotes. Edit > replace in Wordpad converted all my quotes start and end in single quotes in less than 30 seconds. I figured this out quite by chance, one of my desperate attempts to understand what I was doing wrong. The key is, when you create a declaration file of MySQL ENTRY to a text file generated IMPORT file to load into a new table, do not let the file word touch. Use a mute, but not the text editor clear and simple, more stupid you can find. (Notebook, apparently does not include carriage returns in the way is easy to change.)

    In short, I had reason to trust what I know, because that saved me months of time. But this does not mean that I had no problems. Overall, my lack of knowledge in MySQL cost me 4 days, and my expertise "Typist" in Word cost me another 4 days. Overall, not bad, and since I had to redo several times since then to create more than seven tables in my database, my new-found expertise allows me to save months of work.

    The 'Caveat Emptor' is of course. I used what I know to adapt to my situation. If you are not savvy with Excel functions or VBasic, this probably isn't your solution. (If you're confused about her CONCATENATE (s), IF (s), ISNUMBER (s) and ISTEXT (s) part of this discussion, you aren't a candidate for this solution.) You should know what you know and do not know before trying this. Back in the days of TQM, they called this 'take a personal inventory.'

    My last problem that deals with "AUTO_INCREMENT" in MySQL and how folder Assistant Dreamweaver to insert a form (which, from what I can tell based on my tutorial and examples, works perfectly) does not work with the MySQL file I created. This happens in a two-week adventure, but I'm not quite at the point of poster a problem still because I really think that this is caused by something I know I should have done, but didn't. Help is of course necessary, but frankly, I'm not to the point of knowledge what my problem is.

    Anyway, thanks to you all once again for your support people. A very small business owner on one zero budget who wants to take advantage of what he knows to do things quickly, your unwavering encouragement and advice helped me a lot. Keep in touch!!

    ~ Scott
    www.oldcountrypeddler.com

  • Database error - 101

    I updated the Version 9.1.1 Version 9.1.0 LabWindows.  My computer development respected in both version code works great access to a network database.  However, on a test computer code compiled in 9.1.1 gives me an error-101: DB_COULD_NOT_FIND_FUNC when I run either

    DBInit (DB_INIT_MULTITHREADED) or DBInit (DB_INIT_SINGLETHREADED).

    Is there a switch in the Setup program that must be enable to update the database drivers?

    Or is there a more simple mistake?

    See the instructions for having distributed a SQL Toolkit executable or a DLL found in the manual of the CVI.

    Distribute a SQL Toolkit executable or a DLL

    The following files must be distributed with an executable file or a DLL that uses the SQL Toolkit functions.

    1. You must use the CVISQLShared.msm merge module to install of SQL Toolkit for LabWindows/CVI support. The CVISQLShared.msm merge module is located in the Program Files\Common Files\Merge Modules directory.
    2. Include the sqldistsupp.exe and sqldistsupp.dsn files when you create a distribution of LabWindows/CVI to install the components of database required. Set sqldistsupp.exe as the program to run after the installation of the distribution kit.

      The program of sqldistsupp.exe, located in the \redist folder [CVIDIR], create a system data source name using sqldistsupp.dsn. The sample file sqldistsupp.dsn creates a data source called CVI SQL Samples, which works with the Microsoft Access ODBC driver. You can use [WindowsDirectory], [WindowsSystemDirectory], [CVISQLInstallDirectory] and [AppInstallDirectory] to force sqldistsupp.exe to update the paths for the correct values at run time.

      Note  [CVISQLInstallDirectory] is equivalent to [AppInstallDirectory] is the directory containing sqldistsupp.exe.
      Note  The location of the [CVIDIR] depends on the last version of LabWindows/CVI you have installed.

      Version [CVIDIR] Folder Location
      LabWindows/CVI not installed National Instruments\Shared\CVI
      LabWindows/CVI 8.1.1 or earlier National Instruments\CVIxx
      LabWindows/CVI 8.5 or later National Instruments\Shared\CVI
  • Database connectivity error: ADO...?

    I'm trying to export data in an Oracle database local using the Toolbox Database Connectivity.

    (I created my TEST table in the local Oracle database, I can access, write, read, etc. using SQL.) I also have the .dsn file that works with SQL)

    I get the following error:

    I found the problem. Not associated with LabVIEW (Duh...).

    Basically I have two copies of .tns names in two different folders. One of the files that I used to make a connection

    to the database did not have the correct login info and the other did. One who did was one I used.

  • Error 2147467259 DB tools open connection

    I wrote a labview 2014 32-bit program to extract data from a MS SQL Server database.  I used the 32-bit ODBC data source program for generating a DSN file.  The code works fine when I run the labview VI, but when I'm building the program and run the executable file, I get an error:

    ADO Error: 0x80004005
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. in NI_Database_API.lvlib:DB Tools Open Connec (String).vi->RecipeSelect.vi
    

    I created a UDL file with the tool 'Create data link' LabVIEW and I still get the same error, even if the VI works fine.  I also tried a connection string.  All the research I did on this error indicate a problem between the data sources in 32-bit and 64-bit.  I tried to create both sense and still get the same error, but the VI still works fine on the same computer in labview.

    Any suggestions on what to try next?  Thanks in advance.

    The file path is hard coded.  I tried to run on multiple machines with the same error.  Since then, I created a new project and began to rebuild the code from scratch.  I think something in my old files are corrupt as the new code works after I build it.  * crossed fingers * thank you for taking the time to respond and try to help!  Very appreciated

    Edit: I tried to change a lot of things to get my project work I don't know what I could have messed up in the process.  Mark as resolved because the original problem is so complicated, it was probably my own mistake with the creation of the DSN/UDL file or maybe even a small problem with our SQL Server.  He has since been restarted.

  • Cannot install the sample applications manually

    Hello

    I'm having a time difficult installation SDK push sample applications on a remote computer. I try a manual install of Tomcat. The machine runs on Linux Red Hat.

    The error I get is:

    [org.springframework.web.context.ContextLoader.initWebApplicationContext()] - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registerListeners' defined in class path resource [sample-push-initiator-context.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
    

    It looks like a problem with the JDBC connector, but I do not know how to solve. Among the things that I've done are:

    • Generate the database manually.
    • Fill the PushSDK.properties with the database and JDBC information. Copy this file in each directory WEB-INF/classes of applications examples of
    • Copy the mysql connector jar file in the directory WEB-INF/lib of each application
    • Edit the file app.properties with the information from my BB (app id, base url PGG etc.). Copied in the directory WEB-INF/classes of applications. I did the same thing with suspension - context.xml and app - context.xml
    • Edit conf/server.xml of Tomcat to set the http and https ports and the UTF-8 encoding for the request URL query component. In fact, I have only port 8080 available in the machine and I have configured HTTPS to work.
    • A self-signed certificate and shows its location in the conf/server.xml file. Indicates its location in conf/server.xml
    • Edit bin/catalina.sh to set the JAVA_OPTS UTF-8 encoding

    The initial Tomcat page seem to be working in https://machine_ip:8080.

    But there are errors with the BB apps:

    • https://machine_ip:8080 / sample-push-initiator returns 404
    • https://machine_ip:8080 / pushsdk returns 404
    • https://machine_ip:8080 / debug-Portal opens the Debug Portal, but displays the following message:
    Internal Server Error: 
    
    Sorry, we are unable to properly process your request at this time. Please contact a system administrator to investigate the problem by examining the logs.
    

    Does anyone have an idea of what's going on? I would be very help appretiate

    Best regards

    Maria

    Hi all!

    Finally, I could solve this problem. MySQL was not allowing the JDBC connection. I have

    delete the line:

    skip-networking
    

    in MySQL configuration file (/ etc/my.cnf) and now the sample applications seem to work ok.

    I still cannot subscribe to the good customer, but that's another story...

    Kind regards

    Maria

  • Foglight short term deposit

    Where short term deposit files are placed to Foglight on a Windows machine and they wear in general?

    Hi Paul -.

    If your management server has been installed with the default configuration, there is a built-in copy of MySQL

    running on the management server that collects monitored data for you. Check disk space total on your management server. The MySQL data files live in (Foglight install directory) / mysql / data. If not there, there are large files, then your management server has implemented as a level 2 facility with a database backend separately on a different level.

    As much as the horses is concerned, you know the specs for your administration server? OPERATING SYSTEM? 64 bit or 32 bit? How much CPU, RAM and disk space on the box? Also what version of Foglight is? (you can determine that as of)

    About the button at the bottom right of any dashboard)

    Robert

  • Caveat on the multimedia server "Media Server database is inconsistent"

    Hello

    Does anyone have any documentation about this warning that occur on VSMS (Media Server)?

    Description: Database server is inconsistent

    Detail: Couldn't update saving SMD file with record id of the repository. Check the save location in the database of the media server.

    I searched on google but still can't find documentation on this subject of warning.

    The VSMS and VSOM are not co-located and version 7.6.0. The platform OS is RedHat Enterprise Linux Server version 6.4 (Santiago).

    Thank you in advance.

    It combined not for the 7.6 VSM 1 fix and there is no Bug id created this question.

    Just an intern created the script of BU, who has been synchronized with VSOM server status can be reset to clear the incompatible database errors.

    Solution:

    To control the problem, check the recording_location table in the database VSMS to check all video repositories are correctly by running the following database query:

    # sudo UMS EI /usr/BWhttpd/mysql/bin/mysql--defaults-file=/usr/BWhttpd/mysql/ums/ums.cnf ' select l.name, t.name as 'Type', s.name 'State' of recording_location l, recording_location_type t, admin_states s where l.type = t.enum_value and l.admin_state = s.enum_value order by l.name, t.name;

    +----------+---------------+---------+
    | name | type | State |
    +----------+---------------+---------+
    | /media2 | Media | permit |
    | failover | remote_server | permit |
    +----------+---------------+---------+

    ++ To add the missing partitions, download the dbinconsistent.zip file attached below and download the file on the server of the VSM.  Unzip the file and run the script on VSMS database server:

    # Unzip dbinconsistent.zip

    # sudo /usr/BWhttpd/mysql/bin/mysql--defaults-file=/usr/BWhttpd/mysql/ums/ums.cnf UMS EI "delete from recording_location where name = 'failover ';
    # sudo /usr/BWhttpd/mysql/bin/mysql--defaults-file=/usr/BWhttpd/mysql/ums/ums.cnf UMS<>

    Then restart the VSM software on the server.  When the server comes and it has synchronized with VSOM server status can be reset to clear the incompatible database errors.

    Hope this explanation helps you.

    Thank you

    Jayesh

  • I need a suggestion on the backup solution

    Hello

    I'm looking for a backup solution can restore Virtual Machine or data inside (MySQL database, files, etc...). I found Veeam but I don't know how to restore data inside the virtual machine. It is not possible to back up and restore for database services and I think that they do not have this function.

    Please, can someone suggest me a good brand name of solution?

    Thanks in advance!

    Welcome to the community,

    Veeam is certainly something to consider. It offers various options to restore whole VMs, guest operating system files and even objects.

    For SQL, see for example https://www.veeam.com/blog/how-to-restore-a-sql-server-database.html

    André

Maybe you are looking for