I have a new database and the users and db_datareader and db_datawriter Roles. When the developers try to script out table constraints they get a permission issue. Does anyone now what privilege I should GRANT to they can see and script out the default constraints on a table? We are using SQL Server 2005 Enterprise.
Is there a permission I can set on the schema so all new talbes will inherit the permission?
Possibly GRANT VIEW DEFINITION ... will help you.Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
Thanks, granting view definition to the public schema worked great. I had granted view definition to the table but the table constratins still weren't scriptable.
Note that granting to public might be overkill, might be better to grant only to those who need it.Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi