ServerDdlTrigger Constructor (Server, String)
Initializes a new instance of the ServerDdlTrigger class on the specified instance of Microsoft SQL Server and with the specified name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
server As Server, _
name As String _
)
public ServerDdlTrigger (
Server server,
string name
)
public:
ServerDdlTrigger (
Server^ server,
String^ name
)
public ServerDdlTrigger (
Server server,
String name
)
public function ServerDdlTrigger (
server : Server,
name : String
)
Parameters
- server
A Server object value that specifies the instance of SQL Server on which the database data definition language (DDL) trigger is created.
- name
A String value that specifies the name of the database DDL trigger.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Create, Alter, and Remove a Trigger in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
ServerDdlTrigger Class
ServerDdlTrigger Members
Microsoft.SqlServer.Management.Smo Namespace
Other Resources
Creating, Altering, and Removing Triggers
DDL Triggers
CREATE TRIGGER (Transact-SQL)