Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2005, 10:22 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 0x80040e14 error

I'm trying to query a linked server, but I keep getting an error back every time with the number in the subject. Here's the full error message:

(1) [Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned message:[MERANT][ODBC PROGRESS driver][PROGRESS]Syntax error (7587)]
(2) [Microsoft][ODBC SQL Server Driver][SQL Server][OLE DB error trace[OLE/DB Provider 'MSDASQL' CommandPrepare::Prepare returned 0x80040e14]

And here's the line that's causing it:

SELECT \"Sales-Agent-Name\" \"saname\" FROM OPENQUERY(SANJMIS,'SELECT \"Sales-Agent-Name\" FROM [PUB.sales-agent] WHERE\"Sales-agent-id\" = (SELECT \"Sales-Rep-ID\" FROM PUB.Job WHERE \"Job-ID\"= ''" + Field( 'Job Number' ) + "'') ')

The problem (I think) is coming from [PUB.sales-agent]. It gave me a similar error without the []'s, and after looking around the net I came across several sites that said 'put []'s around it'. Still doesn't work. Without the []'s it only returns the second error.

Any thoughts?

*edit* - should have put this in the SQL Server section...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error 0x80040E14 myself Classic ASP Basics 2 May 30th, 2006 11:37 AM
Microsoft JET Database Engine (0x80040E14) tks_muthu Classic ASP Databases 5 January 1st, 2005 10:17 PM
Microsoft JET Database Engine (0x80040E14) HaverkPJ Classic ASP Databases 2 November 16th, 2004 11:25 PM
Micr OLE DB Provider for ODBC Drivers (0x80040E14) treasacrowe Classic ASP Databases 4 July 13th, 2004 09:09 AM
Microsoft JET Database Engine (0x80040E14) Syntax Greywacke Classic ASP Databases 1 February 14th, 2004 01:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.