Freigeben über


DatabaseRole.Script Method

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

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Überladungsliste

Name 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.

Siehe auch

Verweis

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

Andere Ressourcen

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