Solved

ODBC Call Failed

Posted on 2008-10-29
4
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 32

Accepted Solution

by:
bhess1 earned 500 total points
ID: 22838434
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
ID: 22956949
grief!
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

751 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