you can modify the following line to handle more naming possibilities on tables
SET @Statement = 'UPDATE STATISTICS ' + '[' + @tablename + ']' + ' WITH FULLSCAN'
MCITP, Database Administrator
A hodgepodge of Information Technology and Life
LinkedIn Profile
My Twitter