Visit our new web pagesWe have launched a new extended set of web pages at www.alvechurchdata.co.uk. These old pages will stay on the server because people still have links to them but they will not be updated. The new version of this page is at www.alvechurchdata.co.uk/hints-and-tips/accsplit.html. |
||
Home About us Development Training Support |
Splitting an Access databaseA simple Access system holds all its data, forms, queries, and reports in a single database. You will get better performance and security if you split these components, moving the data into a separate "backend" database and leaving the forms and reports in the "frontend" Using the Database SplitterYou can separate the components by hand but Access provides the Database Splitter Wizard to automate the task. This creates a backend database named database_be, moves all the tables into this database, and links them to your original database which becomes the front end of the system. You will find the Database Splitter under the menu. Advantages of splitting your database
Using a split database on a single PCIf you are working on a single PC then you will not see many benefits from splitting your database. The only one that really applies is the fact that you are free to experiment with the front end database without running the risk of losing any data. One disadvantage that you will notice is that you will not be able to change the structure of the tables when you are working with the front end database. The tables are now in the separate back end database and although you can add, modify, and delete data from the front end, you can only change the structure of the tables from within the back end database itself. Using a split database on a networkThis is where the real advantages of a split database show. You can hold the back end database on your server and install a copy of the front end onto each of the users PCs. Each user will have their own local copies of the forms and reports and these will run more quickly than when they were being retrieved from the server every time that they were needed. The only traffic on the network now will be the data itself. Linking tablesThe first time that you open the front end database on a users PC you will get an error message that Access cannot find the tables. This is because the front end has been moved. Either link the tables again by hand or use the Linked Table Manager. This will be on the menu under or depending on the version of Access. You can also link the tables automatically by using DAO techniques in program code. Managing a database on a networkThe back end database will be backed up as part of the regular server backup routine so your data will automatically be kept safe. The front end databases on each individual PC wont necessarily be being backed up so its a good idea to keep a master copy of the front end on the server too. This is not for everyday use, its on the server so that you will have a safe version of the front end that can be copied down to any new PC that needs to use the database. |
Hints & tips
The textbox class in Visual FoxPro 9 has a new Autocomplete
property which shows the user the previous values that have
been entered in that textbox.
More...
|