Solved

Change linked table from Access database backend to SQL Server Database

Posted on 2013-05-31
4
535 Views
Last Modified: 2013-06-21
So I have an access application that has a front end and a back end. The front end is the application and a bunch of linked tables to the Back End access database.

Ive replicated the back end Access Database exactly the same way as it is in Access, in SQL server.

All i need to do is change the linked tables to lookup the SQL database instead of the Access database back end.

I understand the connection has to be different since we are going to an ODBC connection now.

any help please?

thanks,
Vinnie
0
Comment
Question by:damixa
4 Comments
 
LVL 16

Expert Comment

by:DcpKing
ID: 39212283
I think you just take the existing Access database away, create an ODBC instance for SQL Server, and tell the Access front-end to refresh the links. It'll complain and should offer you the chance of selecting the link again in order to repair the break. Instead, give it the SQL Server destination.

hth

Mike
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39212786
So you already have your SQL Server up and running, and your data has been transferred?

If so, the simplest way to handle this is to remove your existing links and recreate them. You didn't mention the version of Access you're using, but if it's 2010 then you do this through the External Data ribbon group, in the Import and Link section. Select "ODBC Database", and then follow the prompts to create your links. If you already have a DSN created for the database you can use that, or you can create a new one (generally it's best to create a Machine Data Source rather than a File Data Source).

Once you do that, you can then select the Tables you wish to link, and Access will recreate the links for you. Note that Access will prefix the table names with the schema, so if you use the default "dbo" schema you'll end up with tables like "dbo_Employee" and "dbo_Customer". You'd need to remove the prefix and underscore in order for your tables to function correctly.

Also, in general you'll have to do some cleanup when moving over to SQL Server. See these articles for converting over to SQL Server:

http://www.fmsinc.com/tpapers/index.html - the SQL Server Papers section
http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp - The Best of Both Worlds
0
 
LVL 4

Expert Comment

by:BAKADY
ID: 39234390
how do the application gets the data from access-db, with vba?
otherwise, you need to use linked tables in access
0
 

Author Closing Comment

by:damixa
ID: 39267016
great, thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virtual SQL Server 2014 Standard 35 90
SSRS - Date Report Options 2 28
SQL R 21 25
Error when creating a table from a function 6 18
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question