473,761 Members | 10,684 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it considered best practice to distribute FE databases as MDEsrather than MDBs?

Is it considered best practice to distribute FE databases as MDEs rather
than MDBs? Without flaming me for asking the question, could someone
please enumerate the key advantages?

Also I like to provide my users a mini report writer where the report
specs are stored as local data files. Can I do this in an MDE - e.g.
have local data files for the report writer spec but no queries, forms
or report changes?

Thanks.

Bob
Aug 22 '06 #1
15 1971
Bob Alston wrote:
Is it considered best practice to distribute FE databases as MDEs
rather than MDBs? Without flaming me for asking the question, could
someone please enumerate the key advantages?

Also I like to provide my users a mini report writer where the report
specs are stored as local data files. Can I do this in an MDE - e.g.
have local data files for the report writer spec but no queries, forms
or report changes?
An MDE prevents a user form altering the design of code based objects where
they would more than likely mess them up.

In some cases you might have data inside your code that you do not want
users to see. An MDE prevents that.

An MDE is generally smaller and since it is always 100% compiled will
perform a bit better than an MDB.

Untrapped errors will cause all public variables to lose their values in an
MDB. That doesn't happen in an MDE.

If your "writer specs" are stored in a table then an MDE will still store
them. I have no idea what you do with your "specs" so beyond storing them
in a table I can't say whether an MDE will break that process. If you use
them to apply on-the-fly changes to existing reports then an MDE can still
do that. If you use them to actually create new reports then no, an MDE
will not allow that.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Aug 22 '06 #2
Rick Brandt wrote:
In some cases you might have data inside your code that you do not want
users to see. An MDE prevents that.
A prime example of this for me would be in the storing of a connect
string with a sensitive password, such as what I use for Oracle connections.

For example, in a standard module called Mod_Constants_V ariables, where
I declare most of my app level variables and constants, I might have
something like:

Public Const cConnect = "ODBC;DSN=ABC;U ID=ABCR;PWD=som ething_sensitiv e"

Tthis connect string would be used with temporary querydefs, air code
example:

dim Qd as Dao.querydef
dim strSql as string

strsql = "insert into ABC.tbl_whateve r (ID_PK, ID, NAME) Values (123,
'Ooga booga')"

Set qd = dbs.createquery def("")
with qd
.connect = cConnect
.sql = strsql
.returnsrecords = false
.execute dbfailonerror
.close
end with

Using an mde allows me to forever keep the password secret from the user.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 22 '06 #3
Bob Alston wrote:
Is it considered best practice to distribute FE databases as MDEs rather
than MDBs? Without flaming me for asking the question, could someone
please enumerate the key advantages?

Also I like to provide my users a mini report writer where the report
specs are stored as local data files. Can I do this in an MDE - e.g.
have local data files for the report writer spec but no queries, forms
or report changes?

Thanks.

Bob
Are MDE files more reliable and less likely to corruption than MDBs?

Bob
Aug 22 '06 #4
>Bob
Are MDE files more reliable and less likely to corruption than MDBs?
Yes, I would say they are more relabley. They are for sure compiled, and
cannot become un-compiled. I had some forms in ms-access where I open them,
and then I am asked to save them (and, not changed anything). This problem
is useally due to some compile issue (or lack of).

Furhter, since you can't build a mde with compile errors, then it really is
a nice last minuite check for you anyway.

So, they are somewhat smaller, tend to run a bit faster (and, actually a lot
faster if the mdb is not compiled). This also reduces bloat somewhat.

Aug 22 '06 #5
>Bob
Are MDE files more reliable and less likely to corruption than MDBs?
Yes, I would say they are more reliable. They are for sure compiled, and
cannot become un-compiled. I had some forms in ms-access where I open them,
and then I am asked to save them (and, not changed anything). This problem
is usually due to some compile issue (or lack of).

Further, since you can't build a mde with compile errors, then it really is
a nice last minute check for you anyway.

So, they are somewhat smaller, tend to run a bit faster (and, actually a lot
faster if the mdb is not compiled). This also reduces bloat somewhat.

I can't really say they are more reliable, but then I never taken the risk
to distribute a mdb.

