Link to home
Start Free TrialLog in
Avatar of jedtheguru
jedtheguruFlag for New Zealand

asked on

ASP Error - Microsoft OLE DB Provider for SQL Server error '80040e14'

Hi,

I get this error message on my ASP web page.  

Any ideas
Cheers Geoff

Microsoft OLE DB Provider for SQL Server error '80040e14'

Incorrect syntax near 'index'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax.

/index.asp, line 13




<!--#include file="Connections/dboMTT_cs.asp" -->
<%
Dim rsIndex
Dim rsIndex_cmd
Dim rsIndex_numRows
 
Set rsIndex_cmd = Server.CreateObject ("ADODB.Command")
rsIndex_cmd.ActiveConnection = MM_dboMTT_cs_STRING
rsIndex_cmd.CommandText = "SELECT heading, [date], contentmain, photocaption, photocredit, photolink, readmore FROM dbo.index" 
rsIndex_cmd.Prepared = true
 
Set rsIndex = rsIndex_cmd.Execute (line 13)
rsIndex_numRows = 0
%>

Open in new window

Avatar of geowrian
geowrian
Flag of United States of America image

Line 12 has the text "(Line 13)" in it...is that a copy/paste error or the source code?

Line 12 should say:
Set rsIndex = rsIndex_cmd.Execute
Avatar of jedtheguru

ASKER

Hi,

I have added this to indicate that this is line 13.  this is not in my code

Cheers Geoff
ASKER CERTIFIED SOLUTION
Avatar of geowrian
geowrian
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for that, I was being dumb.
Yes index was a reserved word