probabely the field length is smaller than thevalue you pass to database,you can increase the size of fieldbut if this solution does work ,describe yourproblem more.