At one time or another we work for an organization where access to the development server is limited to certain permissions on selected databases.
While it is not unusual that statistics are stale on a development server, it can be troublesome debugging performance problems when statistics are old.
I created this procedure to enable me to update statistics where I can. The code will crawl through the list of databases where you have access and also have "Alter" permissions, running Update Statistics on each table of each database. System database are skipped. Note that this uses the undocumented procedure "sp_MSforeachtable"
With data management folks understandably skittish about unauthorized access by even FTE staff, you had better get the manager's permission before running this, even if you have the technical rights.
GO