Solved

ODBC Call Failed

Posted on 2008-10-29
4
382 Views
Last Modified: 2012-05-05
I have an access app that connects to sql server via odbc, on 2 of my computers it works fine but the same code on 2 other computer give me greif I have attached 2 log files one from each computer, any ideas
SQLerr.txt
SQLworking.txt
0
Comment
Question by:jroulgnd
4 Comments
 
LVL 32

Accepted Solution

by:
bhess1 earned 500 total points
Comment Utility
The issue appears to be a difference in how the two access connections handle the QUOTED_IDENTIFIER state.  By default, SQL Server does not allow quotation marks to be used around SQL identifiers, as you have in the code:

SELECT "dbo"."PS10100"."dDOCSUFFIX" ,"dbo"."PS10100"."dAPPDATE" ,"dbo"."PS10100"."dISSUEDDATE" .....

You have three options:
1)  Replace the quotation marks with square brackets, e.g.:

SELECT [dbo].[PS10100].[dDOCSUFFIX] ,[dbo].[PS10100].[dAPPDATE] ,[dbo].[PS10100].[dISSUEDDATE] ....

2)  Set the QUOTED_IDENTIFIER parameter ON in your connection

3)  Set the QUOTED_IDENTIFIER option ON in your database using ALTER DATABASE, e.g.

ALTER DATABASE MyDB SET QUOTED_IDENTIFIER ON
0
 
LVL 44

Expert Comment

by:GRayL
Comment Utility
grief!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now