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 June 1st, 2006, 11:16 AM
Registered User
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default ODBC Drivers error '80040e14'

I have read several posts re this issue and still cannot figure out my problem. (Code works fine for almost all Agents except one.) Any help would be appreciated.


Receiving the following error (code below):

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'L'.
/acs.asp, line 175


SQL CODE:
function RetrieveBranch(dcnDB)
    dim strSQL
    dim rsBranch
    if request.form("RegionList") = "USA" then
        strSQL = "select distinct IATA, Agent, City, State, Zip from Agent where Agent in ('" & request.form("AgentList") & "') order by IATA "
    else
        strSQL = "select distinct IATA, Agent, City, State, Zip from Agent where Agent in ('" & request.form("AgentList") & "') and Region in ('" & request.form("RegionList") &"') order by IATA "
    end if
    set rsBranch = dcnDB.Execute(strSQL) (THIS IS LINE 175)
    set RetrieveBranch = rsBranch
end function

Thanks.

 
Old June 1st, 2006, 01:02 PM
Registered User
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

More info...

After inserting
Response.Write strSQL
Response.End

Output below:

select distinct IATA, Agent, City, State, Zip from Agent where Agent in ('EXPEDITORS INT'L. OF WASHINGTON INC.') order by IATA

I have checked over the records for this Agent and all looks normal.

 
Old June 1st, 2006, 01:06 PM
Registered User
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem solved.

thx






Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Drivers error '8007000e' rtr1900 Classic ASP Databases 15 October 25th, 2006 04:03 AM
ODBC Drivers error '80004005' sanju2006 Classic ASP Professional 3 August 31st, 2006 09:21 AM
ODBC Drivers error '80004005' caudy Classic ASP Databases 2 August 20th, 2004 02:20 AM
ODBC Drivers error '80040e14' Need help RBC827 Classic ASP Databases 6 February 27th, 2004 04:57 AM
OLE DB Provider for ODBC Drivers error '80004005' Routhg Access ASP 2 June 11th, 2003 07:02 AM





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