Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
tedew
Starting Member
22 Posts |
Posted - 2005-11-14 : 07:29:03
|
| hello,When I create the table then I have got an error :Server: Msg 8152, Level 16, State 2, Line 2String or binary data would be truncated.The statement has been terminated.my source code :create table #temp_good(good_temp int,ProductionLine varchar(50),gap varchar(20),[date] datetime) insert #temp_good(good_temp,ProductionLine,gap,[date]) select sum(g.goodPART),e.ProductionLine,h.gap,b.[date] from tblProduct g , tblCycle c , tblLine d ,tblProductionLine e ,tblLineResult f ,tblGAPResult b,tblGAP h where g.IdCycleTime =c.IdCycleTime and c.IdProductLine=d.IdProductLine and d.IdProductionLine=e.IdProductionLine and g.idLineResult=f.IdLineResult and f.IdGAPRESULT=b.IDGAPRESULT and b.idGAp=h.idGAP and (datepart(wk,b.[date]) between '46' AND '46') AND (year(b.[date]) between '2005' AND '2005')group by b.[date],e.ProductionLine,h.gap I have no idea what is wrongbye |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-11-14 : 07:47:09
|
| Data length of one or more columns is less than that of dataIncrease column widthMadhivananFailing to plan is Planning to fail |
 |
|
|
tedew
Starting Member
22 Posts |
Posted - 2005-11-14 : 08:56:45
|
| hi,@madhivanan thanks for your help :)colummn GAP was less than databye, |
 |
|
|
|
|
|
|
|