>>BTW, the code looks very much like the code I once posted...
>
>It could be. I know it is not my naming convention. So, it came from elsewhere. I remember having created threads about it a while ago. So, if it came from you, thanks again.
>
>>I ran it on my system and so far I didn't get any errors. Could it be you have very long table name or something along these lines?
>
>The error will happen only with SQL Server 2005 with the addition of the two referenced files that need to be installed. SQL Server 2008 has this built in and it doesn't generate any error.
Here is the thread
Re: Getting it all from Statistics Thread #
1302337 Message #
1451107 (this is not that message, but I posted it recently when I came across this interesting question at MSDN and immediately recalled your thread).
My message with that code should be in this thread ( Message #
1302628)
If it's not broken, fix it until it is.
My Blog