問題描述:維修附單保存失敗,提示:將截斷字符串或二進制數據。
錯誤日誌:
問題原因:維修附單表中的客戶名稱長度與檔案信息客戶名稱長度不一致。
解決方案:
/*維修附單表修改cust_name字段爲100的長度 */
if exists(select * from syscolumns where id=(select id from dbo.sysobjects where name='t_repair_additional')
And name = 'cust_name' and length=50)
alter Table t_repair_additional alter column cust_name varchar(100)
GO