Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP 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 April 11th, 2006, 07:21 AM
JA1 JA1 is offline
Registered User
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server error '80040e14'

I'm having a problem with an ASP, VBscript, SQL Server combination

Set rsRecs = Server.CreateObject("ADODB.Recordset")
rsRecs.Open strSQL,adoCon,adOpenStatic,adLockReadOnly,adCmdText
strSQL contains:-

Error Returned
quote:Microsoft OLE DB Provider for SQL Server error '80040e14'

Line 1: Incorrect syntax near 'Y'.
Procedure OS_ClientSearch has EXEC permission for user
CREATE PROC dbo.OS_ClientSearch 
                @EXACT_FLAG varchar(1),
                @SURNAME VARCHAR (254),
                @FORENAMES VARCHAR (254),
                @DOB VARCHAR (254),
                @COUNTRY VARCHAR(254)

I've tested the procedure using:-

EXEC dbo.OS_ClientSearch 'Y','COLLIN','GENEVIEVE','20/10/1976','LUXEMBOURG'
and the procedure works fine.

What is going on - as far as I can see, the ASP code should work!!


Old April 11th, 2006, 09:26 AM
JA1 JA1 is offline
Registered User
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

OK, couldn't see the wood for the trees...

The particular tree in question was adCmdText should have been adCmdStoredProc

Ah, well...

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle error '80040e14' Nitin_sharma Oracle 2 November 5th, 2008 06:49 AM
MY SQL to ACCESS 80040e14' lancom Classic ASP Databases 1 December 18th, 2006 08:56 AM
Oracle error '80040e14' Nitin_sharma Oracle ASP 0 January 25th, 2005 08:11 AM
HELP!!! Jet SQL: Error (80040e14) Coldendus Access VBA 3 December 14th, 2004 08:12 PM
error '80040e14'... only for some not all!?? dancrocker Classic ASP Databases 18 June 10th, 2004 11:15 AM

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