Hi Experts!
Due to limitation of Sqlserver Cannot create a row of size 10443 which is greater than the allowable maximum row size of 8060. I required your kind help to re-modify the script to minimize the rows to match the sqlserver limitation. Below link post worked for me like a charm . This happening because of my data so long.
The data results currently retrieving like below screenshot.
Help me to change to minimize the rows based on Itemname can we concatenate the ItemNames with Data header like ItemName1-Data1 , ItemName-Data2 to reduce the ItemName columns?
Are you saying that you're trying to save the output to another table and that's when you get the row-size error? Or is it erroring even when it tries to display to the grid? And are you trying to get it into a spreadsheet?
If the latter, perhaps you simply get the Date, ItemName, Data1, and the Data2 columns for each Date/Item name, drop THAT into a spreadsheet, and then use the PIVOT functionality in the spreadsheet (I don't know what the limits are there, though).
But when i try to run the new Script with Totals find error required your suggestion?
The excel results are based on your previous sent script which worked very fine and excel spreadsheet screenshot attached desire results,since January now might be the naming convention of ItemName through error..