14,494 questions
If the target column is nvarchar(50), then do something like:
INSERT targettbl(..., col, ...)
SELECT ..., convert(nvarchar(50), sourcecol), ....
FROM ...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there,
my insertion script are sometimes interrupted by length violation issue. how can the overlength text got cut automatically by the SQL Server. We can afford the abruption.
thanks,
Sheldon
If the target column is nvarchar(50), then do something like:
INSERT targettbl(..., col, ...)
SELECT ..., convert(nvarchar(50), sourcecol), ....
FROM ...