Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Access front-end SQL back-end : quickly switch between prod & dev box

Posted on 2014-11-14
3
158 Views
Last Modified: 2014-11-17
Hi All,

I have two boxes - prod & dev. I have an Access 2007 front end, with an SQL back end.

I'm looking for the quickest way to switch the entire DB between pointing at the different boxes.

Unfortunately, I connect to the server in pretty much every way possible, including VBA (ADO & DAO), pass through queries, linked tables.

Now this is fairly easy to do in VBA for the coded connections, but I wonder whether there's quick way of doing the same for all my pass through queries and tables.

Does anyone have any pre-scripted routines? Or perhaps there's a way to make the connections rely on a central file wherein I can change the connection string?

Any pointers would be appreciated.

Thanks
0
Comment
Question by:James Elliott
3 Comments
 
LVL 33

Expert Comment

by:ste5an
ID: 40442874
First of all: It requires a restart of Access to do it safely. Cause connection pooling may interfere here.

Then you do the same as the table link manager, just in your code. You set the Connect property for each object which is affected.
0
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40443170
I've attached a sample extracted from one of my applications.  We had two databases and three stages - test, QA, and Prod.  It relinks the pass through queries and rebuilds the pseudo indexes that make linked views updateable.
RelinkODBC-POMS140228.zip
0
 
LVL 12

Author Closing Comment

by:James Elliott
ID: 40446977
Just what I was hoping for. 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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

856 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