If outputting messages with PRINT or RAISERROR is there a buffer size limit to the window and if so can it be changed.
I’ve looked everywhere and but can’t see the wood for the trees!
Calification: I’m intested in the amount of data the output window can display before you start removing the earlier displayed messages. It could be that it just keeps going but there must be some limit, no?
I don’t think there is a limit other than any limit imposed by the available memory in the machine. If there is one it is high enough to cater for most potential use cases. Take this SQL as an example:
This print 80000 rows of ~7900 characters. In my test each row is shown in the messages output window (takes a while to run though). So if there is a limit it is quite high.
EDIT
It is also worth mentioning that both PRINT and RAISERROR will truncate if the output string is too long. For example