My issue is similar to this one but and I have tried what has been suggested but I still get the error. I have set the target column from VARCHAR(5120)
to TEXT
(tried LONGTEXT
too) but the issue still keeps appearing of those exact columns. I even went into the schema and checked and it says they are TEXT
. Am I getting this issue because the source column is VARCHAR(5120)
? If so, is there any way to solve this. I simply want to use this migrated database as a local development copy with proper data.
The error message is as following:
ERROR:
gruppergister
.Endring
:SQLExecDirect(SELECT [id], CAST([endretFra] as NVARCHAR(8000)) as [endretFra], CAST([endretTil] as NVARCHAR(8000)) as [endretTil], CAST([endringskilde] as NVARCHAR(255)) as [endringskilde], CAST([sistEndretBruker] as NVARCHAR(255)) as [sistEndretBruker], CAST([sistEndretFulltNavn] as NVARCHAR(255)) as [sistEndretFulltNavn], [sistEndretTidspunkt], CAST([felt] as NVARCHAR(255)) as [felt], CAST([handling] as NVARCHAR(255)) as [handling], [aliste_id], [utvalg_id] FROM [gruppergister].[dbo].[Endring]):
42000:1131:[Microsoft][ODBC SQL Server Driver][SQL Server]
The size (8000) given to the convert specification 'nvarchar' exceeds the maximum allowed for any data type (4000).
It occurs during the "Bulk Data Transfer"
I simply want to use this migrated database as a local development copy
" If that's the case, look into Sql Server Express Edition (free) or Developer Edition (not free, but more features and only like $50). – Joel Coehoorn Mar 20 at 20:41