473,396 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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 ***
Jun 27 '08 #1
2 1128
Rich P wrote:
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
Jun 27 '08 #2
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:
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***
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
6
by: Greg | last post by:
I am working on a project that will have about 500,000 records in an XML document. This document will need to be queried with XPath, and records will need to be updated. I was thinking about...
1
by: Darryl Kerkeslager | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/sseoverview.asp SQL Server Express was developed with two distinct uses in mind. The first is as a server product,...
2
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current...
0
by: tony dong | last post by:
Hi there I use vs.net 2005 with standard sql 2005 under machine\sql2005 for instant when I create webpart, the code get from quickstart as follow: <%@ Page Language="C#" %> <%@ Register...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
27
by: John | last post by:
Hi When is vs2008 due out? Many Thanks Regards
0
by: silviu | last post by:
Hello I'm trying to install Microsoft SQL 2005 Server Express Edition but I'm getting the following error: SQL Server Setup unexpectedly failed... Then it says something about a log file. Here's...
10
by: Scott M. | last post by:
I've seen many posts and ready articles discussing how changing the membership & roles "provider" in VS .NET is easy, but have yet to see instructions on how to do it. If I already have SQL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.