Connecting Tech Pros Worldwide Forums | Help | Site Map

Re: Loads of errors when querying MS SQL Server Express 2005 from Access 2007

Rich P
Guest
 
Posts: n/a
#1: Jun 27 '08
The problem is with the ODBC connection - in general. If you are going
to be using Access as a front end for a Sql Server backend - you will
have more consistent/better results using ADO instead of ODBC. ADO
requires using VBA. If you want to use the Access Query Tool you will
have to create a temp table in the Access mdb into which you would write
an ADO datapull from the server, and then you can query that. The
alternative is to write the queries directly in the ADO command object
and execute it. You will write the results of the ADO query into a temp
table in the Access mdb the same as above.

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Rick Brandt
Guest
 
Posts: n/a
#2: Jun 27 '08

re: Re: Loads of errors when querying MS SQL Server Express 2005 from Access 2007


Rich P wrote:
Quote:
The problem is with the ODBC connection - in general. If you are
going to be using Access as a front end for a Sql Server backend -
you will have more consistent/better results using ADO instead of
ODBC. ADO requires using VBA. If you want to use the Access Query
Tool you will have to create a temp table in the Access mdb into
which you would write an ADO datapull from the server, and then you
can query that. The alternative is to write the queries directly in
the ADO command object and execute it. You will write the results of
the ADO query into a temp table in the Access mdb the same as above.
>
Rich
>
*** Sent via Developersdex http://www.developersdex.com ***
I have no significant ODBC problems with any version of Access connecting to
any version of SQL Server.

Would you really create a front end that did all of its database operations
from code?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


lyle fairfield
Guest
 
Posts: n/a
#3: Jun 27 '08

re: Re: Loads of errors when querying MS SQL Server Express 2005 from Access 2007


I don't use ODBC connections by personal preference. But there is NO
problem with ODBC connections "in general". The cleverness of the ODBC
connection technology is quite amazing. The notion of using a temp
table in an MDB to interact with an SQL-Server table and populating
and maintaining that table through code is bizarre and naive.
The OP could, I suppose, correct his query; an alternative would be
just to use an ADP. There is little wrong with ADPs that is not also
wrong with ODBC connected MDBs.

On May 30, 3:38*pm, Rich P <rpng...@aol.comwrote:
Quote:
The problem is with the ODBC connection - in general. *If you are going
to be using Access as a front end for a Sql Server backend - you will
have more consistent/better results using ADO instead of ODBC. *ADO
requires using VBA. *If you want to use the Access Query Tool you will
have to create a temp table in the Access mdb into which you would write
an ADO datapull from the server, and then you can query that. *The
alternative is to write the queries directly in the ADO command object
and execute it. *You will write the results of the ADO query into a temp
table in the Access mdb the same as above. *
>
Rich
>
*** Sent via Developersdexhttp://www.developersdex.com***
Closed Thread


Similar Microsoft Access / VBA bytes