Viewing 3 posts - 1 through 3 (of 3 total)
Please find attached the modified code
April 2, 2020 at 12:34 pm
#3739955
The initial problem was caused by the following section in the code:
+ char(10)+char(13) +','
+',' + '
Increasing @query and @ColumnHeaders from nvarchar(4000) to nvarchar(max) resolved the remaining issues.
April 2, 2020 at 12:33 pm
#3739952
From what understand about your problem your only objective is to script the procedure with the output to be printed to text.
If you don't need to specifically have the output...
April 26, 2013 at 3:39 am
#1610266