How to change hardcoded database paths

Posted on 2009-02-20
Last Modified: 2013-12-27
We are in the process of switching file servers.  The directory structure is the same and all of our users have correctly mapped drives.
The problem is that one of our Approach files has hardcoded UNC paths and I cannot figure out how to change the path.

These are additional database files assigned to the .apr.  When I click on the file menu and select "Approach File Properties", under the "Databases" heading, I see the paths that need to be changed.

So right now, Ive got about 6 databases with a path of \\mail\path\database.dbf
\\mail is the server we are taking down, so the path should be T:\database.dbf

Any idea how to change the path?  I have been looking all over and have no clue how to make this change.

I cannot wait until we can finally get rid of Approach.
Question by:skowing
    LVL 38

    Expert Comment

    by:Jim P.
    Never having used Approach -- The UNC is actually written in the application? Or is there an INI, or registry setting, or in some database table somewhere?

    Just asking...

    If you can't change it, then what you can always do is use DNS to assign the new server the \\mail name and then re-create the share on the new server.

    Accepted Solution

    Apparently you have to actually move the apr file into the directory the extra databases are in, launch Approach and let it re-sync the paths, save, and then you can move the apr file back to where it was.
    LVL 38

    Expert Comment

    by:Jim P.
    Sounds good.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    MySQL going to sleep 4 57
    MYSQL Record Number 3 47
    sql calculate reminders 11 52
    Compare data between two databases 16 69
    IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now