Do not beconfused with application (you developed), application development
framework (.NET Framework) and various type s of data source, be it
server-base database system (MySQL, SQL Server, Oracle), or file base
database system (Jet database, *.mdb/*.mde, or you can loosely call it
Access database), or even a flat text file.
Server based database itself is complicated enough to learn and use. Most
programming starter starts with Access database (Jet database), since it is
file based. To access jet database, you do not need Access installed, you
only need Jet engine available, which comes in all Windows OS, at least
since Win95 (you may need to download latest Jet SP (SP8) if you use older
Windows OS, though).
When you do ADO.NET app, you could then use a *.mdb file as data source
(using OleDb namespace in ADO.NET), you could even use Excel sheet (*.xls)
or comma delimited flat text as data source. In this case, yes you do not
need anything else installed besides .NET.
However, if you need truy database system, then you have make your choice of
database system products, which most likely is not a part of either Windows
or .NET, and most likely, it cost money to buy and cost time to learn and
use. In this case, you app might be a very small part of the entire system
and cost the least to build.
These days, server based database find their places in most software
development, while file based database is mostly used on desktop app for
single user settings (if the db is a decent product, such as Jet/Access
database, it may still be used in multiple users/LAN settings, but certainly
not good choice for web applications). If you are really geared to
programming, learning/using database server is certainly a basic. In MS
platform, SQL Server is the mostly used product, that is why all
..NET/ADO.NET example use it and it comes with VS (but it is NOT PART of .NET
framework).
Jonathan Wood said:
Is it assumed I know what MDAC is? So, you're saying the OleDbConnection
string posted below may not work on all computers with the .NET framework
installed?
Jonathan
Miha Markic said:
Jonathan,
Take note that JET driver (Access) is installed with MDAC (which is
installed along .net, too).
However, JET driver was pulled out of MDAC for a while (now it is back
in) and thus it isn't guaranteed to be available. I don't know which
versions are missing the JET out of my head.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development
www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
Jonathan Wood said:
If that works with no additional software other than the .NET framework,
that is exactly what I'm looking for.
I'll check it out. Thanks.
Jonathan
message Jonathan,
Here is an example of a connection string to connect to an Access mdb
database file named "myDB.mdb":
Dim cn As New OleDbConnection(("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=myDB.mdb;"))
Kerry Moorman
:
Really, I can use an Access database without Access? Where would I
find out
about this? Is a connection string still involved? What does it look
like?
That's what I'm trying to find out.
Jonathan