| View previous topic :: View next topic |
| Author |
Message |
rang General User

Joined: 05 Apr 2012 Posts: 5 Location: France
|
Posted: Thu Apr 05, 2012 10:28 am Post subject: Front-end Back-end both odb databases? |
|
|
Trying to move from msaccess to oobase.
Under masacces, I had all data (tables) in 3 separate databases (back-end), and a single database (front-end) with queries forms and reports.
Under msacess, I could link the front-end mdb to the tables in the back-end mdb(s)
I've got my data (backend) odb databases set-up, finally, but can't figure out how to set-up the front-end odb database with linking to the data (back-end) odb databases.
Can anyone help?
Explanatory Sidenotes:
It's not a matter of server-side multi-user.
My design admins companies.
Each company copies the (virgin data) base design to a companyname folder with front-end db and subfolder data db(s), and can exploit the system, on their pc. Depending on choices made in the front-end db, only one back-end db is used for basic admin, or a further one for accounting, or a 3rd one for project management.
Backup systems work on back-end dbs only. |
|
| Back to top |
|
 |
dacm Super User


Joined: 07 Jan 2010 Posts: 734
|
Posted: Thu Apr 05, 2012 5:22 pm Post subject: Re: Front-end Back-end both odb databases? |
|
|
| rang wrote: | | Trying to move from msaccess to oobase. |
Your requirements sound modest, as most MS Access projects can be duplicated, with some effort, in Base. But you'll need some good reasons to move a full-fledged database application from MS Access to Base, especially in a corporate environment. You'll quickly notice that Base lacks the ease-of-use, the depth-of-features, the eye-candy, the stability, the ease-of-macro-development (for VBA porting see Access2Base extension), and the widespread support of Access. But if your customers need a cross-platform solution to include Linux and your not a web-application programmer, or if you've found that the free runtimes (2010 / 2007) won't support your MS Access project, or if you need a fully-portable solution, then Base can be a good choice for the desktop to include expansion into multi-user, client-server environments.
| rang wrote: | I've got my data (backend) odb databases set-up, finally, but can't figure out how to set-up the front-end odb database with linking to the data (back-end) odb databases.
Can anyone help? |
On Windows machines, you're probably aware that you can connect directly to your .mdb files with Base. Use the 'Connect to an existing database' wizard and select 'MS Access (.mdb) or MS Access 2007 (.accdb read-only).
But the steps you've already taken have effectively migrated your data to the built-in HSQL database engine. Unfortunately, you can't link two .odb files in the manner you're seeking. And you won't want to do so, because the configuration produced by the 'New database' wizard is unstable and prone to data loss. So there's still some work involved with separating the front-end and back-end components. But the good news is, you'll have plenty of connection options with Base. You can add embedded Queries, Form and Reports to your .odb file. And you can 'register' the .odb file in AOO/OOo/LibO and utilize standalone Writer documents/forms, Calc spreadsheets, etc. as front-end components. See my signature links for details.
Otherwise, you can select among many popular database engines with Base such as HSQL (built-in or latest version), H2, Apache Derby, SQLite, PostgreSQL, MySQL, or perhaps Firebird. To create this type of .odb, you'll use the Base wizard: 'Connect to an existing database.' _________________ Soli Deo gloria
Tutorial: avoiding data loss with Base + Migrating 'Embedded databases'
Last edited by dacm on Thu Apr 12, 2012 10:27 am; edited 1 time in total |
|
| Back to top |
|
 |
rang General User

