473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1947
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_Variables, where
I declare most of my app level variables and constants, I might have
something like:

Public Const cConnect = "ODBC;DSN=ABC;UID=ABCR;PWD=something_sensitive "

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_whatever (ID_PK, ID, NAME) Values (123,
'Ooga booga')"

Set qd = dbs.createquerydef("")
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****@PurplePandaChasers.Moertheriumwrote 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********@yahoo.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
Tim Marshall wrote:
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.
Perhaps if you stored it embedded in a larger string and then extracted
it. Or perhaps embed in the string in two or more pieces and combine
them at run time.

Bob
Aug 23 '06 #11
Tim Marshall <TI****@PurplePandaChasers.Moertheriumwrote in
news:ec**********@coranto.ucs.mun.ca:
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.
Surely it isn't there if you encrypt your MDB source?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Aug 24 '06 #12
David W. Fenton wrote:
>>Yup, there is is!!!! 8( I just used MS Write, too.

Oh well, back to the drawing board.

Surely it isn't there if you encrypt your MDB source?
To be honest, I've never considered encryption as I didn't think I
needed it so I don't know how it works. I must read up on it.

Does it slow an app down?
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 24 '06 #13
Bri


Tim Marshall wrote:
David W. Fenton wrote:
>>Yup, there is is!!!! 8( I just used MS Write, too.

Oh well, back to the drawing board.


Surely it isn't there if you encrypt your MDB source?


To be honest, I've never considered encryption as I didn't think I
needed it so I don't know how it works. I must read up on it.

Does it slow an app down?
Its easy to use, Tools - Security - Encrypt/Decrypt Database.

I haven't noticed any decrease in speed from it. Today's PCs bairly
notice that extra processing. What it does do is make the mdb
non-compressable. So if you are distributing it via some method that
benefits from a smaller compressed file (in a ZIP file for example) then
you won't get any compression. In most cases this isn't even an issue.

--
Bri

Aug 24 '06 #14
Bri wrote:
>Does it slow an app down?

Its easy to use, Tools - Security - Encrypt/Decrypt Database.

I haven't noticed any decrease in speed from it. Today's PCs bairly
Thanks, Bri.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Aug 24 '06 #15

"Bob Alston" <bo********@yahoo.comwrote in message
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?
I personally prefer distributing an .mdb because I've noticed problems with
mdes when businesses have had different versions of Access on different
machines in their office.

Back five years ago, it wasn't a problem at all, but for some reason, which
I haven't bothered to track down, I have had real probles with use .mde
files lately.

I have a personal relationship with my clients, and if there is an error, I
like being able to either look at it, or talk to them over the phone, and
debug it on the spot.

If you are working in a bigger shop, where you can put more resources into
QA, this is less of an issue.

I'm also not too concerned about someone pinching my code, or screwing up by
work, although in the past, when those have been issues, I used .mdes.

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?
I've never tried it by changing the report definitions, I've only ever used
the report specs as arguments to queries and variables, and it works fine.

I've never tried creating and deleting or hiding and showing different
sections of a report in an .mde file, though. Don't know if that would
work.
Aug 26 '06 #16

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

Similar topics

11
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...
4
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...
3
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...
8
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...
1
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...
17
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...
4
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....
2
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.