标题:C# 添加字段出错,堆栈信息如下
取消只看楼主
艾叶
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-5-5
 问题点数:0 回复次数:0 
C# 添加字段出错,堆栈信息如下
堆栈跟踪:


[SqlException (0x80131904): '计算机学院' 附近有语法错误。
字符串 ')' 后的引号不完整。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
   System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) +228
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +326
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
   SqlHelper.RunSql(String SqlStr) in d:\123\PingJiaWeb\App_Code\SqlHelper.cs:95
   Admin_AddStudent.LinkButton1_Click(Object sender, EventArgs e) in d:\123\PingJiaWeb\Admin\AddStudent.aspx.cs:50
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +113
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +9
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

 
搜索更多相关主题的帖子: 计算机学院 字符串 信息 
2014-05-05 12:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-431023-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.721594 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved