Класс View
The View object represents a SQL Server view.
Иерархия наследования
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. . :: . .TableViewBase
Microsoft.SqlServer.Management.Smo..::..View
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class View _
Inherits TableViewBase _
Implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, _
IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, _
IViewOptions, IDmfFacet
'Применение
Dim instance As View
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class View : TableViewBase, ISfcSupportsDesignMode,
IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable,
IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class View sealed : public TableViewBase,
ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable,
IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions,
IDmfFacet
[<SealedAttribute>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type View =
class
inherit TableViewBase
interface ISfcSupportsDesignMode
interface IColumnPermission
interface IObjectPermission
interface ICreatable
interface IAlterable
interface IDroppable
interface IRenamable
interface IExtendedProperties
interface ITextObject
interface IViewOptions
interface IDmfFacet
end
public final class View extends TableViewBase implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
Тип View обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
![]() |
View() () () () | Initializes a new instance of the View object. |
![]() |
View(Database, String) | Initializes a new instance of the View object on the specified database and with the specified name. |
![]() |
View(Database, String, String) | Initializes a new instance of the View object on the specified database and with the specified name and schema. |
В начало
Свойства
Имя | Описание | |
---|---|---|
![]() |
AnsiNullsStatus | Gets the Boolean property value that specifies whether ISO NULL handling is enabled on the view. |
![]() |
Columns | Возвращает коллекцию столбцов. (Производный от TableViewTableTypeBase.) |
![]() |
CreateDate | Gets the time and date when the view was created. |
![]() |
DateLastModified | Gets the time and date when the view was last modified. |
![]() |
Events | Gets the events associated with the view. |
![]() |
ExecuteForScalar | Возвращает или задает значение свойства типа Boolean, указывающее, настроен ли объект для выполнения в скалярном режиме. (Производный от SqlSmoObject.) |
![]() |
ExtendedProperties | Возвращает коллекцию расширенных свойств. (Производный от TableViewTableTypeBase.) |
![]() |
FullTextIndex | Gets the full text index on the table or view. (Производный от TableViewBase.) |
![]() |
HasAfterTrigger | Gets the Boolean property value that specifies whether the view has any after triggers. |
![]() |
HasColumnSpecification | Gets the Boolean property that specifies whether the view has a column specification. |
![]() |
HasDeleteTrigger | Gets the Boolean property value that specifies whether the view has a delete trigger. |
![]() |
HasIndex | Gets the Boolean property value that specifies whether the view has at least one index. |
![]() |
HasInsertTrigger | Gets the Boolean property value that specifies whether the view has an insert trigger. |
![]() |
HasInsteadOfTrigger | Gets the Boolean property value that specifies whether the view has any instead of triggers. |
![]() |
HasUpdateTrigger | Gets the Boolean property value that specifies whether the view has at least one update trigger. |
![]() |
ID | Gets the ID value that uniquely identifies the view. |
![]() |
Indexes | Gets the IndexCollection object. (Переопределяет TableViewTableTypeBase. . :: . .Indexes.) |
![]() |
IsEncrypted | Gets or sets the Boolean property that specifies whether the view is encrypted. |
![]() |
IsIndexable | Gets the Boolean property that specifies whether it is possible to place an index on the view. |
![]() |
IsSchemaBound | Gets or sets the Boolean property that specifies whether a schema is bound to the view. |
![]() |
IsSchemaOwned | Gets a Boolean value that indicates whether the View object is owned by a schema. |
![]() |
IsSystemObject | Gets the Boolean property value that specifies whether the view is a system object. |
![]() |
IsTouched | Возвращает значение свойства типа Boolean, указывающее, были ли свойства объекта обновлены, но еще не сохранены на сервере. (Производный от SqlSmoObject.) |
![]() |
Name | Возвращает или задает значение типа String, указывающее имя табличного типа представления. (Производный от TableViewTableTypeBase.) |
![]() |
ObjectInSpace | Возвращает значение свойства типа Boolean, указывающее, существует ли объект изолированно или же он явно или неявно подключен к экземпляру SQL Server. (Производный от SqlSmoObject.) |
![]() |
Owner | Gets the name of the owner of the UserDefinedType object. |
![]() |
Parent | Gets the Database object that is the parent of the View object. |
![]() |
Properties | Возвращает коллекцию объектов Property, представляющих свойства объекта. (Производный от SqlSmoObject.) |
![]() |
QuotedIdentifierStatus | Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules. |
![]() |
ReturnsViewMetadata | Gets or sets a Boolean property value that specifies whether the view returns metadata. |
![]() |
ScalarResult | Возвращает скалярный результат для объекта, на который ссылаются. (Производный от SqlSmoObject.) |
![]() |
Schema | Возвращает или задает значение типа String, указывающее имя схемы, которая содержит табличный тип представления. (Производный от TableViewTableTypeBase.) |
![]() |
State | Gets the state of the referenced object. (Производный от SmoObjectBase.) |
![]() |
Statistics | Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view. (Производный от TableViewBase.) |
![]() |
TextBody | Gets or sets the Transact-SQL string that defines the view. |
![]() |
TextHeader | Gets or sets the header part of the Transact-SQL string that defines the view. |
![]() |
TextMode | Gets or sets the Boolean property that specifies whether the text header is editable as text. |
![]() |
Triggers | Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view. (Производный от TableViewBase.) |
![]() |
Urn | Возвращает значение адреса универсального имени ресурса (URN), которое однозначно идентифицирует объект. (Производный от SqlSmoObject.) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.) |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
AddDatabaseContext(StringCollection) | Добавляет контекст базы данных в коллекцию запросов, определенную параметром queries. (Производный от SqlSmoObject.) |
![]() |
AddDatabaseContext(StringCollection, ScriptingOptions) | Добавляет контекст базы данных в коллекцию запросов, определяемую параметром queries при использовании указанных параметров создания скриптов. (Производный от SqlSmoObject.) |
![]() |
Alter | Updates any View object property changes on the instance of Microsoft SQL Server. |
![]() |
AlterImpl | Активирует событие изменения объекта. (Производный от SqlSmoObject.) |
![]() |
AlterImplFinish | Метод, вызываемый при завершении события изменения объекта. (Производный от SqlSmoObject.) |
![]() |
AlterImplInit | Метод, вызываемый при инициализации события изменения объекта. (Производный от SqlSmoObject.) |
![]() |
AlterImplWorker | Вызывает методы изменения. (Производный от SqlSmoObject.) |
![]() |
AppendCommaText | Appends text, optionally separated by a comma. (Производный от ScriptNameObjectBase.) |
![]() |
AppendWithCommaText | Appends text, optionally separated by a comma. (Производный от ScriptNameObjectBase.) |
![]() |
AppendWithOption | Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Производный от ScriptNameObjectBase.) |
![]() |
AutoGenerateName | Generates a name based on the object Guid. (Производный от ScriptNameObjectBase.) |
![]() |
BindDefaultImpl | Связывает элементы по умолчанию, определенные параметрами. (Производный от SqlSmoObject.) |
![]() |
BindRuleImpl | Связывает схему правил с правилом и столбцами, определенными параметрами. (Производный от SqlSmoObject.) |
![]() |
ChangeSchema | Changes the schema for the view. |
![]() |
CheckCollation | Проверяет порядок параметров создания скриптов в методе сортировки, определенном параметром collationName. (Производный от SqlSmoObject.) |
![]() |
CheckObjectDirty | Checks whether object has been modified and not persisted. (Производный от ScriptNameObjectBase.) |
![]() |
CheckObjectState() () () () | Проверяет состояние связанного объекта. (Производный от SqlSmoObject.) |
![]() |
CheckObjectState(Boolean) | Проверяет состояние связанного объекта с возможностью указать исключение, возникающее, если объект еще не создан. (Производный от SqlSmoObject.) |
![]() |
CheckObjectStateImpl | Проверяет состояние объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
CheckTextCorectness | Checks text for correctness against the parameters. (Производный от ScriptNameObjectBase.) |
![]() |
CheckTextModeSupport | Checks mode of support. (Производный от ScriptNameObjectBase.) |
![]() |
CheckVersion100 | Проверяет, является ли SQL Server версией SQL Server 2008. (Производный от SqlSmoObject.) |
![]() |
CheckVersion80 | Проверяет правильность объекта в SQL Server 2000. (Производный от SqlSmoObject.) |
![]() |
CheckVersion80SP3 | Проверяет правильность объекта в SQL Server 2000 с пакетом обновления 3 (SP3). (Производный от SqlSmoObject.) |
![]() |
CheckVersion90 | Проверяет правильность объекта в SQL Server 2005. (Производный от SqlSmoObject.) |
![]() |
CheckVersionBelow90 | Проверяет, является ли SQL Server более ранней версией, чем SQL Server 2005. (Производный от SqlSmoObject.) |
![]() |
CleanObject | Cleans the referenced object. (Производный от ScriptNameObjectBase.) |
![]() |
Create | Creates a view on the instance of SQL Server as defined by the View object. |
![]() |
CreateImpl | Создает объект с параметрами создания скриптов. (Производный от SqlSmoObject.) |
![]() |
CreateImplFinish | Метод, вызываемый при завершении события создания. (Производный от SqlSmoObject.) |
![]() |
CreateImplInit | Метод, вызываемый при инициализации события создания. (Производный от SqlSmoObject.) |
![]() |
Deny(ObjectPermissionSet, String) | Denies the specified set of permissions for the specified grantee on the view. |
![]() |
Deny(ObjectPermissionSet, array<String> [] () [] []) | Denies the specified set of permissions for the specified grantees on the view. |
![]() |
Deny(ObjectPermissionSet, String, Boolean) | Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the view. |
![]() |
Deny(ObjectPermissionSet, String, array<String> [] () [] []) | Denies the specified set of permissions to the grantee on the specified columns on the view. |
![]() |
Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) | Denies the specified permission for the specified grantees on the view. |
![]() |
Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Denies the specified set of permissions for the grantees on the specified columns on the view. |
![]() |
Deny(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) | Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the specified columns on the view. |
![]() |
Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) | Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the specified columns on the view. |
![]() |
Discover | Находит список типа Object. (Производный от SqlSmoObject.) |
![]() |
Drop | Removes the view from the database. |
![]() |
DropImpl | Удаляет объект SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
DropImplWorker | Вызывает методы удаления. (Производный от SqlSmoObject.) |
![]() |
EnumColumnPermissions() () () () | Enumerates a list of column permissions for the view. |
![]() |
EnumColumnPermissions(String) | Enumerates a list of column permissions for a specified grantee on the view. |
![]() |
EnumColumnPermissions(ObjectPermissionSet) | Enumerates a list of column permissions for a specified permission on the view. |
![]() |
EnumColumnPermissions(String, ObjectPermissionSet) | Enumerates a list of column permissions for a specified grantee and a specified permission on the view. |
![]() |
EnumColumns | Enumerates a list of columns defined in the view. |
![]() |
EnumFragmentation() () () () | Enumerates information about fragments of data that are stored in a table or view. (Производный от TableViewBase.) |
![]() |
EnumFragmentation(FragmentationOption) | Enumerates information about fragments of data that are stored in a table or view with the option to specify how detailed the results should be. (Производный от TableViewBase.) |
![]() |
EnumFragmentation(FragmentationOption, Int32) | Enumerates information about fragments of data that are stored in a table or view on a specified partition, and with the option to specify how detailed the results should be. (Производный от TableViewBase.) |
![]() |
EnumObjectPermissions() () () () | Enumerates a list of object permissions for the view. |
![]() |
EnumObjectPermissions(String) | Enumerates a list of object permissions for a specified grantee on the view. |
![]() |
EnumObjectPermissions(ObjectPermissionSet) | Enumerates a list of object permissions for a specified permission on the view. |
![]() |
EnumObjectPermissions(String, ObjectPermissionSet) | Enumerates a list of object permissions for a specified grantee and a specified permission on the view. |
![]() |
EnumScriptImpl | Перечисляет сценарии, заданные параметром so. (Производный от SqlSmoObject.) |
![]() |
EnumScriptImplWorker | Вызывает методы, перечисляющие заданные параметром so сценарии. (Производный от SqlSmoObject.) |
![]() |
EnumScriptImplWorkerSOChanged | Возвращает строку IEnumerable, описывающую параметры создания скриптов объекта. (Производный от SqlSmoObject.) |
![]() |
Equals | (Производный от Object.) |
![]() |
ExecuteNonQuery | (Производный от SqlSmoObject.) |
![]() |
Finalize | (Производный от Object.) |
![]() |
ForceTextModeOnTextBody | Enforces text mode on the text body. (Производный от ScriptNameObjectBase.) |
![]() |
FormatSqlVariant | Форматирует объект как имеющий тип SqlVariant. (Производный от SqlSmoObject.) |
![]() |
GenerateDataSpaceFileStreamScript | Формирует скрипт, создающий файл данных. (Производный от SqlSmoObject.) |
![]() |
GenerateDataSpaceScript | Формирует скрипт, выделяющий пространство в файле данных. (Производный от SqlSmoObject.) |
![]() |
GetBindDefaultScript | Возвращает скрипт, привязывающий значения по умолчанию, определенные параметрами defSchema и defName. (Производный от SqlSmoObject.) |
![]() |
GetBindRuleScript | Возвращает скрипт, указывающий правила привязки. (Производный от SqlSmoObject.) |
![]() |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Назначает параметр типа boolean объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Назначает свойство типа boolean объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetBraketNameForText | Gets the bracket name. (Производный от ScriptNameObjectBase.) |
![]() |
GetDateTimeParameter | Назначает свойство типа datetime объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetDateTimeParameterAsInt | Назначает свойство типа datetime объекта SqlSmoObject в виде целочисленного значения, если свойство типа datetime не равно NULL. (Производный от SqlSmoObject.) |
![]() |
GetDBName | Возвращает имя базы данных, связанной с объектом. (Производный от SqlSmoObject.) |
![]() |
GetEnumParameter | Назначает свойство перечисления SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetFragOptionString | Возвращает объект FragmentationOption в виде строкового значения. (Производный от SqlSmoObject.) |
![]() |
GetGuidParameter | Назначает свойство Guid объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetIsSystemNamed | Gets a Boolean value that specifies whether the system is named. (Производный от ScriptNameObjectBase.) |
![]() |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (Производный от ScriptNameObjectBase.) |
![]() |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Назначает параметр объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Назначает параметр объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetPropValue | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetPropValueOptional | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetPropValueOptionalAllowNull | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetRealValue | Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetScriptIncludeExists | Gets the script including the test for existence of type being scripted. (Производный от ScriptNameObjectBase.) |
![]() |
GetScriptingOptionsForCreate | Возвращает параметры ScriptingOptions объектаSqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetServerName | Возвращает имя экземпляра SQL Server, с которым связан объект. (Производный от SqlSmoObject.) |
![]() |
GetServerObject | Возвращает сервер объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetSqlServerVersionName | Возвращает имя версии экземпляра SQL Server, с которым связан объект. (Производный от SqlSmoObject.) |
![]() |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Назначает параметр типа string объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Назначает параметр типа string объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetTextBody() () () () | Returns the text body. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextBody(Boolean) | Returns the text body. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) | Gets the text for scripting. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) | Gets the text of script object. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextHeader | Returns the text header. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextMode | Determines whether the script name is using text mode. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextProperty(String) | Gets the property as text. (Производный от ScriptNameObjectBase.) |
![]() |
GetTextProperty(String, ScriptingOptions) | Gets the property as text. (Производный от ScriptNameObjectBase.) |
![]() |
GetTimeSpanParameterAsInt | Назначает параметр временного диапазона объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetType | (Производный от Object.) |
![]() |
GetUrnRecursive(StringBuilder) | Присваивает объект Urn объекту SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
GetUrnRecursive(StringBuilder, UrnIdOption) | Присваивает объект Urn объекту SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
Grant(ObjectPermissionSet, String) | Grants the specified set of permissions to the specified grantee on the view. |
![]() |
Grant(ObjectPermissionSet, array<String> [] () [] []) | Grants the specified set of permissions to the specified grantees on the view. |
![]() |
Grant(ObjectPermissionSet, String, Boolean) | Grants access to the specified permission and the ability to grant access to other uses for the specified grantee on the view. |
![]() |
Grant(ObjectPermissionSet, String, array<String> [] () [] []) | Grants access to the specified permission on the specified columns for the specified grantee on the specified columns on the view. |
![]() |
Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) | Grants access to the specified permission and the ability to grant access to other uses for the specified grantees on the view. |
![]() |
Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Grants the specified set of permissions to the grantees to the specified columns on the view. |
![]() |
Grant(ObjectPermissionSet, String, Boolean, String) | Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the view under an assumed role. |
![]() |
Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) | Grants the specified permission to the grantee and the ability to grant the specified set of permissions to other users on the specified columns on the view. |
![]() |
Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) | Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the view under an assumed role. |
![]() |
Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) | Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the specified columns on the view. |
![]() |
Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, String) | Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the specified columns on the view under an assumed role. |
![]() |
Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, String) | Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the specified columns on the view under an assumed role. |
![]() |
ImplInitialize | Инициализирует поля объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
Initialize() () () () | Инициализирует объект и инициирует загрузку свойств. (Производный от SqlSmoObject.) |
![]() |
Initialize(Boolean) | Инициализирует объект и инициирует загрузку свойств. (Производный от SqlSmoObject.) |
![]() |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (Производный от ScriptNameObjectBase.) |
![]() |
IsObjectInitialized | Проверяет, был ли объект инициализирован. (Производный от SqlSmoObject.) |
![]() |
IsObjectInSpace | Проверяет, является ли объект изолированным или подключенным к экземпляру SQL Server. (Производный от SqlSmoObject.) |
![]() |
IsVersion80SP3 | Определяет, является ли SQL Server версией SQL Server 2000 с пакетом обновления 3 (SP3). (Производный от SqlSmoObject.) |
![]() |
IsVersion90AndAbove | Определяет, является ли SQL Server версией SQL Server 2005 или более поздней. (Производный от SqlSmoObject.) |
![]() |
MarkDropped | Отмечает текущий объект и все его дочерние коллекции как находящиеся в состоянии Dropped. (Производный от TableViewTableTypeBase.) |
![]() |
MarkForDropImpl | Устанавливает состояние SqlSmoState для удаления. (Производный от SqlSmoObject.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
PostAlter | Метод, активируемый после изменения SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
PostCreate | Метод, активируемый после создания SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
PostDrop | Метод, активируемый после удаления SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ReCompileReferences | Recompiles any view or trigger that depends on the base SMO object. (Производный от TableViewBase.) |
![]() |
Refresh() () () () | Refreshes the View object or Table object properties. (Производный от TableViewBase.) |
![]() |
Refresh(Boolean) | Refreshes the View object properties with the option to refresh metadata. |
![]() |
Rename | Renames the view. |
![]() |
RenameImpl | Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от NamedSmoObject.) |
![]() |
RenameImplWorker | Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от NamedSmoObject.) |
![]() |
ResetDesignModeScriptingOptions | Производит сброс параметров в соответствии с параметром options. (Производный от ScriptSchemaObjectBase.) |
![]() |
Revoke(ObjectPermissionSet, String) | Revokes a previously granted set of permissions from a grantee on the view. |
![]() |
Revoke(ObjectPermissionSet, array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the view. |
![]() |
Revoke(ObjectPermissionSet, String, array<String> [] () [] []) | Revokes a previously granted set of permissions from a grantee on the specified columns on the view. |
![]() |
Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the specified columns on the view. |
![]() |
Revoke(ObjectPermissionSet, String, Boolean, Boolean) | Revokes a previously granted set of permissions from a grantee on the view and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users. |
![]() |
Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) | Revokes a previously granted set of permissions from grantees on the view and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users. |
![]() |
Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) | Revokes a previously granted set of permissions from a grantee from the view and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role. |
![]() |
Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean) | Revokes a previously granted set of permissions from grantees on the specified columns on the view and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role. |
![]() |
Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) | Revokes a previously granted set of permissions from grantees on the view and any other users to whom the grantees have granted access. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role. |
![]() |
Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean) | Revokes a previously granted set of permissions from grantees on the specified columns on the view and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role. |
![]() |
Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean, String) | Revokes a previously granted set of permissions from a grantee on the specified columns on the view and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role. |
![]() |
Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean, String) | Revokes a previously granted set of permissions from the grantees for the specified columns on the view and any other users to whom the grantee has granted access. The grantee is also given the ability to revoke other users' access under an assumed role. |
![]() |
Script() () () () | Создает скрипт Transact-SQL, который может использоваться для повторного создания объекта базы данных. (Производный от TableViewTableTypeBase.) |
![]() |
Script(ScriptingOptions) | Создает скрипт Transact-SQL, который может использоваться для повторного создания объекта базы данных в соответствии с параметрами создания скриптов. (Производный от TableViewTableTypeBase.) |
![]() |
ScriptAlter | Изменяет SqlSmoObject в соответствии с параметрами. (Производный от SqlSmoObject.) |
![]() |
ScriptAnsiQI | Scripts the database object in ANSI text. (Производный от ScriptNameObjectBase.) |
![]() |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от NamedSmoObject.) |
![]() |
ScriptCreate | Изменяет SqlSmoObject в соответствии с параметрами. (Производный от SqlSmoObject.) |
![]() |
ScriptDdl | Вызывает исключение InvalidSmoOperationException. (Производный от SqlSmoObject.) |
![]() |
ScriptDrop | Вызывает исключение InvalidSmoOperationException. (Производный от SqlSmoObject.) |
![]() |
ScriptHeader | Returns the text header with the option to modify the text. |
![]() |
ScriptImpl() () () () | Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ScriptImpl(ScriptingOptions) | Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ScriptImplWorker | Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
ScriptInformativeHeaders | Scripts the information headers. (Производный от ScriptNameObjectBase.) |
![]() |
ScriptOwner | Alters the script owner authorization. (Производный от NamedSmoObject.) |
![]() |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от NamedSmoObject.) |
![]() |
SetCollectionTextMode | Sets the collection text mode. (Производный от ScriptNameObjectBase.) |
![]() |
SetIsSystemNamed | Sets a Boolean value that specifies whether the system is named. (Производный от ScriptNameObjectBase.) |
![]() |
SetParentImpl | Устанавливает родительский объект объекта SqlSmoObject в значение параметра newParent. (Производный от SqlSmoObject.) |
![]() |
SetSchemaOwned | Sets the schema owned value. (Производный от NamedSmoObject.) |
![]() |
SetTextBody | Specifies the text body. (Производный от ScriptNameObjectBase.) |
![]() |
SetTextHeader | Specifies the text header. (Производный от ScriptNameObjectBase.) |
![]() |
SetTextMode | Specifies the text mode. (Производный от ScriptNameObjectBase.) |
![]() |
StoreConstraintsFlags | Сохраняет флаги ограничений в соответствии с параметром options. (Производный от ScriptSchemaObjectBase.) |
![]() |
SwitchTextMode | Switches the text mode. (Производный от ScriptNameObjectBase.) |
![]() |
ThrowIfTextIsDirtyForAlter | Throws an exception of text has been modified and not persisted. (Производный от ScriptNameObjectBase.) |
![]() |
ToString | Возвращает String, представляющее объект, на который ссылаются. (Производный от SqlSmoObject.) |
![]() |
TouchImpl | Не реализовано. (Производный от SqlSmoObject.) |
![]() |
UnbindDefaultImpl | Отменяет привязку столбцов по умолчанию для объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
UnbindRuleImpl | Отменяет привязку правил для объекта SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
UpdateStatistics() () () () | Updates statistics for the table or view. (Производный от TableViewBase.) |
![]() |
UpdateStatistics(StatisticsTarget, StatisticsScanType) | Updates the statistics for the table or view with the option to specify the target and the type of scan performed. (Производный от TableViewBase.) |
![]() |
UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32) | Updates the statistics for the table or view with the option to specify the target, the type of scan performed, and the sample size. (Производный от TableViewBase.) |
![]() |
UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32, Boolean) | Updates the statistics for the table or view with the option to specify the target, the type of scan performed, the sample size, and whether to recompute the statistics. (Производный от TableViewBase.) |
![]() |
Validate | Validates the state of an object. (Производный от SmoObjectBase.) |
В начало
События
Имя | Описание | |
---|---|---|
![]() |
PropertyChanged | Представляет событие, возникающее при изменении свойства. (Производный от SqlSmoObject.) |
![]() |
PropertyMetadataChanged | Представляет событие, возникающее при изменении метаданных свойства. (Производный от SqlSmoObject.) |
В начало
Поля
Имя | Описание | |
---|---|---|
![]() |
m_ExtendedProperties | Представляет свойство, определенное для расширения свойств, предоставляемых объектом SqlSmoObject. (Производный от SqlSmoObject.) |
![]() |
singletonParent | Представляет единственного родителя. (Производный от SqlSmoObject.) |
В начало
Явные реализации интерфейса
Имя | Описание | |
---|---|---|
![]() ![]() |
IAlienObject. . :: . .Discover | Находит любые зависимости. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetDomainRoot | Возвращает корневой элемент домена. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetParent | Возвращает родительский объект для данного объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetPropertyType | Возвращает тип указанного свойства. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetPropertyValue | Возвращает значение указанного свойства. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .GetUrn | Возвращает универсальное имя ресурса для объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .Resolve | Возвращает экземпляр, содержащий данные об объекте из универсального имени ресурса для объекта. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .SetObjectState | Задает состоянию объекта указанное значение SfcObjectState. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject. . :: . .SetPropertyValue | Устанавливает значение свойства. (Производный от SqlSmoObject.) |
![]() ![]() |
ISfcPropertyProvider. . :: . .GetPropertySet | Возвращает ссылку на интерфейс для набора свойств данного объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
ISfcSupportsDesignMode. . :: . .IsDesignMode | Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. Gets a Boolean value that indicates whether the object supports design mode. |
В начало
Замечания
To get View object properties, users can be a member of the public fixed server role.
To set View object properties, ALTER permission on the view or ALTER VIEW permission on the database.
To create a view, users must CREATE VIEW permission on the database and ALTER permission on the specified schema.
To drop a view, users must have CONTROL permission on the view and ALTER permission on the specified schema.
To grant, deny, or revoke permissions on the view to other users, users must have CONTROL permission on the view.
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.
См. также