Read Write to a database in a network

I have a program that reads and writes data to a database it works OK as long the data base is located in the local PC where the program is executing. I wrote the program so I can set up by changing the ini file. In the ini file I indicate the path to the data base also what UDL to use.
I have checked the vi, it opens the connection ok but when it goes thru the loop and goes and executes the SQL it comes out with  error
-2147217900 and he vi stops working. I change the ini file back to the original setup and work fine. I forgot to mention that a copy of the Access database is in the local PC and another is in a network drive which the pc has access to. I made a UDL I veryfied that the connection works it come back test OK. I am  using the database connectivity VIs. I amusing LabView 10.
Solved!
Go to Solution.

The Access driver does not support networked access, as it is entirely file based. For real network access to the database you would need to use something more professional like Oracle, MySQL, SQL Server or similar. Those databases are server based and get accessed through various network protocols.
The only thing that will likely work is to map the remote directory where your Access mdb file is located into a local drive and access it in that way.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Amount of data read / write in particular database

    Dear All,
    Hi,
    I am using mssql server 2005 on windows server 2008 sp2.
    I want to know how can I check what amount of data is written or read in a particular database
    in specific time in kb or mb.
    Regards,

    One way I can think of to do what you are looking for is to use the DMV sys.dm_io_virtual_file_stats.  By using that DMV you can figure out over a given period of time the amount of disk activity associated with a particular database file.  The
    thing the DMV doesn't show you is total activity because any activity associated with data cached by SQL Server won't be reflected.  It only reflects the activity associated with reads and writes that cannot be satisfied by the SQL Server cache.
    Anyway, try the following code.  It'll tell you how much data SQL Server is accessing from the disk:
    select db_name(f.database_id) as [db_name],
    f.name,
    f.physical_name,
    s.sample_ms,
    s.num_of_bytes_read,
    s.num_of_bytes_written,
    s.num_of_reads,
    s.num_of_writes
    from sys.master_files as f
    cross apply sys.dm_io_virtual_file_stats(f.database_id, f.file_id) as s
    where db_name(f.database_id) = 'MyDatabase'

  • Can PL/SQL read/write from a database server to another server?

    hi,
    please advise.
    thanks

    what i mean is output text file to other servers using pl/sql through utl_file package.No. utl_file reads/writes only on the server where your pl/sql code is running.
    But maybe you could map a network drive. Haven't tried that.

  • How to read/write from Access database

    Hi everybody
    I need a little help for doing what I wrote in the topic!
    I use LabVIEW 6i student edition, do Ireally need to install the Database
    connectivity toolkit?

    Hi Vicio,
    There are a couple of different methods to communicate with Access in LabVIEW, and some are more difficult than others. You can use ActiveX Automation to open Microsoft Access and control many aspects of the Access Application. For actual database manipulation however, the Access automation classes rely upon the Microsoft DAO (Data Access Object) and/or ADO (ActiveX Data Object) classes. These classes can be used independently or through the Access automation classes to read and write data into an Access database. These classes can be difficult to use and may require a fair amount of SQL knowledge to accomplish a complicated task. Attached is a very simple example of how you can use DAO from the Access automation classes to read an Access table.
    For more information about the Microsoft Access automation classes, DAO or ADO classes refer to the Microsoft website and Developer Network:
    MSDN
    It is also possible to use Dynamic Data Exchange (DDE) communication between LabVIEW and Access. DDE is a Microsoft technology that preceded COM and ActiveX. DDE is NOT recommended as it is considered by most to be obsolete. However, examples still ship with LabVIEW that demonstrate how to communicate with MS Access using DDE. The examples are located in ..\LabVIEW\examples\comm\access.llb
    Note: The LabVIEW Database Connectivity Toolset is the preferred method of database communication with LabVIEW. The LabVIEW Database Connectivity Toolset offers many powerful tools and extended capabilites for quickly accessing databases. The LabVIEW Database Connectivity Toolset offers connectivity to most popular databases through Microsoft ADO technology, complete SQL Functionality, and the ability to save records in XML format. It provides both easy-to-use and advanced functions to allow common database operations as well as detailed database accessibility. The LabVIEW Database Connectivity Toolset is sold separately or in the LabVIEW Enterprise Connectivity Toolset along with the LabVIEW Statistical Process Toolkit and the LabVIEW Internet Developers Toolkit.
    Sincerely,
    Feroz
    National Instruments
    Attachments:
    Access_ActiveX.vi ‏43 KB

  • Read/write access to database

    I am designing a database application using java and DB2.i want to know that if one user is accessing(write) a particular table in the database then how to prevent other users to do any update in the same table(give him only read option).if he try to update a message should pop up that other user is currently having the write permission on that particular table.
    Thanx
    Jigs

    thanx for the help
    i'll go through the documentation and get back if i have any doubts
    thanks
    jignesh

  • Help with utl_file (read/write file from local directory)

    Need help reading/writing file on local machine from plsql using 10.2 DB.
    I am trying to read/write a file from a local directory(laptop) without success.
    I have been able to read/write to the database server directory but can't write to directory on local machine.
    The utl_file_dir parm has been set to * and the db restarted but I can't get it to work... Here's the plsql statement.
    out_file := UTL_FILE.FOPEN ( 'C:\PLSQL', 'TEST.TXT', 'W' ,32767);
    Whenever I run it continues to write to c:\PLSQL dir on the database server. Have looked at the "Directory" object and created MY_DIR = C:\PLSQL but it writes to the db server.
    Running 10.2 on a remote windows server, running PLSQL using sql*navigator.
    Thanks in advance for your help..

    I don't see how you expect the server to be able to see your laptop across the network, hack into it and start writing files. Even if it could, what if there is more than one laptop with a C: drive? How would it know which one to write to?
    Is there a shared drive on the server you can access via the laptop?

  • Read/Write pdf's as blobs using forms 10g

    Hi All,
    I have a table called IMAGES in which i store the pdfs as blobs.
    It was successfully working fine with me when I was using forms 6i.
    Recently I installed oracle 10g and just found that 10G doesnt support OLE.
    I came to know about WEBUTIL package and I have already included in the form.
    Could you please help me out how can utilize this WEBUTIL package to read/write blobs from database.
    If you have already developed any code like that, could please forward me?

    The WebUtil_file_transfer.client_to_db and db_to_client will give you direct access to read and write to the blob - I think the Demo form on
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    has an example of this

  • How to open a "manual" Physical standby database in read/write mode

    Hi,
    I am running Oracle Database 10g Release 10.2.0.3.0 - 64bit Production Standard Edition on Linux version 2.6.9-42.0.8.ELsmp ([email protected]) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3))
    I've created a physical standby database, but since I am running Standard Edition, I am not using the DataGuard features. I use the rsync utility to copy over the archivelogs to the standby database, and I apply them periodically to the standby database.
    The standby database is started this way :
    startup nomount pfile='/u01/oradata/orcl/initorcl.stdby';
    alter database mount standby database;
    Everything runs perfectly fine, I can do "alter database open read only" and then I can do selects into tables to confirm that everything is up to date.
    The thing is, if I shutdown immediate the database, then do just startup :
    shutdown immediate;
    startup;
    The database opens with no error messages, but is still in read-only mode...
    I read that the default behavior for a standby database is to open read-only, like I am experiencing, but I would like to know what is the right way to open it correctly in read-write mode (I understand that after that, my standby will not be standby anymore and that I will have to recreate my standby database).
    Thanks,
    Mat

    Hello,
    There're features which allows you to open a Standby database in Read/Write mode but for all I know
    it needs Entreprise Edition.
    In Enterprise Edition you can use Logical Standby database. More over, for Physical standby there's
    a way by using flashback database so as to rolling backward the database and avoiding to recreate
    the Standby.
    In Standard Edition I'm afraid that you'll have to recreate your Standby database.
    Best regards,
    Jean-Valentin

  • Read data from Excel and write into oracle database

    Hi
    I want  to know how can i read data from excel and write into oracle database using java.Kindly help me out to find a solution.
    Thanks and Regards
    Neeta

    Hai,
    I am suggesting the solution.
    I will try out and let u know soon.
    Make a coma separated file from your excel file.
    Assuming that your requirement allows to make a csv file.
    This file may be passed as an file object to be read by java.Using JDBC you must be able to populate the data base.You can also use String Tokenizer if needed.
    You do not want to  go via sql Loader?
    For reading the excel file itself do you want java?

  • Making sql server database read -write from read only

    hey guys
    i attached adventure works in sql server 2008 and it showing as read only ,
    so please guide me to make it read write or remove read only tag from database
    thanks in advance
    sujeet software devloper kolkata

    Hi,
    Is there an error message while you attach (Or restore) the database if so please provide it.
    If no Right click on your database choose properties -> go to options -> scroll to end then change read only option to false
    I hope this is helpful.
    Elmozamil Elamir
    MyBlog
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    http://elmozamil.blogspot.com

  • No Read or Write into SQL Database in Distribution configuration (Urgent)

    Hello
    I have build an application that have use database. It works fine when in debug mode but when i make installer then there is no read or write operation into database. I am using SQL Toolkit 2.2 and LabWindows 2010 and SQL Server 2008.
    Kindly help me because now i want to handover application to my client.
    Best Regards
    Umer

    Hi Umer
    This is a standard issue with the SQL toolkit. Read the Help under Library Reference->SQL Toolkit Library->SQL Language Reference->Distributing an SQL Toolkit Executable or DLL.
    It says:
    "Distribute the following files with an executable or DLL that uses SQL Toolkit functions.
    You must use the CVISQLShared.msm merge module to install support for the LabWindows/CVI SQL Toolkit. The CVISQLShared.msm merge module is located in the Program Files\Common Files\Merge Modules directory.
    Note  Use the CVISQLShared_x64.msm merge module for 64-bit executables and DLLs.
    Include the sqldistsupp.exe and sqldistsupp.dsn files when you create a LabWindows/CVI distribution in order to install required database components. Set sqldistsupp.exe as the program to run after installation in the distribution.
    The sqldistsupp.exe program, located in the [CVIDIR]\redist directory, creates a system data source name using sqldistsupp.dsn. The sample sqldistsupp.dsn file creates a data source called CVI SQL Samples, which works with the Microsoft Access ODBC driver. You can use the tokens [WindowsDirectory], [WindowsSystemDirectory], [CVISQLInstallDirectory], and [AppInstallDirectory] in the .dsn file. At installation time, the sqldistsupp.exe program replaces these tokens with the proper paths.
    Notes
    For 64-bit executables and DLLs, use the sqldistsupp.exe and sqldistsupp.dsn files in the [CVIDIR]\redist\x64 directory.
    [CVISQLInstallDirectory] is the directory containing sqldistsupp.exe and is equivalent to [AppInstallDirectory].
    The location of [CVIDIR] varies depending on the latest 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
    Now, why this essential information is buried is the entirely counter-intuitive SQL Language Reference section I do not know.
    Neither do I understand why the install builder does not do this automatically.
    Anyone from NI care to comment?

  • Open standby database read/write

    What's the syntax to open a standby database read/write?
    Any help will be appreciated.
    Thanks

    Technically it's not open Standy database read/write,
    Activate the standby database using the SQL ALTER DATABASE ACTIVATE STANDBY DATABASE statement.
    This converts the standby database to a primary database, creates a new reset logs branch, and opens the database. See Section 8.5 to learn how the standby database reacts to the new reset logs branch.
    Physical Standby can only be open read/write in 11g with active standby option.

  • Clone Production Database and Convert into Read Write Mode

    Hi,
    Please help me for below question...
    How to Create Test Database from Production Database without transporting backup of Production Database to Test Database and the Test Database should be in different directory structure and converting into read write mode?
    Please find me a solution as early as possible...
    Thanks & Regards
    Akhil

    if you don't need to move backup from prod to dev you need to create rman catalog and have access on it from dev server , after that you will be able to duplicate your prod to dev without moving backup and database will be in Read write by default .

  • Online read + write from/to ms sql server database

    hi all,
    we're using R 4.6C. Want to connect to MS Sql server database and read/write data from abap program.
    what's the best (and fastest) way do to this ?
    joerg

    I know only DBCON (Database multiconnect): see the notes 178949 and 323151 for more details.
    Message was edited by: max bianchi

  • File Sharing (Read & Write) with a Network User - "Network User" Not Listed

    My boyfriend and I both have Macs, running 10.6.3. Both Macs are connected to the internet via Apple Wireless Express. I have a MacBook Pro, and my boyfriend has an iMac with a big fancy screen, so I like to use for my own work when I'm at home and he isn't - it's just easier and more comfortable to use than a laptop.
    I would like to find a way to use his computer to access a shared folder on my laptop with read & write access (so that I can modify the files on my laptop while using his computer). I have gotten to the point where I have a folder on my laptop with the files I want shared with his computer, and can access this folder from his computer. However, doing it this way (accessing my files on my laptop from his computer) only allows read-only access. I would like to be able to edit the files that are on my laptop using his computer, so I think I would need read and write access.
    It seems the easiest way to do this would be to add a user (the boyfriend) on my laptop and give him read/write access to this specific folder that is located on my laptop. I found instructions on how to do this, and it says that I need to add a "network user". These instructions seem to indicate that when I add a user, there should be options for accounts on my laptop, my personal address book, a new account on my laptop, and network users. I see the first 3 options...but no option to add a network user.
    Why is that? How would I make it so that from my laptop, I can add a network user...specifically my boyfriend's computer, who also uses the same internet network that I use?
    Thank you so much for any help!

    Also found this behavior:
    While logged into the Mac Pro as MPUser1, I connect to the MacBook Pro file sharing as MBPUser1.
    Then I "disconnect".
    Then I log out of the Mac Pro MPUser1, and login as MPUser2.
    The connection to MBP as MBPUser1 is still active!
    This means that MPUser2 can access whatever MBPUser1 can access WITHOUT knowing MBPUser1's login password !
    This seems WRONG! Anybody else seen this?

