- 未處理 System.Data.SqlClient.SqlException
- Message="將截斷字符串或二進制數據。/r/n語句已終止。"
- Source=".Net SqlClient Data Provider"
- ErrorCode=-2146232060
- Class=16
- LineNumber=1
- Number=8152
- Procedure=""
- Server="(local)"
- State=9
- StackTrace:
- 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
- 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
- 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
- 在 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
- 在 System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
- 在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
- 在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
- 在 CRM.BaseClass.BaseOperate.getcom(String M_str_sqlstr) 位置 D:/My Documents/教材資源/c#/mingrisoft/企業客戶資源管理系統/CRM/CRM/BaseClass/BaseOperate.cs:行號 34
- 在 CRM.PInfoManage.frmEInfoManage.tsbtnSave_Click(Object sender, EventArgs e) 位置 D:/My Documents/教材資源/c#/mingrisoft/企業客戶資源管理系統/CRM/CRM/PInfoManage/frmEInfoManage.cs:行號 59
- 在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
- 在 System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
- 在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
- 在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
- 在 System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
- 在 System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
- 在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
- 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
- 在 System.Windows.Forms.Control.WndProc(Message& m)
- 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
- 在 System.Windows.Forms.ToolStrip.WndProc(Message& m)
- 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
- 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
- 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
- 在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
- 在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
- 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
- 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
- 在 System.Windows.Forms.Application.Run(Form mainForm)
- 在 CRM.Program.Main() 位置 D:/My Documents/教材資源/c#/mingrisoft/企業客戶資源管理系統/CRM/CRM/Program.cs:行號 17
- 在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
- 在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
- 在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
- 在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
- 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
- 在 System.Threading.ThreadHelper.ThreadStart()
- ======================
- > CRM.exe!CRM.BaseClass.BaseOperate.getcom(string M_str_sqlstr = "update tb_Employee set EName='周*朋',ESex='男',EBirthday='1985年12月22日 星期日',EWDate='2006年12月22日 星期五',EDiploma='本科',EDepartment='.NET技術部門',EPosition='普通員工',EType='普通員工' where EID='YG1000001'") 行23 C#
-------------------------
只要把數據庫的字符類型的容量設大點就可以了。