DatabaseRole.Script Method

Generates a Transact-SQL script that can be used to re-create the SQL Server database role.

备注

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

重载列表

名称 Description
DatabaseRole.Script ()
Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server database role.
DatabaseRole.Script (ScriptingOptions)
Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server database role as specified by the scripting options.

请参阅

参考

DatabaseRole Class
DatabaseRole Members
Microsoft.SqlServer.Management.Smo Namespace

其他资源

Scripting
Managing Users, Roles, and Logins
Database Roles
CREATE ROLE (Transact-SQL)