Maybe you are looking for

  • OIM Installn :java.lang.RuntimeException: Could not find OffLine WLST class

    Installation of OIM On weblogic. oracle/oim/xellerate/setup/setup.xml:443: The following error occurred while executing this line: /oracle/oim/xellerate/setup/weblogic-setup.xml:196: java.lang.RuntimeException: Could not find the OffLine WLST class  

  • Error while Activating the Standard DSO

    Hi, I am getting the below error while Activating the Standard DSO. Characteristic 0DPM_DCAS__0CSM_SPRO: DS object 0DPM_DCAS__0CSM_STAT (master data check) does not exist I tried searching the forum , but didnt find any answer. Any suggestions are we

  • Lion will not mount shares from Debian Linux 5.0 server

    HI after Lion update I cant mount shares from our server, it replys back with this: "The version of the server you tryed to connect to are not supported" I can not find info about server versions supported anywhere Anyone know what can be done to fix

  • Custom field creation using ajax in SP 2010

    Hi, If anybody create custom field using ajax toolkit, kindly share me the link or steps. Thanks, Senthil

  • Restart my Forms and Report Services

    Hello and thanks in advance I can restart my HTTP_Server or OC4J_BI_Forms(process-type ) opmnctl restartproc process-type= But how can i restart my Forms and Report Services from command line. my reports server is: rep_tethis_ora_midtier thanks