I was trying to copy a table from a view in linked server with the following script:
SELECT
[order_no]
, [cust_code]
, [order_date]
, [order_status]
, [reference]
INTO dbo.Sales
FROM [BIT].[bit].[BI].[sales_order]
I got the error below:
Cannot get the data of the row from the OLE DB provider for linked server "BIT". Could not convert the data value due to reasons other than sign mismatch or overflow.
The script runs well if I remove the [reference] column. I have checked the data type and it is matched.
What can I do if I really want the reference column to be in the table? I have tried to copy only the reference column and it is failed as well with the same error message.