UserDefinedDataType Members
The UserDefinedDataType object represents a Microsoft SQL Server user-defined data type data type.
The following tables list the members exposed by the UserDefinedDataType type.
Public Constructors
Nom | Description | |
---|---|---|
UserDefinedDataType | Overloaded. Initializes a new instance of the UserDefinedDataType class. |
Haut de la page
Protected Fields
Nom | Description | |
---|---|---|
m_ExtendedProperties | (inherited from SqlSmoObject ) |
Haut de la page
Public Properties
(see also Protected Properties )
Nom | Description | |
---|---|---|
AllowIdentity | Gets the Boolean property value that specifies whether the user-defined data type is able to participate in a column defined with the identity property. | |
Collation | Gets the collation assigned to the user-defined data type. | |
Default | Gets or sets a Microsoft SQL Server default that is bound to the user-defined data type. | |
DefaultSchema | Gets or sets the Microsoft SQL Server default schema for the user-defined data type. | |
ExtendedProperties | Gets the extended properties of the user-defined data type. | |
ID | Gets an ID value that uniquely identifies the user-defined data type. | |
Length | Gets or sets the number of characters in the user-defined data type. | |
MaxLength | Gets the maximum number of characters accepted by the user-defined data type. | |
Name | Gets or sets the name of the object. (inherited from NamedSmoObject) | |
Nullable | Gets or sets the Boolean property value that specifies whether the user-defined data type accepts null values or not. | |
NumericPrecision | Gets or sets the maximum number of digits in a numeric value used in the definition of the user-defined data type. | |
NumericScale | Gets or sets the maximum number of digits to the right of the decimal point in a numeric value used in the definition of the user-defined data type. | |
Parent | Gets or sets the Database object that is the parent of the UserDefinedDataType object. | |
Properties | Gets a collection of Property objects that represent the object properties. (inherited from SqlSmoObject) | |
Rule | Gets or sets a Microsoft SQL Server rule that is bound to the user-defined data type. | |
RuleSchema | Gets or sets the Microsoft SQL Server rule schema for the user-defined data type. | |
Schema | Gets or sets the schema. (inherited from ScriptSchemaObjectBase) | |
State | Gets the state of the referenced object. (inherited from SmoObjectBase) | |
SystemType | Gets or sets the base system data type from which the user-defined data type is derived. | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (inherited from SqlSmoObject) | |
UserData | Gets or sets user-defined data associated with the referenced object. (inherited from SmoObjectBase) | |
VariableLength | Gets the Boolean property value that specifies whether the user-defined data type is variable in length. |
Haut de la page
Protected Properties
Nom | Description | |
---|---|---|
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (inherited from SqlSmoObject) | |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation or whether it is connected to the instance of Microsoft SQL Server directly or indirectly. (inherited from SqlSmoObject) | |
PresetProperties | Gets or sets the preset properties of the referenced object. (inherited from SqlSmoObject) | |
ScalarResult | Gets the scalar result for the referenced object. (inherited from SqlSmoObject) |
Haut de la page
Public Methods
(see also Protected Methods )
Nom | Description | |
---|---|---|
Alter | Updates any UserDefinedDataType object property changes on the instance of Microsoft SQL Server. | |
BindDefault | Overloaded. Binds a default to the user-defined data type. | |
BindRule | Overloaded. Binds a rule to the user-defined data type. | |
Create | Creates a user-defined data type type on the instance of Microsoft SQL Server as defined by the UserDefinedType object. | |
Deny | Overloaded. Denies the specified set of permissions for the specified grantees on the user-defined data type. | |
Drop | Removes the user-defined data type from the instance of Microsoft SQL Server. | |
EnumBoundColumns | Enumerates a list of columns to which the user-defined data type type is bound. | |
EnumObjectPermissions | Overloaded. Enumerates a list of object permissions for the user-defined data type. | |
Equals | Overloaded. (inherited from Object ) | |
GetHashCode | (inherited from Object ) | |
GetType | (inherited from Object ) | |
Grant | Overloaded. Grants the specified set of permissions to the specified grantees on the user-defined data type. | |
Initialize | Overloaded. Initializes the object and forces the properties be loaded. (inherited from SqlSmoObject) | |
ReferenceEquals | (inherited from Object ) | |
Refresh | Refreshes the script name. (inherited from ScriptNameObjectBase) | |
Rename | Renames the user defined data type. | |
Revoke | Overloaded. Revokes a previously granted set of permissions from a grantee or grantees on the user-defined data type. | |
Script | Overloaded. Generates a Transact-SQL script that can be used to re-create the user-defined data type. | |
ToString | Returns a String that represents the referenced object. (inherited from SqlSmoObject) | |
UnbindDefault | Overloaded. Unbinds a default from the user-defined data type. | |
UnbindRule | Overloaded. Unbinds a rule from the user-defined data type. |
Haut de la page
Protected Methods
Nom | Description | |
---|---|---|
AlterImpl | (inherited from SqlSmoObject ) | |
AlterImplFinish | (inherited from SqlSmoObject ) | |
AlterImplInit | (inherited from SqlSmoObject ) | |
AlterImplWorker | (inherited from SqlSmoObject ) | |
AppendCommaText | (inherited from ScriptNameObjectBase ) | |
AppendWithCommaText | (inherited from ScriptNameObjectBase ) | |
AppendWithOption | (inherited from ScriptNameObjectBase ) | |
BindDefaultImpl | (inherited from SqlSmoObject ) | |
BindRuleImpl | (inherited from SqlSmoObject ) | |
CheckCollation | (inherited from SqlSmoObject ) | |
CheckObjectState | Overloaded. Validates the state of the referenced object. (inherited from SqlSmoObject) | |
CheckObjectStateImpl | (inherited from SqlSmoObject ) | |
CheckTextCorectness | (inherited from ScriptNameObjectBase ) | |
CheckTextModeSupport | (inherited from ScriptNameObjectBase ) | |
CheckVersion80 | Checks the validity of the object on Microsoft SQL Server 2000. (inherited from SqlSmoObject) | |
CheckVersion80SP3 | Checks the validity of the object on Microsoft SQL Server 2000 SP3. (inherited from SqlSmoObject) | |
CheckVersion90 | Check the validity of the object on Microsoft SQL Server 2005. (inherited from SqlSmoObject) | |
CheckVersionBelow90 | (inherited from SqlSmoObject ) | |
CleanObject | Cleans the referenced object. (inherited from ScriptNameObjectBase) | |
CreateImpl | (inherited from SqlSmoObject ) | |
CreateImplFinish | (inherited from SqlSmoObject ) | |
CreateImplInit | (inherited from SqlSmoObject ) | |
DropImpl | (inherited from SqlSmoObject ) | |
DropImplWorker | (inherited from SqlSmoObject ) | |
Finalize | (inherited from Object ) | |
ForceTextModeOnTextBody | Enforces text mode on the text body. (inherited from ScriptNameObjectBase) | |
FormatSqlVariant | (inherited from SqlSmoObject ) | |
GenerateDataSpaceScript | (inherited from SqlSmoObject ) | |
GetBindDefaultScript | (inherited from SqlSmoObject ) | |
GetBindRuleScript | (inherited from SqlSmoObject ) | |
GetBoolParameter | Overloaded. (inherited from SqlSmoObject ) | |
GetBraketNameForText | (inherited from ScriptNameObjectBase ) | |
GetDateTimeParameter | (inherited from SqlSmoObject ) | |
GetDateTimeParameterAsInt | (inherited from SqlSmoObject ) | |
GetDBName | Gets the database name associated with the object. (inherited from SqlSmoObject) | |
GetEnumParameter | (inherited from SqlSmoObject ) | |
GetFragOptionString | (inherited from SqlSmoObject ) | |
GetGuidParameter | (inherited from SqlSmoObject ) | |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (inherited from ScriptNameObjectBase) | |
GetParameter | Overloaded. (inherited from SqlSmoObject ) | |
GetPropValue | (inherited from SqlSmoObject ) | |
GetPropValueOptional | (inherited from SqlSmoObject ) | |
GetPropValueOptionalAllowNull | (inherited from SqlSmoObject ) | |
GetRealValue | (inherited from SqlSmoObject ) | |
GetScriptIncludeExists | (inherited from ScriptNameObjectBase ) | |
GetScriptingOptionsForCreate | (inherited from SqlSmoObject ) | |
GetServerName | Gets the name of the instance of Microsoft SQL Server with which the object is associated. (inherited from SqlSmoObject) | |
GetSqlServerVersionName | Gets the version name of the instance of Microsoft SQL Server with which the object is associated. (inherited from SqlSmoObject) | |
GetStringParameter | Overloaded. (inherited from SqlSmoObject ) | |
GetTextBody | Overloaded. Returns the text body. (inherited from ScriptNameObjectBase) | |
GetTextForScript | (inherited from ScriptNameObjectBase ) | |
GetTextHeader | (inherited from ScriptNameObjectBase ) | |
GetTextMode | Determines whether the script name is using text mode. (inherited from ScriptNameObjectBase) | |
GetTextProperty | (inherited from ScriptNameObjectBase ) | |
GetTimeSpanParameterAsInt | (inherited from SqlSmoObject ) | |
GetUrnRecursive | Overloaded. (inherited from SqlSmoObject ) | |
ImplInitialize | (inherited from SqlSmoObject ) | |
IsCollectionDirty | (inherited from SqlSmoObject ) | |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (inherited from ScriptNameObjectBase) | |
IsObjectInitialized | Verifies whether the object has been initialized. (inherited from SqlSmoObject) | |
IsObjectInSpace | Verifies whether the object is isolated or connected to the instance of Microsoft SQL Server. (inherited from SqlSmoObject) | |
IsVersion80SP3 | (inherited from SqlSmoObject ) | |
MarkDropped | (inherited from SqlSmoObject ) | |
MarkForDropImpl | (inherited from SqlSmoObject ) | |
MemberwiseClone | (inherited from Object ) | |
PostAlter | (inherited from SqlSmoObject ) | |
PostCreate | (inherited from SqlSmoObject ) | |
PostDrop | (inherited from SqlSmoObject ) | |
RenameImpl | (inherited from NamedSmoObject ) | |
RenameImplWorker | (inherited from NamedSmoObject ) | |
ScriptAlter | (inherited from SqlSmoObject ) | |
ScriptAnsiQI | (inherited from ScriptNameObjectBase ) | |
ScriptChangeOwner | (inherited from NamedSmoObject ) | |
ScriptCreate | (inherited from SqlSmoObject ) | |
ScriptDdl | (inherited from SqlSmoObject ) | |
ScriptDrop | (inherited from SqlSmoObject ) | |
ScriptImpl | Overloaded. (inherited from SqlSmoObject ) | |
ScriptImplWorker | (inherited from SqlSmoObject ) | |
ScriptInformativeHeaders | (inherited from ScriptNameObjectBase ) | |
ScriptRename | (inherited from NamedSmoObject ) | |
SetCollectionTextMode | (inherited from ScriptNameObjectBase ) | |
SetParentImpl | (inherited from SqlSmoObject ) | |
SetTextBody | (inherited from ScriptNameObjectBase ) | |
SetTextHeader | (inherited from ScriptNameObjectBase ) | |
SetTextMode | (inherited from ScriptNameObjectBase ) | |
SwitchTextMode | (inherited from ScriptNameObjectBase ) | |
ThrowIfTextIsDirtyForAlter | (inherited from ScriptNameObjectBase ) | |
Trace | (inherited from SqlSmoObject ) | |
UnbindDefaultImpl | (inherited from SqlSmoObject ) | |
UnbindRuleImpl | (inherited from SqlSmoObject ) | |
UpdateCollectionState2 | (inherited from SqlSmoObject ) |
Haut de la page
Voir aussi
Référence
UserDefinedDataType Class
Microsoft.SqlServer.Management.Smo Namespace
Autres ressources
Types de données (Moteur de base de données)
CREATE TYPE (Transact-SQL)