I have this issue that I cannot seem to figure out.
I have 2 UDTT, based off of this site https://www.aspsnippets.com/Articles/SqlBulkCopy--Bulk-Insert-records-and-Update-existing-rows-if-record-exists-using-C-and-VBNet.aspx
So I am passing to my stored procedure my data table.
In one of the UDTT's I am passing in over 300K of records and it updates and inserts very quickly no issues at all.
My other UDTT will work if I only pass in a limited amount of record, but if I try and pass in the full amount 90K count of records it fails with error:
Arithmetic overflow error converting expression to data type nvarchar.
The data for table-valued parameter "@tblAttorneys" doesn't conform to the table type of the parameter.
The statement has been terminated.
SO in my first UDTT it runs just fine with over 300K of records,
The second one runs only on a limited amount of records, and fails on 90K of records.
Can anyone help me out and tell me what is happening.
FYI, the UDTT I am having issues with both the UDTT and the physical table allow nulls in all fields, so even if I were to pass in nulls in my update and insert statements I still get the same error.