"Could not read metadata, possibly due to insufficient access rights. (Microsoft.SqlServer.Smo)"
Try this:
- From SSMS
- Right click on the server name and click properties
- Click on the Permissions tab
- Click the user name
- On the Explicit Permissions almost at the bottom there is "View Any Definition" grant that.
http://www.sqlservercentral.com/Forums/Topic355850-149-1.aspx