The fact that users can't accident modify the application would likely be
reason enough. When you add up issue additional issue (it is compiled, it
is smaller, can't be modified...etc etc etc), then it just becomes a really
good all around practice.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Aug 22 '06 #6
Tim Marshall <TI****@PurpleP andaChasers.Moe rtheriumwrote in
news:ec******** **@coranto.ucs. mun.ca:
A prime example of this for me would be in the storing of a
connect string with a sensitive password, such as what I use for
Oracle connections.
Unless your MDE is encrypted, I think you should be able to view the
password with a file viewer, since constants must be compiled into
the code directly.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Aug 23 '06 #7
Bob Alston <bo********@yah oo.comwrote in
news:16******** *****@newsfe03. lga:
Is it considered best practice to distribute FE databases as MDEs
rather than MDBs? Without flaming me for asking the question,
could someone please enumerate the key advantages?

Also I like to provide my users a mini report writer where the
report specs are stored as local data files. Can I do this in an
MDE - e.g. have local data files for the report writer spec but no
queries, forms or report changes?
You've had the answers.

I don't distribute MDEs, myself, because it finder it easier to fix
errors that pop up at runtime when I can walk the user through
editing/adding a line of code, rather than needing to send them a
new MDE.

That said, I have distributed MDEs in secured apps, but don't have
any of those in production use these days.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Aug 23 '06 #8
David W. Fenton wrote:
>>A prime example of this for me would be in the storing of a
connect string with a sensitive password, such as what I use for
Oracle connections.

Unless your MDE is encrypted, I think you should be able to view the
password with a file viewer, since constants must be compiled into
the code directly.
Good point! I must check that. The mde is still good for most users in
my environment, but I think you're right for someone with a little more
knowledge.

I'll try it and get back...
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 23 '06 #9
Tim Marshall wrote:
Good point! I must check that. The mde is still good for most users in
my environment, but I think you're right for someone with a little more
knowledge.

I'll try it and get back...
Yup, there is is!!!! 8( I just used MS Write, too.

Oh well, back to the drawing board.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 23 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
9268
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
4
3958
by: Ed Landau | last post by:
Hi: I've just developped a really simple MS Access App. The VBA runs within the database. It uses some DLLs which I register with a script. It's on MS Access2003 (Office11). I've got 2003Pro but could get Ent. Never having done this before, I'm not sure what I need to do in order to be able to distribute it. I'd like not to require other users to have Access installed (let alone 2003). For starters, I'm just looking to be able...
3
2403
by: Nick | last post by:
Hi, We're are about to develop an app in C# that will use a MS Access database file for data storage. The db structure will not be modified. The user will use the C# developed app to view and edit the data (as well as add/delete records etc.). In order to distribute or app (including .mdb file) to PC's without MS Access installed do we need anything (I'm thinking specically about the MS Access Runtime)?
8
1793
by: Bob Alston | last post by:
With all the recent discussions on ADPs and their lack of success, can someone point me to some GOOD reading on what is required to link MDBs to SQL Databases / Microsoft SQL Server 2000 Desktop Engine. Also are their any good, concise summaries of key differences that someone with Access/Jet experience would need to understand? Thanks Bob
1
2279
by: Vincent V | last post by:
Hey i am just starting a new project and from the start i want to make sure my app is as Object Orientated as possible I have a couple of questions in relation to this Question 1: Should i Struction my solution in numerous projects ie 1. Webpage Files(ui) 2. Classes
17
8041
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to read or modify this string so I don't want to store it in an INI / Text file or in registery. Can someone please tell me the best practice for this. Thanks Mike
4
3565
by: RoadRunner | last post by:
Hi, I have a question. I am asked to produce a global search of a given corporate name, in more that one database. Each database has different table names and different field names in the tables. Does anyone know if this can be done? Thanks
2
2503
by: RONIN | last post by:
Can you tell me what is the best practice for SQL database migration from one DB server, to another one, new DB server. The old DB server will be removed. 1. Backup from old and restore all databases on the new server 2. Export data and copy/import on a new server 3. Something else... Thanks in advance for any good advice...
3
1990
by: Alan Isaac | last post by:
This is a simple question about actual practice. I just want to know how you (yes you) are approaching this problem. The problem: What is the recommended packaging of demo scripts or test scripts for a package to be distributed to others to "play with". (I.e., without "installing".)
0
9521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9900
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.