PreacherUK
Technical User
Hi Guys
Below is an update query. It keeps returning the following error:
Server: Msg 8152, Level 16, State 9, Line 1
String or binary data would be truncated.
The statement has been terminated.
I would assume this refers to my destination fields being to narrow for the data I'm inserting. However just to try I increased the width of all the destination fields but still continued to receive the error.
Apologies for the poor formatting, the submit form here mangles the code.
UPDATE dbo.[tblMonthEndEstimate]
SET dbo.[tblMonthEndEstimate].[ClientType] = dbo.[tblLending Accounts].[TaxGroup],
dbo.[tblMonthEndEstimate].[ClientDom] = dbo.[tblLending Accounts].[ClientDomocile],
dbo.[tblMonthEndEstimate].[AccountName] = dbo.[tblLending Accounts].[Lending Account Name]
FROM dbo.[tblLending Accounts] RIGHT OUTER JOIN
dbo.[tblMonthEndEstimate] ON dbo.[tblLending Accounts].[acct-num] = dbo.[tblMonthEndEstimate].GSPAccountRef
Below is an update query. It keeps returning the following error:
Server: Msg 8152, Level 16, State 9, Line 1
String or binary data would be truncated.
The statement has been terminated.
I would assume this refers to my destination fields being to narrow for the data I'm inserting. However just to try I increased the width of all the destination fields but still continued to receive the error.
Apologies for the poor formatting, the submit form here mangles the code.
UPDATE dbo.[tblMonthEndEstimate]
SET dbo.[tblMonthEndEstimate].[ClientType] = dbo.[tblLending Accounts].[TaxGroup],
dbo.[tblMonthEndEstimate].[ClientDom] = dbo.[tblLending Accounts].[ClientDomocile],
dbo.[tblMonthEndEstimate].[AccountName] = dbo.[tblLending Accounts].[Lending Account Name]
FROM dbo.[tblLending Accounts] RIGHT OUTER JOIN
dbo.[tblMonthEndEstimate] ON dbo.[tblLending Accounts].[acct-num] = dbo.[tblMonthEndEstimate].GSPAccountRef