Re: Databases - DAO and ADO
- From: "Webbiz" <nospam@xxxxxxxxxxxxxxx>
- Date: Tue, 14 Apr 2009 11:01:06 -0500
Olaf,
Last night I downloaded the files and demos from your weblink and have read
the readme files (except the one I think is in German ;)
I was very impressed with the speed comparisions between the ADO and SQLite.
Very impressed. Zoom zoom.
I'll have to admit though, I was totally overwhelmed by it all. Why? Because
I'm still at rung #2 on my climb to becoming a proficient VB programmer.
I'll be looking at the Metastock demo in a few minutes, but I thought I'd
drop in and read some more of the comments in this thread.
I'm concerned as to how long it would take me to learn how to use SQLite
with my lack of database and SQL experience. I've got a time crunch to get a
nice quick data retrieval piece of code completed (with NO storage
requirement, by the way). I still have to write the code that will be
manipulating the data retrieved in various ways, so the sooner I can get a
data retrieval and query coded the better. Can a complete newbie greenie
like me learn how to do this with SQLite in a speedy fashion? Is there a
SQLite for total Dummies write-up that I missed somewhere?
With all that said, I have to say that from what I saw it is a very nice
piece of work Olaf. Kudos!
Cheers!
Webbiz
"Schmidt" <sss@xxxxxxxxx> wrote in message
news:ek5kM$PvJHA.5684@xxxxxxxxxxxxxxxxxxxxxxx
"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxxxxx> schrieb im Newsbeitrag
news:%23%23HfAOMvJHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
Why do you not make the OP attend on the recordset.What do you mean with that?
The Example I've posted does work with Recordsets.
And yes of course, Recordsets are nice "2D-Containers",
which are easy (and fast) to pass around using only an 4Byte-
ObjPtr - sortable by more than one Column, easy bindable
to GUI-Controls which support these Containers, etc.
A much more VB6 like method then using SQL ...Recordsets are usually retrieved over SQL - but why only
use plain (and dumb) "Select * From Table"-queries?
SQL has a lot more to offer - so why not use that builtin
"dynamic Query-Compiler" which is able to interpret and
process your SQL-Textstring "on the fly"?.
And @Ivar:
That's exactly the main-advantage over an array-based,
"handcoded" solution - you don't need much code and
efforts, to build a flexible "query-gui" for your customer,
which offers a whole lot of filter-, aggregation-, calculation-
and grouping-options, just by concating the appropriate
SQL-string-parts.
You cannot achieve the same flexibility with a handcoded
solution - Ok, you can ;-) - but with much more lines of
code.
(Although in the latest version of VB, I would go forYep, that's the wrong group for these recommendations -
LINQ to SQL, but that is not the solution for the OP
in my idea)
but you know that of course.
And BTW, we had these: "the power of LINQ" discussions
already in the german classic-groups - and so far nobody of
the .NET-folks came up with a LINQ-based example, which
was able to demonstrate the "increased productivity" (with
less lines of code, compared with a plain Recordset+SQL-
solution in VB-classic).
Maybe you want to post another one.
It would be better in my idea to tell the OP that a databaseI don't get you here - each SQL-based engine supports
server or a database engine (by instance Jet) uses tables.
something like "tables".
The tables can be used in a recordset from VB6 simpleDB-Tables are just "raw quantities" - and the words you mention
by First, Next, AddNew and more as those methods ...
here are not related to these "tables" - these are methods on an
Obj-Representation - an resultset/recordset - which normally
represents only a subset and/or a combination of the table-data
from your "raw-quantities".
(We find that back in Linq to SQL again where those methodsSorry - but if you mean Recordsets+SQL (or your repeatedly
are used in quiet similar way, but that is not VB6).
mentioned "LINQ to SQL") is there, to allow just a recordbased
navigation on a "plain DB-Table", then you should really work
with Arrays instead - you can write them to disk with 3 lines
of code (at least in VB-Classic) and read your "table-arrays"
from there with another 3 lines. ;-)
That kind of table handling is much easier then using anAs just said, if you think about DBs in that simple way, only as
Array like in history.
a bunch of tables - and a Recordset only as a Navigation-
Helper on a plain table - then indeed - good old Array-
Handling would be the way to go - no need for a DB... <g>
Although I am more active in newsgroups about new VBThen I'd recommend to stay there ...
languages, ...
...outclasses the VB6 methods in my idea that approach fromThis sentence is just ... sorry, I don't know what you want to say.
1970 which you show.
SQL server Express is free,Yep, it is free - and crippled regarding multiuser-performance -
difficult to install - the deployment-volume alone for the clientside
access-layer is around 4MB - the serverside install is even larger -
moving around your DBs is not easy (they need to be attached/
detached to/from a running server-instance) - not very easy to
use in a simple desktop-scenario if you ask me.
Olaf
.
- Follow-Ups:
- Re: Databases - DAO and ADO - SQLite?
- From: Webbiz
- Re: Databases - DAO and ADO - SQLite?
- References:
- Databases - DAO and ADO
- From: Webbiz
- Re: Databases - DAO and ADO
- From: Schmidt
- Re: Databases - DAO and ADO
- From: Cor Ligthert[MVP]
- Re: Databases - DAO and ADO
- From: Schmidt
- Databases - DAO and ADO
- Prev by Date: Re: Databases - DAO and ADO
- Next by Date: Re: Hey Karl...
- Previous by thread: Re: Databases - DAO and ADO
- Next by thread: Re: Databases - DAO and ADO - SQLite?
- Index(es):
Relevant Pages
|