
Need Connection string for VB6 DAO DSN-LESS Connections to SQL Server 2000
OK - sounds as if you're determined but, one more try:
Quote:
> My Responses In-Line:
> > Oh! I though it was a typo!
> > I have a simple answer: Don't use DAO to communicate with anything
> > besides
> a
> > Jet database.
> Don't move to ADO because it the new technology.
> Have a look at the circumstances and make an informed decision.
Sorry, but this is not an "informed" decision.
ADO is NOT new technology any more. Your statement was true 5 (?) yrs ago
when ADO 1.5 came out. At version 2.7, it is now a very robust technology
that, frankly, runs circles around DAO in both performance and features
when used with non-Jet databases.
Quote:
> > 1. IIRC, there is no such thing as a DAO DSNless connection to SQL
> > Server.
> > I'm pretty sure it had to use a DSN.
> Any links to verify this?
No, again, I said IIRC (if I recall correctly). I am not going to take time
to try and look it up.
Quote:
> > 2. You are severely limiting yourself in both performance and features
> > by
> > using DAO instead of ADO.
> 'Severely' is overstated.
> With performance this simply isn't true.
> DAO is know to be faster than ADO.
Only with Jet databases. Unlike ADO, DAO can talk directly to the Jet
database engine, and is "tuned" to optimize its interaction with that
engine. That means that DAO can outperform (and can do more than) ADO when
used with Jet databases. With non-Jet databases, DAO can only communicate
through ODBC, which itself is obsolete technology which is no longer being
supported by MS. DAO was never well-suited to the task of communicating via
ODBC
Quote:
> One web site stated 17% faster.
> As with all statistice, it depends on the circumstances.
> > 3. Nobody uses DAO for this anymore, so if you want to do it, you are
> going
> > to be on your own. The only resources will be the online help for DAO,
> > and
> > maybe some older books.
> 'Nobody' is overstated.
> Again this simply isn't true. DAO is still a viable technology for
> those who
> know and understand it.
:-) Yep, they're all chipping in to help you now, aren't they?
Quote:
> There are too many web site resources refering to DAO for me to be on
> my
> own.
:-) And none of them contains the answer to this question?
Has anyone else responded? You may have noticed that nobody in this
newsgroup is very shy about jumping in with their opinions when they feel
that someone has said something that they feel is clearly wrong. Have you
seen anyone jump in and defend the use of DAO with SQL Server? <cue the
sound of crickets chirping>
Quote:
> > Are you trying to avoid distributing the ADO library (MDAC))? Chances
> > are,
> > your users will already have it if they are running XP or Win2000. And
> > if
> > they aren't, it's really not that painful to distribute it along with
> > your
> > application.
> I want the fastest response. The least features.
> For a very simple database. With potentially a very large record
> count.
> For 300+ users to access.
DAO is single-threaded. ADO is multi-threaded. This fact alone should rule
out DAO as the technology to use with that many users.
DAO is still a great technology to use to communicate with Jet databases. If
I had to write a VB program today that used a Jet db for the backend, I
would not hesitate to click off that DAO reference and use it. But SQL
Server ... ?
I'm going to stop now.
Bob