Groups | Blog | Home
all groups > dotnet datatools > october 2004 >

dotnet datatools : Access vs MSDE


George Shubin
10/13/2004 10:27:52 AM
[quoted text, click to view]

As far as creating a fresh database from code, I use a tool,
http://www.smithvoice.com/dbcopier.aspx that creates the VB.Net logic from
my development database. It reads my database and generates all the code
necessary to create an empty database on the fly. You have to have a
reference to ADOX in your project.

Also, I don't bother with DSNs. Use a config file or registry entry or ini
file to save the database's location and use DSN-less connections:

sDBLocation = "c:\Data\MyDB.mdb"
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & sDBLocation &_
"User Id=admin;" & _
"Password="

And you're right. Access databases, if treated right, will work just fine
(to a point). I've had several of my clients' LAN applications with up to
10 concurrent users work with few problems connected with Access' reputed
deficiencies. I've never had a corruption problem or a bloating problem in
over 6 years.

We're talking LAN apps here, not web apps, right?

Regards.

--
------------------------------------------------------------------------
George Shubin Custom Software Development
dX Software Systems Database Applications
Ph: 503-981-6806 Fax: 503-982-0120
www.dxonline.com george@dxonline.com
------------------------------------------------------------------------

Mitchell Vincent
10/13/2004 10:57:34 AM
I would like to start a discussion of what everyone is using as an
embedded application database with .NET.

The MSDE package is *far* to huge to be of any real use at over 70 megs,
so I'm left with Access.

Access has had a bad rep in the past but I'm wondering if recent
versions (like, the last 5 years) have addressed the issues that it had
previously. I remember speed and relability with multiple users were its
two shortcomings.

I would also like to know if anyone has any VB.NET code to *create*
Access databases and add DSNs programatically so that I don't have to
rely on the user to set everything up correctly.

Thanks!

--
Mitchell Vincent
10/13/2004 1:56:51 PM
[quoted text, click to view]

Very nice tool. I can hardly believe it is free :-)

[quoted text, click to view]

That goes to show what I know. I thought a DSN was needed :-)

I'll have a look into ADOX as I can't say that I know the difference
between ADO, ADO.NET and ADOX..

[quoted text, click to view]

Yes, LAN apps.

--
Colin Stutley
10/14/2004 1:29:38 PM
A trick that I use is too include a blank (or pre-populated schema) database
as an embedded resource with a dll (class). I can then save this empty jet
database to disk in a known location and access it from there. This avoids
having ADOX available on the machine.

You can then create/modify the schema as required through a standard OleDB
connection, and executing 'CREATE TABLE ...' style statements. As mentioned
below the OleDB connection does not need a DNS defined (and creating a DNS
can cause registry issues on protected desktops).

- Colin.


[quoted text, click to view]

AddThis Social Bookmark Button