Re: Starting with VB2005 and SQL Server 2008 Express Edition

Tech-Archive recommends: Fix windows errors by optimizing your registry




"NZSchoolTech" <nzschooltech@xxxxxxxxxxxx> wrote in message
news:%23ttSSMywJHA.5584@xxxxxxxxxxxxxxxxxxxxxxx
Good day,

I have a lot of programming experience in languages other than VB, but I
have done a limited amount of programming in it. I have extensive
experience
with Microsoft Access in databases.

I am looking at two options:
1. Connect MS Access to SQL Server 2008 Express and using the latter to
run
the data and Access just does reporting and data input
2. Writing a VB application to connect to SQL Server 2008 Express to
handle
the data entry instead of using Access.

There is nothing about VB that is inherently difficult for me, as I've
used
it before as well as other GUI development environments. However I'm
finding
it difficult to try out SQL Server 2008 Express to connect to a database
from VB.

So far I've used the import tool on SS2008E to import an MDB into an MDF.
Now I want to know how to connect to the data from a VB application and
handle it. In Access we are just inputting data in simple forms and not
doing very much more than that with it. The reason I want to use VB
instead
is to be able to get better multi-user performance with the databases than
Access will be able to handle, and I figured it should be really really
simple to do.


Whew! A lot of questions in there. <g>

First some basics might help to get you started. (If I get too pedantic and
yap about something you already know then just ignore me. Also this is a
limited media, thus many comments are necessarily "general" in intent - the
specifics may vary. )

MS Access, the Office Product, is merely an application that uses the Jet
engine and Jet-formatted database files as its storage. [There are now two
flavors of "Jet" the original "mdb" files and the new "ACE" with "accdb"
files.] The important fact is that these are file-based databases.

SQL Server Express is also a file-based database ("mdf") and should not be
confused with SQL Server which is a full-featured RDBMS - relational
database managment server. It is the latest attempt by MS to replace Jet
with an engine (independently developed) who's purpose is to supply a
front-end which acts identically to SQL Server. This is part convenience for
developing database applications and part marketing - by providing an easy
upgrade to buying SQL Server.

All this to address this comment ...
"The reason I want to use VB instead is to be able to get better multi-user
performance with the databases than Access will be able to handle."

Based on this and the fact you are considering SQL Server - it appears
you're really talking about two technologies, or sea-changes, here. (I
think?)
1) Replacing MSAccess applications with VB applications.
You can share a database with MSAccess or VB. Using MSAccess, as you
probably know will require all users to have MSAccess installed (or you to
purchase the MSAccess/Office developer's package). VB has the advantage of
developing applications that can be distributed without additional
licensing.
While MSAccess UI tools are convenient, you will have more options in
designing User interfaces with VB, however VB's reporting abilities frankly
suck. For a full VB replacement you will need a better Report Generator
($400 and up). You can use MSAccess reports from VB using Automation - but
there we go again - you would have to have all users have access to
MSAccess.

2) Replacing Jet-formatted file-based databases with SQL Server Express
file-based databases.
In this case you are going to have pretty much the same issues with SQL
Server Express that you will have (or are having) with Jet. The exact number
of users that can be supported with a shared database file varies
dramatically depending on what you are doing, the frequency, and the wire. I
have read some pretty amazing claims for both Jet and SQL Server Express -
but in my experience 18-24 seems about average when comparing two similar
very busy applications. Actually the number is usually less for SQL Server
Express Again it is difficult to quantify comparisons as things that are
quick in one, tend to be slow in the other, and vice versa. And there is an
effort to deliberately throttle the number of users with Express.

In summary, VB might facilite better looking, more robust front-ends, but
would do nothing to improve over-all multi-user performance. (Outside of
other distributed application configurations.) And since you already know
MSAccess (and presumbly only need to learn VBA for Access), it would appear
that you would be better off to investigate MSAccess projects. VB with Jet
or VB with SQL Server Express isn't going to improve multi-user performance.
You can adopt MSAccess projects to work with SQL Server Express (or SQL
Server) as a backend if you still want to abandon Jet. BUT ... MSAccess with
Jet, or MSAccess with SQL Server Express, isn't going to bring that much to
the table either.

Well that's enough of this ... I'll respond to your other questions later.
<g>

-ralph



.



Relevant Pages

  • Re: Im very confused about the different databases!
    ... There's DAO, ADO, ADO.NET, Jet, SQL, SQL Server ... What database & version comes with VB6 LE? ... What is the most current database that I can use with VB6 LE? ... Why isn't Jet or whatever VB6 LE uses listed in Add-Remove Programs? ...
    (microsoft.public.vb.general.discussion)
  • Re: Database Connectivity
    ... Never was Jet mentioned anywhere at anytime. ... >> Microsoft Access Database Solutions, with not a single mention of Jet. ... front end, and the underlying database engine, JET. ... like SQL Server, Sybase, MySQL, etc. ...
    (comp.lang.python)
  • Re: Duplicate Values Question
    ... My general approach when working with SQL server does NOT include the use of ... If you think that Access 2007 means that Jet ... database code will remain the same forever... ... constraints correct and maintain the data integrity... ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Starting with VB2005 and SQL Server 2008 Express Edition
    ... Connect MS Access to SQL Server 2008 Express and using the latter to ... MS Access, the Office Product, is merely an application that uses the Jet ... SQL Server Express is also a file-based database and should not be ... Replacing MSAccess applications with VB applications. ...
    (microsoft.public.vb.database)
  • Re: Why not Access...?
    ... The first point is, yes, Jet, not Access, is a file based, Pseudo-RDBMS. ... Jet database will corrupt and become ... MS Jet/Access, MSDE, and SQL Server 2005 Express Edition. ... > I am developing a desktop application using VB as front-end for some clients> where the a large number of regular entries are done but there is a rare need> to delete old customers. ...
    (microsoft.public.sqlserver.server)