I'm a report analyst and "newbie" to SQL Server. I have a view joining 2 tables with 100 columns - 50 are NVARCHAR(255) Null
default, all others are int
or float
.
Table can go up to 1 million rows and performance is horrible when extracting the data using SQL Server, takes an hour and runs out of memory. Most of my NVARCHAR(255)
are actually limited to 10 & 50 bytes in the originating table so 255 not needed. Excluding any SQL join issues, is there any performance benefit to reducing the column sizes of the 50 to their true limits?
I have seen varying data in the forum for this: some articles indicate I'd get some page size performance benefit by reducing this so data is "IN-ROW".
Conversely I've read where the NVARCHAR(255)
only extracts the actual data size of 10 or 50 therefre this cannot be causing performance issue.
Please help?
Thank you all!
Rebelle