This project is read-only.

Could not read metadata, possibly due to insufficient access rights.

Feb 4, 2014 at 5:17 PM
Edited Feb 4, 2014 at 5:19 PM
Here's the error:
$ sqlserverdump --sql-engine --server-name=testserver --username=test_user --
 password=password --result-file='/c/Backup/Test.sql' DBNAME\

Unhandled Exception: Microsoft.SqlServer.Management.Smo.FailedOperationException
: Script failed for Database 'dbname'.  ---> Microsoft.SqlServer.Management.Smo.Sm
oException: Could not read metadata, possibly due to insufficient access rights.
What additional rights might I need granted to make this work?

thanks!
Feb 5, 2014 at 3:06 AM
The user didn't have the "View Any Definition" grant.

thanks!
Marked as answer by cowmix on 2/4/2014 at 7:06 PM