jedtheguru
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
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
%>
ASKER
Hi,
I have added this to indicate that this is line 13. this is not in my code
Cheers Geoff
I have added this to indicate that this is line 13. this is not in my code
Cheers Geoff
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for that, I was being dumb.
Yes index was a reserved word
Yes index was a reserved word
Line 12 should say:
Set rsIndex = rsIndex_cmd.Execute