Hi @Jinal Contractor ,
The reason for this error is: the length of the column definition in the table is smaller than the length of the actual field to be inserted.To solve this problem, you need to find a column whose length is less than the content to be inserted, and modify the length.Guoxiong’s example vividly illustrates the cause of the error.
The following code can find the length of each column, and then you can compare the lengths of the columns in the two tables to find the columns in tblIC that are smaller than the columns in HQ. After modifying these short-length columns in the tblIC table, you can successfully insert data:
SELECT Len('F036'), Len(ITMCLSS), Len(ITEM), Len(CUSTPART), Len(PRICE), Len(PDATE), Len('Jin'), GETDATE(), Len(EXPIRESON), Len('Jin'), GETDATE(), 0
FROM HQ
If you have any question, please feel free to let me know.
If the response is helpful, please click "Accept Answer" and upvote it.
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.