网奇论坛网奇产品区网奇Eshop商城购物系统 商城5.0后台 管理商品评论 出错

1  /  1  页   1 跳转 查看:2228

商城5.0后台 管理商品评论 出错

商城5.0后台 管理商品评论 出错

text、ntext 和 image 数据类型不能用于 ORDER BY 子句中。 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: text、ntext 和 image 数据类型不能用于 ORDER BY 子句中。

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OleDbException (0x80040e14): text、ntext 和 image 数据类型不能用于 ORDER BY 子句中。]  System.Data.OleDb.OleDbDataReader.ProcessResults(Int32 hr) +63  System.Data.OleDb.OleDbDataReader.NextResult() +286  System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +269  System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +68  System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +5  System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36  XpShop.Utility.ReviewDB.GetProductReviewsTable()  wqshop.Admin.Review.BindReviews()  wqshop.Admin.Review.Page_Load(Object sender, EventArgs e)  System.Web.UI.Control.OnLoad(EventArgs e) +67  System.Web.UI.Control.LoadRecursive() +35  System.Web.UI.Page.ProcessRequestMain() +750


请问如何解决?谢谢!!
最后编辑allzg 最后编辑于 2007-08-02 00:41:17
互助--生存之道!欢迎访问:http://www.allzg.com/
 

回复:商城5.0后台 管理商品评论 出错

把review表里面的body字段的类型改成nvarchar
长度设长一些
未知的旋律又响起...
 

回复:商城5.0后台 管理商品评论 出错

谢谢,试试。
互助--生存之道!欢迎访问:http://www.allzg.com/
 

回复:商城5.0后台 管理商品评论 出错

就是请您打开db文件夹了的ShopData.mdb文件
注意这个是数据库文件
千万不要改动其他的东西
然后找到把review表
右击
点击 设计试图
然后找到body字段
然后把它的类型改成nvarchar
在  常规  里有个
字段大小
把这个后边的数字改大一些
未知的旋律又响起...
 

回复:商城5.0后台 管理商品评论 出错

数据类型里没有nvarchar 啊
互助--生存之道!欢迎访问:http://www.allzg.com/
 

回复:商城5.0后台 管理商品评论 出错

把body字段的类型改成nvarchar
未知的旋律又响起...
 

回复:商城5.0后台 管理商品评论 出错

按版主说的改了,问题还是没解决啊。
互助--生存之道!欢迎访问:http://www.allzg.com/
 

回复:商城5.0后台 管理商品评论 出错

改一下数据库review表里面的字段类型,把ntext改成nvarchar,长度改成3000
未知的旋律又响起...
 
1  /  1  页   1 跳转

版权所有 网奇论坛   Sitemap

Powered by Discuz!NT 2.1.202    Copyright © 2001-2009 Comsenz Inc.
Processed in 0.046875 second(s) , 3 queries.
返顶部