Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / November 2008

Tip: Looking for answers? Try searching our database.

Minimal permissions needed to generate a script of all of a databa

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eyal Shahar - 18 Nov 2008 09:34 GMT
Hi,
Could anyone tell me what are the Minimal permissions needed to generate a
script of all of a database's objects?  I want to have a daily job doing that
for me, collecting the scripts from some servers, running as a user with
minimal permissions.
Thanks.

Signature

Eyal Shahar

Uri Dimant - 18 Nov 2008 11:32 GMT
Eyal shalom
I believe  you should be either db owner or having access to the 'scripted'
database

> Hi,
> Could anyone tell me what are the Minimal permissions needed to generate a
[quoted text clipped - 3 lines]
> minimal permissions.
> Thanks.
Erland Sommarskog - 18 Nov 2008 22:02 GMT
> Could anyone tell me what are the Minimal permissions needed to generate
> a script of all of a database's objects?  I want to have a daily job
> doing that for me, collecting the scripts from some servers, running as
> a user with minimal permissions.

GRANT VIEW DEFINITION TO minimal_user

Signature

Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.