Joined: 05 Apr 2012 Posts: 5 Location: France
|
Posted: Thu Apr 12, 2012 2:21 am Post subject: Front-end Back-end both odb databases |
|
|
Many thanks dacm for your reply.
I read the tutorials - most enlightening.
The reason to move out of msaccess is the free availability of my system without the burden of a licence per pc for my small busineess friends.
Although msaccess may be better for the developer, for a finished design the only requirement is to get it working.
To resolve the frontend-backend issue, it seems for me the way to go is convert the tables to mysql.
Hopefully the conversion from msaccess to OObase of queries forms tables and many macros will not be too heavy -- including dde conection with writer (no idea if that's going to work, from my msaccess forms one could automatically launch a preadressed prefilled word or email document eg a sales confirmation).
Since all the presentation design and logic is already there, I can fall back on writing code in perl/php if this would be easier for me then conversion to OObase.
thanks for your guidance. |
|
| Back to top |
|
 |
dacm Super User


Joined: 07 Jan 2010 Posts: 734
|
Posted: Thu Apr 12, 2012 3:18 am Post subject: |
|
|
Are these business computers Windows machines?
| rang wrote: | | Hopefully the conversion from msaccess to OObase of queries forms tables and many macros will not be too heavy |
That's going to be a lot of hard work (Forms, Macros, etc.), so before you commit I'm just wondering if you're aware of the free runtimes available for MS Access projects (mentioned above with links)? In that case, the business computers don't need a licensed copy of MS Access installed. And the free MS Word viewer might suffice (read-only) -- although it is possible on Windows machines to access the tables and views (query tables) in a MDB/ACCDB file using a Base (.odb) file and then mail-merge the data into OOo/AOO/LibO Writer documents as needed. So perhaps the combination of free runtimes and Base+Writer will allow you to use your existing MS Access project without reworking anything but the mail-merge feature. Just some thoughts. _________________ Soli Deo gloria
Tutorial: avoiding data loss with Base + Migrating 'Embedded databases' |
|
| Back to top |
|
 |
rang General User

Joined: 05 Apr 2012 Posts: 5 Location: France
|
Posted: Thu Apr 12, 2012 4:37 am Post subject: Front-end Back-end both odb databases |
|
|
Good thoughts..........
I've never used the msaccess runtime system but I'm aware of the concept, you are right, that looks like a good approach and then use some way to connect to OOwriter.
I never needed to consider the free runtime method, the pc's with windows all had msoffice pro, but now I have new requests from users who don't have msoffice pro, and now also a mac user, which is why I'm reviewing how to do this.
I'm tempted to look for an open source way so that my users can tailor adjust-extend and not depend on me. With runtime, flexibility would be lost, and users' dependance on me would become primal (I guess it always was but I'd like to get away from that..)
I need to think more before committing to such a major change.
Thanks |
|
| Back to top |
|
 |
dacm Super User


Joined: 07 Jan 2010 Posts: 734
|
Posted: Thu Apr 12, 2012 2:06 pm Post subject: Re: Front-end Back-end both odb databases |
|
|
| rang wrote: | ...and now also a mac user, which is why I'm reviewing how to do this.
I'm tempted to look for an open source way so that my users can tailor adjust-extend and not depend on me. |
A Mac user in the mix could be a game changer because the MSA runtimes aren't available for the Mac. Well, I guess for a single Mac user, an old, transferable, licensed copy of Windows could be run on the Mac in a virtual environment such as Wine.
Otherwise, in pure Windows environments, your end-user would be better-off with perhaps a single, licensed copy of MS Access available on-site for use in the event that additional tailoring becomes necessary. I would not personally dump a Base project on an end-user with the expectation that they would then take-over the maintenance. Especially not something as complex as you're describing. I won't run through the reasons again (as outlined in my above post) but your end-users, in particular, will thank you when it does come time to make significant adjustments, especially if macros are involved. I should mention that MS Access consulting services are widely available, while the equivalent Base services are virtually non-existent. I'm just being realistic. _________________ Soli Deo gloria
Tutorial: avoiding data loss with Base + Migrating 'Embedded databases' |
|
| Back to top |
|
 |
rang General User

Joined: 05 Apr 2012 Posts: 5 Location: France
|
Posted: Fri Apr 13, 2012 2:44 am Post subject: Front-end Back-end both odb databases |
|
|
I do see your point.
My system was developed for my own business needs using msa2000, later several other business friends wanted to use it too, so it's not a commercial thing. But now with new users asking to use my system, new computers with windows7 (needs msa2003 or above so msoffice upgrades needed), a mac user, tendancy to have more computers per person/household/business, and me wanting to get users to help themselves more for tailoring, is why I thought of trying for an opensource environment (at least the argument "can't afford msofficepro on 2 or more pcs" wouldn't go down).
It begins to look like its just not realistically feasable.
Some new users (eg my son, the new mac user, starting his own business in another city) could learn enough to be able to make a query to print out some combination of data that was not foreseen. Fiddling an existing system (with all those technique examples) is much easier than a start from scratch.
By the way, in MSA I was using a macro function "AutoReattachTables" to link the backend db tables to the frontend db, anytime a new user setup with a copy of the (virgin) data design from the installation folder.
I don't suppose that will work either since you have said one cannot link 2 odb files, although if linking to other types of external dbs works I don't really understand why.
(I can post the code if that gives any insight)
thanks for yr guidance |
|
| Back to top |
|
 |
dacm Super User


Joined: 07 Jan 2010 Posts: 734
|
Posted: Fri Apr 13, 2012 2:10 pm Post subject: |
|
|
Well once again, you can't link a front-end ODB to a back-end ODB in Base. And once again, you would never want to use a back-end ODB file in a production environment because it's about 10,000-times more susceptible to data loss through file corruption than an MSA MDB/ACCDB back-end.
Base should be thought of as a front-end ODB only with the ability to embed stored Queries, Forms, Reports and Macros...but no embedded Tables or Data. The Tables and Data should always be stored in a separate back-end database whether it be a Text file (CSV), dBase folder, mail-merge file (LDAP), MDB (Windows only), or SQL database engine. Of course you'll want an SQL database engine serving as the back-end with Base for a project like yours. And you can ultimately add polish to the design by using a standalone Writer Form as a 'switchboard' to open other standalone Forms or with macros you can open ODB-embedded Forms and Reports. The ODB-embedded Queries are accessible without macros in all cases.
Now keep in mind that several SQL database engines can be run seamlessly with Base (HSQLDB, H2, Apache Derby or SQLite) meaning they can be setup to run automatically when the ODB is accessed. HSQLDB, H2, and Derby require Java (JVM) but they provide significantly more function than SQLite including multi-user support. Besides, HSQLDB is bundled with Base so you have everything you need to get started with a standard Base installation. See my signature links for details setting-up Base+HSQLDB or Base+H2.
So that said, you can create a "virgin" database folder and copy that folder to the "working" database folder for new users, using a macro if you prefer. It will work instantly if the ODB front-end was already setup to access a database of the same name in "working" database folder. No problem there.
And I guess I should mention that standalone Writer/Calc Forms allow connection to any number of ODB files, so you can effectively manage data from multiple data sources, even from a single, non-embedded Form. The only limitation relative to MS Access here is that Queries are limited to a single data source per query. However, HSQLDB 2.x and others support multiple, internal databases using "Schema" (internal database folders), so I presume a single Base Query could access multiple databases across Schema. _________________ Soli Deo gloria
Tutorial: avoiding data loss with Base + Migrating 'Embedded databases' |
|
| Back to top |
|
 |
rang General User

Joined: 05 Apr 2012 Posts: 5 Location: France
|
Posted: Sat Apr 14, 2012 2:12 am Post subject: Front-end Back-end both odb databases |
|
|
That was enlightening, I'm getting a clear focus now.
I well understand how I should view as front-end only ODB.
I also see clearly that my backend db's need to be in a SQL db.
I also see that I can keep my "attachtables" method even using macros, with indeed same name but different "working" folder. Also, I note the potential of Writer and Calc assessing odb queries, cool (presently it's the other way around, everything gets initiated from swithboards/forms on my frontend msa db).
So that leaves me with the task of converting my msaccess frontend to odb, and reviewing which SQL database to use to convert the msaccess backend tables. I'll have to study the alternatives since I have no experience with SQL databases other than Mysql.
Thanks very much for your help. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|