UserDefinedTableType Class
The UserDefinedTableType object represents a SQL Server user-defined table type data type.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
Public NotInheritable Class UserDefinedTableType _
Inherits TableViewTableTypeBase _
Implements ICreatable, IAlterable, IRenamable, IDroppable, _
IScriptable, IExtendedProperties, IObjectPermission
'Usage
Dim instance As UserDefinedTableType
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
public sealed class UserDefinedTableType : TableViewTableTypeBase,
ICreatable, IAlterable, IRenamable, IDroppable, IScriptable,
IExtendedProperties, IObjectPermission
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
public ref class UserDefinedTableType sealed : public TableViewTableTypeBase,
ICreatable, IAlterable, IRenamable, IDroppable, IScriptable,
IExtendedProperties, IObjectPermission
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
type UserDefinedTableType =
class
inherit TableViewTableTypeBase
interface ICreatable
interface IAlterable
interface IRenamable
interface IDroppable
interface IScriptable
interface IExtendedProperties
interface IObjectPermission
end
public final class UserDefinedTableType extends TableViewTableTypeBase implements ICreatable, IAlterable, IRenamable, IDroppable, IScriptable, IExtendedProperties, IObjectPermission
Remarks
To get UserDefinedTableType object permissions, users can be a member of the public fixed server role.
To set UserDefinedTableType object permissions, users must have CREATE TYPE permissions in the parent database and ALTER permissions on specified schema. If an assembly is specified, users must either own the assembly or have REFERENCES permissions on it.
To create a user-defined table type data type, users must have CREATE TYPE permissions in the parent database and ALTER permissions on specified schema
To drop a user-defined table type data type, users must have CONTROL permissions on the type and ALTER permissions on the specified schema.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.SmoObjectBase
Microsoft.SqlServer.Management.Smo.SqlSmoObject
Microsoft.SqlServer.Management.Smo.NamedSmoObject
Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo.ScriptSchemaObjectBase
Microsoft.SqlServer.Management.Smo.TableViewTableTypeBase
Microsoft.SqlServer.Management.Smo.UserDefinedTableType
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also