When exporting data from SQL Server to Excel, when a field size is large e.g. nvarchar(4000) or nvarchar(max) might cause the error below:
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=c:\DataExport.xls;', 'SELECT * FROM [Sheet1$]')
SELECT * FROM DataExport_Table
Msg 8152, Level 16, State 4, Line 1
String or binary data would be truncated.
The statement has been terminated.
When exporting data from SQL Server to Excelthis is a true ?? - Yogesh Sharma