类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
异常详细信息: System.Data.SqlClient.SqlException: 由于存储过程改变了目标表的架构,INSERT EXEC 失败。
源错误:
行 59: public void RunProc(string procName, SqlParameter[] prams, out SqlDataReader dataReader) {
行 60: SqlCommand cmd = CreateCommand(procName, prams);
行 61: dataReader = cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection);
行 62: //return (int)cmd.Parameters["ReturnValue"].Value;
行 63: }
源文件: D:\Inetpub\wwwroot\UDS\Components\Database.cs 行: 61
堆栈跟踪:
[SqlException: 由于存储过程改变了目标表的架构,INSERT EXEC 失败。]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
UDS.Components.Database.RunProc(String procName, SqlParameter[] prams, SqlDataReader& dataReader) in D:\Inetpub\wwwroot\UDS\Components\Database.cs:61
UDS.Components.Desktop.GetMyDocument(String UserName, Int32 RightCode) in D:\Inetpub\wwwroot\UDS\Components\Desktop.cs:39
[Exception: 读取我的文档出错!]
UDS.Components.Desktop.GetMyDocument(String UserName, Int32 RightCode) in D:\Inetpub\wwwroot\UDS\Components\Desktop.cs:46
UDS.SubModule.UnitiveDocument.Desktop.Bangding() in D:\Inetpub\wwwroot\UDS\SubModule\UnitiveDocument\Desktop.aspx.cs:236
UDS.SubModule.UnitiveDocument.Desktop.Page_Load(Object sender, EventArgs e) in D:\Inetpub\wwwroot\UDS\SubModule\UnitiveDocument\Desktop.aspx.cs:40
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
请高手指点
用ADMIN
密码1
一切OK
TYPE 也OK
是不是本身的错误
没有权限的问题
就会出现此问题
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
网友回答:
是因为它另外一个数据表里面没有TEST1这个用户,具体我忘记是那个表了!你看一下里面的
存储过程就知道了,用户验证用的是两个数据表