简体   繁体   English

SQL Server 2012 上的 SQL Server 错误“80040e14”语法不正确

[英]SQL Server error '80040e14' incorrect syntax on SQL Server 2012

I am tasked with migrating a Classic ASP web application with SQL Server 2005 database from Windows Server 2003 (32bit) to Windows Server 2012 R2 with SQL Server 2012.我的任务是将带有 SQL Server 2005 数据库的经典 ASP Web 应用程序从 Windows Server 2003(32 位)迁移到带有 SQL Server 2012 的 Windows Server 2012 R2。

The code is very old and I don't want to do any code changes to make this workable in the above mentioned environment.代码很旧,我不想做任何代码更改以使其在上述环境中可行。

I have achieved almost all of the above but when testing the web application at a certain page where a report generation command is given the application breaks with error...我已经实现了上述几乎所有内容,但是当在某个页面上测试 Web 应用程序时,其中给出了报告生成命令,应用程序因错误而中断...

Microsoft OLE DB Provider for SQL Server error '80040e14' Microsoft OLE DB Provider for SQL Server 错误“80040e14”
Incorrect syntax near '*'. '*' 附近的语法不正确。
D:\\WEBSITES\\XXXXXXXXX\\REPORTS../common.asp, line 84 D:\\WEBSITES\\XXXXXXXXX\\REPORTS../common.asp,第 84 行

Following is the line 84 code:以下是第 84 行代码:

rs.Open sql, cn, adOpenStatic, adLockReadOnly, adCmdText

Strangely when I change the SQL Server from 2012 to SQL Server 2008 R2, the application works properly and generates the required report and displays in the browser.奇怪的是,当我将 SQL Server 从 2012 更改为 SQL Server 2008 R2 时,应用程序正常运行并生成所需的报告并显示在浏览器中。

I would also like to mention that this code/database combination works properly on Windows 2003(IIS6)/SQL Server 2005.我还要提一下,此代码/数据库组合在 Windows 2003(IIS6)/SQL Server 2005 上正常工作。

I have tried by changing the compatibility mode of SQL Server 2012 to SQL 2005 (90) but that has not helped.我曾尝试将 SQL Server 2012 的兼容模式更改为 SQL 2005 (90),但这并没有帮助。

Any help will be highly appreciated.任何帮助将不胜感激。

I'm late to the game, but I was receiving the same error number and was pulling my hair out to determine the cause.我迟到了,但我收到了相同的错误编号,我正在拔头发以确定原因。 It turned out to be one of my column names "Module" must be a keyword.原来是我的一个列名“模块”必须是关键字。 When I enclosed the Module name as so "[Module]", all worked fine.当我将模块名称包含为“[模块]”时,一切正常。 So you might check to determine if one of the words in your code is now considered a keyword.因此,您可以检查以确定代码中的某个词现在是否被视为关键字。 (I believe this might be the case as the newer version probably has more keywords.) (我相信这可能是这种情况,因为较新的版本可能有更多的关键字。)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用于SQL Server的Microsoft OLE DB提供程序错误“80040e14”'='附近的语法不正确 - Microsoft OLE DB Provider for SQL Server error '80040e14' Incorrect syntax near '=' SQL Server错误'80040e14'列名不明确 - SQL Server error '80040e14' Ambiguous column name SQL Server的Microsoft OLE DB提供程序错误'80040e14'无效的列名。 SQL查询 - Microsoft OLE DB Provider for SQL Server error '80040e14' Invalid column name . SQL query 尝试从 SQL Server 检索数据时出现 VBA ADODB 错误 (80040e14) - VBA ADODB error (80040e14) when trying to retrieve data from SQL Server SQL Server错误80040e14在结果集中使用经典ASP - SQL Server error 80040e14 Using Classic ASP in a Result Set 无法使用VBA连接到SQL Server(运行时错误(80040e14)) - Cannot connect to sql server with VBA (Run-time error (80040e14)) Microsoft OLE DB提供程序的SQL Server错误'80040e14'找不到存储的过程 - Microsoft OLE DB Provider for SQL Server error '80040e14' Could not find stored procedure Microsoft OLE DB提供程序的SQL Server错误'80040e14' - Microsoft OLE DB Provider for SQL Server error '80040e14' 尝试使用VBA从SQL Server检索数据时出现运行时错误'-2147217900(80040e14) - Run-time error '-2147217900 (80040e14) while trying to retrieving data from SQL Server using VBA 运行时错误“-2147217900 (80040e14)”:“1”附近的语法不正确 - Run-time error' -2147217900 (80040e14)': Incorrect syntax near '1'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM