• You should verfiy if you use returnAverages in your scripts. It may be a stored procedure you forgot to script. Look for the procedure on the original server and create it also on the new server ... I did not find it on my servers, so it is not a standard procedure. When reading "the missing object 'returnAverages'", it could also be something else ( a function, table,view ... ) ...