Scripter Class

The Scripter object is the overall, top-level object for managing scripting operations.

命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
Public Class Scripter
    Inherits DependencyWalker
public class Scripter : DependencyWalker
public ref class Scripter : public DependencyWalker
public class Scripter extends DependencyWalker
public class Scripter extends DependencyWalker

备注

The Scripter object allows programmatic access to scripting settings and is responsible for the following scripting functionality:

  • Finding dependencies.

  • Output script to memory and file.

  • Calling the instance objects to be scripted.

  • Managing context of a script operation, such as checking whether an object has already been scripted.

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

To get Scripter object properties, users can be a member of the public fixed server role.

To set Scripter object properties, users can be a member of the public fixed server role.

To run a script operation, users require permissions for the objects that are being scripted.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.DependencyWalker
    Microsoft.SqlServer.Management.Smo.Scripter

示例

How to: Script Out the Dependencies for a Database in Visual Basic .NET

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

Scripter Members
Microsoft.SqlServer.Management.Smo Namespace

其他资源

Scripting