MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

ESSENTIALS: Home | Tips | Search | Categories | Top 10 | Products | Authors | Blogs | Forums | Webcasts | Advertise | About
Configure Microsoft Access Linked Tables to a SQL Server Database - MSSQLTips

MSSQLTips

MSSQLTips.com - your daily source for SQL Server tips
Welcome to MSSQLTips Sign in | Join | Help
in Search

Configure Microsoft Access Linked Tables to a SQL Server Database

Last post 11-18-2008 10:25 AM by stingaway. 14 replies.
Page 1 of 1 (15 items)
Sort Posts: Previous Next
  • 04-18-2008 12:30 AM

    Configure Microsoft Access Linked Tables to a SQL Server Database

    This post is related to this tip: Configure Microsoft Access Linked Tables to a SQL Server Database

    http://www.mssqltips.com/tip.asp?tip=1480

  • 04-18-2008 10:36 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    I peferred to use the ole db thru Microsoft access adp (project) because you do not have to go each PC to created that ODBC connection or changed the server.  I thinked that ODBC is older way of doing thing. The adp of Microsoft Access is cleaner, faster, and do not have go to each PC.

  • 04-18-2008 11:19 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    Another great and accurate article. A question I have is in your article you stated to select the 'primary key' for the tables or 'cancel' if you don't know them; if you don't know them and later find them out how can you update the table to use the 'primary key'? Would you have to recreate the linked table or is there a method that can be used to just update the linked table?

     Thanks for the article and information; this is spot on especially in cases of using Access 97 on the front-end (where ADP isn't an option).

     Thanks,
    James R.

  • 04-18-2008 11:33 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    ADP started in Access 2000.

  • 04-18-2008 5:42 PM In reply to

    • timmer26
    • Top 10 Contributor
    • Joined on 12-14-2007
    • Kalamazoo, MI, USA
    • Posts 26

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    James, you touch upon something I'll be covering in a tip at the end of this month, but there is a Linked Table Manager plugin within Microsoft Access you can use to update the linked tables without destroying them.  Since you asked, I'll make a point of using your specific situation in the tip as an example.

     Thanks for the feedback James.

    Tim Ford, MCSD
  • 04-25-2008 8:10 PM In reply to

    • timmer26
    • Top 10 Contributor
    • Joined on 12-14-2007
    • Kalamazoo, MI, USA
    • Posts 26

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    James, the new tip addressing your question has been finished and should go out in the next week.

    Tim Ford, MCSD
  • 05-14-2008 9:05 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    Hi,

    Our shop has used this extensively for a number of years, i.e., linking to SQL tables from MS-Access. I have recently noticed a problem and I am not sure how long it existed and/or if there is a fix.  Our environment is Windows XP(SP2), Office 2007/MS-Access 2007, SQL 2005 and SQL 2000. The error occurs when linked to either SQL 2005 or 2000.

     We have many large tables, 40,000+ records, and most have datetime fields, some with multiple datetime fields and these are the problem.When I create a new linked table I choose the External Data tab in the MS-Access "ribbon" at the top, I choose "More" under Import and go through the steps to link a table. After completing the link, if I open the table, still within the "External Data" ribbon tab, the table opens and I can focus on any cell, use arrows or tab to move quickly from field to field NO PROBLEM. However, if I select the "Home" tab from the top ribbon, the linked table remains open and I can focus into any cell and move using arrow keys or tabs, BUT, if I move into a datetime field, there is a long delay(30 secs - 5 minutes) before control returns. When it does, the total record count now appears in the bottom status bar("1 of 40,000" for example). If I move down the same datetime column there is no more delay. However, if I move into another datetime column, the delay recurs. It seems like the first time each datetime column receives focus it loops through each record doing something and it takes way longer than simply clicking the "Last Record" arrow in the bottom status bar.

     If I close the table and open again the same problem occurs where the initial focus to a datetime column results in long delays. This only occurs when the current ribbon tab is "Home". Pretty weird, huh?

    I would appreciate it greatly if you can solve this problem but, whether you can or not, would you recommend another good forum for this type of SQL/Access question. Mostly I deal with ASP.Net stuff.

    Thanks,

    Pat Grealy

  • 05-14-2008 9:25 AM In reply to

    • timmer26
    • Top 10 Contributor
    • Joined on 12-14-2007
    • Kalamazoo, MI, USA
    • Posts 26

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    I suspect that this is because Access will return all the values of the table into memory and needs to do conversion for each row in the table to get it from the SQL datetime format to the default date format for Access.  When it does this you'll get moved back to the first record.  Once you switch fields, it reconverts once again, pulling all the data into Access yet again (another delay.)

    This is purely conjecture though, but makes sense with the behavior you're experiencing.

    Tim Ford, MCSD
  • 08-04-2008 11:15 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    I am just curious...

    I am using ADOX to create Linked Tables from a SQL 2005 database.  By default the ADOX Table object does not contain the owner (in your example dbo_).  I have a need to INCLUDE the owner in some cases.  Do you know of a way to make this happen using ADOX?

     

  • 08-13-2008 9:08 AM In reply to

    • Ackim
    • Top 500 Contributor
    • Joined on 08-13-2008
    • Posts 1

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    Pat, i am running into a similar situation, were you able to find any acceptable work arounds to this issue.

    Thanks,

      

  • 08-14-2008 9:13 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    No, I never found a solution. The work-around that I use is to stay in the “External Data” tab of the Access 2007 ribbon if possible, rather than returning to the “Home” tab. – Pat G.

  • 08-14-2008 9:58 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    I was able to obtain the owner by using the ODBC Driver {SQL Native Client}

     

  • 08-19-2008 2:13 PM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    I am wanting to link an SQL Server Database query view as a table in an Access database.  My question is, will it act like a regular Access table that can be shared or like an Excel linked table, which I've had problems sharing when multiple users are doing reports that are based on queries using the same tables.

    My hope is that by linking it directly to the SQL database I can solve that problem.  Do you happen to know if that is the case?

    PS - as you can tell, I'm new at the SQL thing, we've just been using the CSV files output by the database and I'm on the user side, not using direct queries on the database.  Thanks for any insight.

    The articles and tips have been helpful, I'm going to keep searching.  Thanks!

  • 09-03-2008 5:57 AM In reply to

    • bkuhns
    • Top 500 Contributor
    • Joined on 09-03-2008
    • Posts 1

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

     I'm curious how this may work programmatically? Is it possible to implement this linking technique and access a .mdb file using ADO in C++ and all the SQL Server linking happens transparently? I'm just guessing that this is probably something handled on the frontend in Access and wouldn't be transparent on a programming level when communicating directly with the MDB file. Thanks for any insight!

  • 11-18-2008 10:25 AM In reply to

    Re: Configure Microsoft Access Linked Tables to a SQL Server Database

    Angelgirl -  You can share the database - but doing so will require a DSN on each machine.  

Page 1 of 1 (15 items)