MS Access Linked Tables

I have an MS Access database that I have no choice but to use, and the powers that
be won't move it to Oracle anytime soon. I'm working on my own workstation running
a Tomcat 4.1.31 Server.
The database is on a network share and links tables from another network directory.
I defined a System DSN to the "main" access database to access it via the
JDBC/ODBC Bridge. However, when I try access a query using a "linked" table from
the other Access database, I get a ServletException:
Access Driver The Microsoft Jet database engine cannot open the file
"\\share\database2.mdb".  It is already opened exclusively by another user, or
you need permission to view its dataIs there a way to make this work? I cannot modify the current setup or configuration
of either Access database (if I could have, I would already have taken the virtual axe
to it).
Jason

>
Is there a way to make this work?You start by looking at the enviroment, not java.
First are you running tomcat as a service? When a service starts up it starts up in an enviroment. Just as when you log in your have an enviroment. And you need to be in the same environment for you to verify access. Changing the service to use a user will often help this.
Once you have looked at the above then log in as the user (on the same computer) that the service runs as. Using dir from a console verify that you can see the file. If you can't dir the file then tomcat can't access it.
After that then use the MS Access GUI to access that file. Verify that you can view it and modify it.

Similar Messages

  • How to programmatically connect to MS Access linked tables to oracle ?

    Hi,
    I have database in MS Access which has linked table in oracle database.
    But I am not able to connect to that linked table through java program .
    It gives me java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'servername' failed.
    Can anybody suggest me how to tackle this problem?

    This blog post should have most (if not all) of what you need:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/16/how-can-i-use-windows-powershell-to-create-an-office-access-database.aspx
    One thing to watch out for is the db provider for the connection string.  The "Jet Engine" has been superseded by
    ACE.

  • Why data change in linked table in Access - link from Oracle DB

    Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. I must come back to this thread because lot of data in my Oracle database is defined as NUMBER(22), and I am using Access heavily.
    Here is the problem:
    In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then I linked tables from Access with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?
    For example:
    Comp_ID in Oralce is defined as NUMBER(22) = 40000000000324003; In Access it looks like this 4.0000000000324E+16.
    What I have in my system:
    1- Oracle 9.2 client
    2- Oracle driver
    3- Access 2003
    4- Jet - SP 8

    Can someone please help me to solve this situation? I try to find out why data is changed from Oracle to Access. I must come back to this thread because lot of data in my Oracle database is defined as NUMBER(22), and I am using Access heavily.
    Here is the problem:
    In Access, I created ODBC connection (System DSN) to Oracle 9.2 database by using Oracle driver (NOT Microsoft ODBC for Oracle). Then I linked tables from Access with the Oracle table. What happens is that the number in Access linked table is displayed as a scientific number. Is there a way that I can preserve whatever I have in Oracle database?
    For example:
    Comp_ID in Oralce is defined as NUMBER(22) = 40000000000324003; In Access it looks like this 4.0000000000324E+16.
    What I have in my system:
    1- Oracle 9.2 client
    2- Oracle driver
    3- Access 2003
    4- Jet - SP 8

  • Login issues using linked tables in Microsoft Access

    Hello everyone!!!
    Anybody knows how to set the ODBC Login and password for a group of Oracle ODBC linked tables in MS Access by using DAO or VBA?. I need to use DAO instead of ADO for my application since I use ODBC and an Oracle Database.
    I know I can use the "save password" check box in the linked tables dialog, but I am developing and Access Application for my company and I'm using a generic username for the application itself by I need not to store the password in the connection string because is easy for an end user to obtain.
    I would like to have a form to set the password as long it is opened, and when the form closes, the password is cleared. (Actually, when the control panel form closes, I close Access itself).....
    Is there any way to set the password in the DBEngine.Workspaces object??
    I searched Microsoft Developer web site and there is severan articles about this topic, but none of them work in an Oracle Database.
    Is there any way to communicage with the Oracle Client from the Access application and set the password??
    Thanks, I know it's a very technical question, but is the only thing I need to solve to finish my application.!!!!

    Does anyone know if JDBC can access linked tables
    in a Microsoft Access?I doubt the bridge can. However the link is created using ODBC so you can access it directly.

  • Help with linking tables

    Hello,
    I am not really sure if this is a site that this question should be asked but I have done alot of searching and can't seem to find an answer so....
    I work for a large company that uses Oracle for its databases.
    In my department we use access link tables to look at the Oracle data.
    In one such database I need to link to the oracle tables but only see certain data when I open the link (like a fliter).
    I have no idea how to do this...I just know it can be done.. I have heard that you can use Oracle views to do the filtering on the server side and it would only return the filtered data. I think I have to do this with SQL.
    But I really dont know how to go about it.
    So I am posting here hoping that you guys could help me or point me in the right direction as I don't even know what questions to ask in google :)
    I will be glad to give any information you may need to help me out.
    Thanks a Million.

    user12063135 wrote:
    Hello,
    I have heard that you can use Oracle views to do the filtering on the server side and it would only return the filtered data. I think I have to do this with SQL.
    Thanks a Million.You heard it right and your thouts are are floating in the right direction.
    Use views and you will be fine.

  • Simple Query in Oracle Linked Table in MS Access causes full table scan.

    I am running a very simple query in MS ACCESS to a linked Oracle table as follows:
    Select *
    From EXPRESS_SERVICE_EVENTS --(the linked table name refers to EXPRESS.SERVICE_EVENTS)
    Where performed > MyDate()
    or
    Select *
    From EXPRESS_SERVICE_EVENTS --(the linked table name refers to EXPRESS.SERVICE_EVENTS)
    Where performed > [Forms]![MyForm]![Date1]
    We have over 50 machines and this query runs fine on over half of these, using an Oracle Index on the "performed" field. Running exactly the same thing on the other machines causes a full table scan, therefore ignoring the Index (all machines access the same Access DB).
    Strangely, if we write the query as follows:
    Select *
    From EXPRESS_SERVICE_EVENTS
    Where performed > #09/04/2009 08:00#
    it works fast everywhere!
    Any help on this 'phenominon' would be appreciated.
    Things we've done:
    Checked regional settings, ODBC driver settings, MS Access settings (as in Tools->Options), we have the latest XP and Office service packs, and re-linked all Access Tables on both the slow and fast machines independantly).

    Primarily, thanks gdarling for your reply. This solved our problem.
    Just a small note to those who may be using this thread.
    Although this might not be the reason, my PC had Oracle 9iR2 installed with Administratiev Tools, where user machines had the same thing installed but using Runtime Installation. For some reason, my PC did not have 'bind date' etc. as an option in the workarounds, but user machines did have this workaround option. Strangely, although I did not have the option, my (ODBC) query was running as expected, but user queries were not.
    When we set the workaround checkbox accordingly, the queries then run as expected (fast).
    Once again,
    Thanks

  • Linked Tables in Access DB

    I connect to a remote db using odbc connection. All the
    tables in the db are linked and I am able to write my CF code to
    read the tables and produce reports, etc. Now another person has
    gone directly into Access and created a query with some of the
    linked tables, and with data from an excel spreadsheet. Since the
    query is already built and runs, they want me to take the query and
    put it in a CF application so that CF can run it. I am able to
    create a table (not linked) in the db and import the data from
    excel to populate the table, but when I run CF with the query, it
    does not like the table that I created, which I named tblSS_PO.
    Here is the error :
    Error Diagnostic Information
    ODBC Error Code = S0002 (Base table not found)
    [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object
    name 'tblSS_PO'.
    Does it not like it because the table I built is not linked
    and not part of the original db ? Anyone with any ideas on how I
    can solve this problem ? It seems like the data from excel will be
    a consistent thing, all I need to do is plug it in each time and
    run the query but I cannot get it to work. Thanks for any help.

    You have to have the same version of the access file on the
    remote server
    (one CF is connecting to) as you have on your local system.
    Just changing
    your local access file does not change the remote file. you
    have to upload
    your Access file just like you have to upload your site
    pages.
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "trojnfn" <[email protected]> wrote in
    message
    news:ed7kjs$sbo$[email protected]..
    >I thought I was putting the table and query in the db.
    Like I said, I bring
    >up
    > Access and open the db and all the tables are there,
    even the new one I
    > created
    > and the query (along with all the other queries) in the
    query panel, so it
    > looks like they are there. Yet when I run my cf query
    with the dsn for the
    > db,
    > it says the table and query cannot be found. Could it be
    that I am really
    > connecting to a copy of the db and not the actual db
    itself, thus it looks
    > like
    > it is there but not, since the dsn is to the remot db ?
    I am just grasping
    > at
    > straws here, do not know what is happeng. If I create a
    completely
    > differenet
    > db with the table, will cf allow for two different dsn
    at once so that the
    > tables from two different dbs can be linked ?
    >
    >

  • Problem to acces linked table from Microsoft Access 2010

    We have a couple of MS access databases that have linked tables from  oracle Database. When the user try to view the content of the table it gets an error saying that the table or view does not exist.
    But if i create a new MS access db and link the same tables with the same user, we are able to view the content of the table. So it does not seem to be related to permissions...
    If we delete the linked table and try to re-attached them we got the same error
    Anyone have a clue ?

    It looks like this is a question that should be addressed in our ORACLE ODBC community, since it has to to with MS Access links to an Oracle DB via (I presume) an Oracle ODBC driver.
    This community is for Oracle Heterogeneous Gateways.  That is, Oracle DB links into 3rd party databases.
    Thanks!
    Matt

  • Access ODBC link table list ONLY one table

    Hi all,
    I try to link Oracle tables from Microsoft Access via Link Table. The return list show ONLY one table, which by right it should show ALL tables in my Database.
    What is the problem here? Anyone encounter this same problem before.
    My database is very large, over 10,000 tables. Can it be because of resources issues?
    Pls help

    Are they all real tables are or some of them perhspa VIEWS, SYNONYMS or the like? The default list is for just tables. I have seen cases where a really large list would make Access puke, but this generally results in getting nothing listed.

  • ORA-12560: TNS: protocol adapter error while linking tables in Access

    One of my app dev is encountering an interesting error message while linking Oracle tables from Access. I am not able to able to reproduce this in my desktop or anywhere else. Details enclosed. Can you guys point me to a solution? Thanks in advance!
    ODBC: Oracle Client version 10.2.0.1
    Desktop : Win XP ; Access 2003
    =>Able to login to the Oracle database sucessfully using sqlplus.
    =>Able to create an ODBC datasource to Oracle database.("Test Connection" works fine)
    =>But encountering the TNS protocol adpater error while linking the table(Access->File->Get External Data-> Link tables).
    =>Not able to link any table in any schema in any Oracle database. Hence this is not a data centric issue.
    What did I do?
    => Uninstalled Oracle 8 client and installed Oracle 10 client. No luck. Encountering the same error.
    => Turned on the ODBC trace and reproduced the error. The log is enclosed:
    MSACCESS 79c-ed4     ENTER SQLAllocEnv
              HENV * 0013C620
    MSACCESS 79c-ed4     EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
              HENV * 0x0013C620 ( 0x09d31788)
    MSACCESS 79c-ed4     ENTER SQLAllocConnect
              HENV 09D31788
              HDBC * 0013C730
    MSACCESS 79c-ed4     EXIT SQLAllocConnect with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC * 0x0013C730 ( 0x09d31830)
    MSACCESS 79c-ed4     ENTER SQLSetConnectOption
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014
    MSACCESS 79c-ed4     EXIT SQLSetConnectOption with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014 (BADMEM)
    MSACCESS 79c-ed4     ENTER SQLSetConnectAttrW
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     EXIT SQLSetConnectAttrW with return code 0 (SQL_SUCCESS)
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     ENTER SQLDriverConnectW
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
    MSACCESS 79c-ed4     EXIT SQLDriverConnectW with return code -1 (SQL_ERROR)
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
              DIAG [S1000] [Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error (12560)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE8B8
              SWORD 4095
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (12560)
              WCHAR * 0x047EE8B8 [     126] "[Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error\ a\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0"
              SWORD 4095
              SWORD * 0x0013C624 (126)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE950
              SWORD 4019
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE950 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 4019
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE9E6
              SWORD 3944
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE9E6 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 3944
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 100 (SQL_NO_DATA_FOUND)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     ENTER SQLFreeConnect
              HDBC 09D31830
    MSACCESS 79c-ed4     EXIT SQLFreeConnect with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
    Edited by: user5598619 on Feb 10, 2009 5:37 PM

    Thanks a lot for your quick reply.
    I've read all the posts mentioned (quite a few more) but I couldn't find any suggested solution to the "non-oracle10g"-problem other than using the global db name instead of the sid - which didn't help in our case:
    However, in a last desperate attempt to solve the problem on my own before launching another cry-for-help-post I did try running the configuration assistant using the correct password for the SYS user 8-} and - strange but true - it did work :-)
    Needless to say: I used the global db name of course, so I can't say what would have happened without it, but I trust your hint was a legitimate one.
    Anyway - I gues that error Message concerning a "non-oracle10g database" was slightly misleading in this case.... grrrr.
    Andreas

  • Linking Java to Access Database tables

    Hello,
    I need use JCreator to link Java to Access Database tables.
    Could any one tell me what kind of drivers I need use?
    Also, where could I find the examples of linking Java to Access Database tables?
    Thank you,
    Daniel

    Thanks.
    I have read the tutorial and downloaded the sample code from the web http://java.sun.com/docs/books/tutorial/jdbc/
    In the CreateCoffee.java programming, I made the following changes:
         //     String url = "jdbc:mySubprotocol:myDataSource";
              String url = "jdbc:odbc:DB1";
    DB1 is an Access Database file located in the same folder as CreateCoffee.java.
    //Class.forName("myDriver.ClassName");
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Every time when I run the CreateCoffee.java programming, it shows the following running error:
    SQLException:[Microsoft][ODBC Driver Manager]
    Data source name not found and no default driver specified.
    Could any one have any suggestions for solving the above problem?
    Thank you,
    Daniel

  • Accessing partitioned table thru remote databse link

    Dear All
    I want to use create table command in my database .I want access partitioned table of remote datbase thru database link.Pl let me know the scripts.
    Thanks
    Parth
    NB : I was using the foll but actually the data given is wrong.
    select * from Data@prod "partition(part_feb03)";

    Don't able use partition table with the database link, sorry
    Regards
    Hector

  • Linked table in Access not displaying all SharePoint List columns

    In Access 2007 I created a link to a list in SharePoint 2010. 
    Originally the modified by and created by columns were not visible in SharePoint.  They did not appear in the Access table.
    I made the two lists visible in Sharepoint and refreshed the link.  However, the two columns did not appear in the Access table.  I created a new .accdb file and re-created a link to the list yet the two columns still do
    not appear in the table.
    How do I get these two columns to appear in the Access table?
    Thanks,
    - Bruce

    I figured it out by accident.  The fields are in the linked table ... they are just hidden!
    I face the same Problem with Access 2013 and SharePoint-Online from Office 365. I added additional columns to the list in SharePoint, but they won't appear in the linked table in Access. Even when I make all columns visible, they are not listed.
    Updating data for the other columns works like a charm.
    Any idea from anyone?

  • Access 97 - Changing Connection to Linked Tables

    Currently going through a migration process for an Access 97 database.
    I have managed to get everything working against my development database. I now want to port the database to a test environment for end user testing. However, my knowledge of Access is not very extensive, is there a way that I can change the link in the Access front end to point at the test environment. When I do this with the 'Linked Table Manager', using a different DSN file then I get Microsoft Jet db engine errors that the object cannot be found. This is due to the migration workbench converting the original tables names to proper Oracle formats and adding a '_R' suffix.
    Hope someone is able to help.
    Jon

    Hi,
    Can you give more details avout accessing SAP tables?
    Do you mean accessing SAP ERP, DSO, other?
    Didier

  • How to create a DSN-less connection to SQL Server for linked tables in Access

    hey
    i cant understand how i use that Function
    if that information what you need
     stLocalTableName: dbo_user_name
    stRemoteTableName: user_name
    stServer :sedo2015.mssql.somee.com
    stDatabase :sedo2015
    stUsername :sedo_menf_SQLLogin_1
    stPassword :123456789
    how will be that Function??
    please write that Function to me
    '//Name : AttachDSNLessTable
    '//Purpose : Create a linked table to SQL Server without using a DSN
    '//Parameters
    '// stLocalTableName: Name of the table that you are creating in the current database
    '// stRemoteTableName: Name of the table that you are linking to on the SQL Server database
    '// stServer: Name of the SQL Server that you are linking to
    '// stDatabase: Name of the SQL Server database that you are linking to
    '// stUsername: Name of the SQL Server user who can connect to SQL Server, leave blank to use a Trusted Connection
    '// stPassword: SQL Server user password
    Function AttachDSNLessTable(stLocalTableName As String, stRemoteTableName As String, stServer As String, stDatabase As String, Optional stUsername As String, Optional stPassword As String)
    On Error GoTo AttachDSNLessTable_Err
    Dim td As TableDef
    Dim stConnect As String
    For Each td In CurrentDb.TableDefs
    If td.Name = stLocalTableName Then
    CurrentDb.TableDefs.Delete stLocalTableName
    End If
    Next
    If Len(stUsername) = 0 Then
    '//Use trusted authentication if stUsername is not supplied.
    stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";Trusted_Connection=Yes"
    Else
    '//WARNING: This will save the username and the password with the linked table information.
    stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" & stUsername & ";PWD=" & stPassword
    End If
    Set td = CurrentDb.CreateTableDef(stLocalTableName, dbAttachSavePWD, stRemoteTableName, stConnect)
    CurrentDb.TableDefs.Append td
    AttachDSNLessTable = True
    Exit Function
    AttachDSNLessTable_Err:
    AttachDSNLessTable = False
    MsgBox "AttachDSNLessTable encountered an unexpected error: " & Err.Description
    End Function

    thanks more thanks for you
    look i add that code in form
    it worked but i cant add recored  why ??
    Private Sub Form_Open(Cancel As Integer)
    Call AttachDSNLessTable("dbo_user_name", "user_name", "sedo2015.mssql.somee.com", "sedo2015", "sedo_menf_SQLLogin_1", "123456789")
    End Sub

Maybe you are looking for