Server Server Server Class

Definition

The Server object represents an instance of SQL Server.

public ref class Server sealed : Microsoft::SqlServer::Management::Smo::SqlSmoObject, Microsoft::SqlServer::Management::Common::IAlterable, Microsoft::SqlServer::Management::Sdk::Sfc::IAlienRoot, Microsoft::SqlServer::Management::Sdk::Sfc::IDmfFacet, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcDomainLite, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcSupportsDesignMode, Microsoft::SqlServer::Management::Smo::IScriptable, Microsoft::SqlServer::Management::Smo::IServerInformation, Microsoft::SqlServer::Management::Smo::IServerSettings
[Microsoft.SqlServer.Management.Facets.EvaluationMode(Microsoft.SqlServer.Management.Dmf.AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcElement(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcElementFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcElementFlags.SqlAzureDatabase)]
[Microsoft.SqlServer.Management.Sdk.Sfc.PhysicalFacet]
[Microsoft.SqlServer.Management.Sdk.Sfc.RootFacet(typeof(Microsoft.SqlServer.Management.Smo.Server))]
public sealed class Server : Microsoft.SqlServer.Management.Smo.SqlSmoObject, Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Sdk.Sfc.IAlienRoot, Microsoft.SqlServer.Management.Sdk.Sfc.IDmfFacet, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcDomainLite, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSupportsDesignMode, Microsoft.SqlServer.Management.Smo.IScriptable, Microsoft.SqlServer.Management.Smo.IServerInformation, Microsoft.SqlServer.Management.Smo.IServerSettings
Public NotInheritable Class Server
Inherits SqlSmoObject
Implements IAlienRoot, IAlterable, IDmfFacet, IScriptable, IServerInformation, IServerSettings, ISfcDomainLite, ISfcSupportsDesignMode
Inheritance
Attributes
Microsoft.SqlServer.Management.Facets.EvaluationModeAttribute Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcElementAttribute PhysicalFacetAttribute RootFacetAttribute
Implements

Examples

Connecting to an Instance of SQL Server

Remarks

The Server class represents an instance of SQL Server. In SMO programming, the Server object determines the connection to a physical SQL Server installation. The Server class is the highest level in the SMO instance object hierarchy. When a Server object variable is created, it establishes a connection to an instance of SQL Server. If you do not specify the name in the Server class constructor, the connection is always made with the local, default instance of SQL Server.

By using the Server object, you can do the following:

  • Connect to an instance of SQL Server.

  • Modify the connection settings.

  • Run Transact-SQL statements directly.

  • Capture Transact-SQL output from the SMO program.

  • Manage transactions.

  • View operating system information.

  • Modify and view SQL Server settings, information, and user options.

  • Modify and view SQL Server configuration options.

  • Register the instance of SQL Server in the Active Directory directory service.

  • Subscribe to and handle SQL Server events.

  • Reference databases, endpoints, credentials, logins, linked servers, system messages, DDL triggers, system data types, and user-defined messages.

  • Regenerate the service master key.

  • Detach and attach databases.

  • Stop processes or databases.

  • Grant, deny, or revoke permissions on the database.

  • Enumerate information about the server.

  • Read the error log.

  • Remove the backup history.

  • Get and set the default initialization fields for specified types.

  • Create endpoints, such as database mirroring endpoint.

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

    To set Server object properties, users must be a member of the sysadmin fixed server role.

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.

Constructors

Server() Server() Server()

Initializes a new instance of the Server class.

Server(ServerConnection) Server(ServerConnection) Server(ServerConnection)

Initializes a new instance of the Server class based on the specified connection.

Server(String) Server(String) Server(String)

Initializes a new instance of the Server class with the specified name.

Properties

ActiveDirectory ActiveDirectory ActiveDirectory

Gets information about the Active Directory settings for the instance of SQL Server.

AffinityInfo AffinityInfo AffinityInfo

Gets the AffinityInfo object that is associated with an instance of SQL Server.

AuditLevel AuditLevel AuditLevel

Gets or sets the AuditLevel property value.

Audits Audits Audits

Represents a collection of Audit objects. Each Audit object represents an audit log defined on the instance of SQL Server.

AvailabilityGroups AvailabilityGroups AvailabilityGroups

Gets the available groups in the server.

BackupDevices BackupDevices BackupDevices

Represents a collection of BackupDevice objects. Each BackupDevice object represents a backup device defined on the instance of SQL Server.

BackupDirectory BackupDirectory BackupDirectory

Gets or sets the BackupDirectory property value.

BrowserServiceAccount BrowserServiceAccount BrowserServiceAccount

Gets the service account that the Browser service runs under on the instance of SQL Server.

BrowserStartMode BrowserStartMode BrowserStartMode

Gets the start mode for the SQL Server Browser Service running on the instance of SQL Server.

BuildClrVersion BuildClrVersion BuildClrVersion

Gets the BuildClrVersion property value.

BuildClrVersionString BuildClrVersionString BuildClrVersionString

Gets the version string of the CLR that was used while building the instance.

BuildNumber BuildNumber BuildNumber

Gets the BuildNumber property value.

ClusterName ClusterName ClusterName

Gets the name of the cluster.

ClusterQuorumState ClusterQuorumState ClusterQuorumState

Gets the state of the cluster quorum.

ClusterQuorumType ClusterQuorumType ClusterQuorumType

Gets the type of the cluster quorum.

Collation Collation Collation

Gets the Collation property value.

CollationID CollationID CollationID

Gets the CollationID property value.

ComparisonStyle ComparisonStyle ComparisonStyle

Gets the Windows comparison style of the collation.

ComputerNamePhysicalNetBIOS ComputerNamePhysicalNetBIOS ComputerNamePhysicalNetBIOS

Gets the NetBIOS name of the local computer on which the instance of SQL Server is currently running.

Configuration Configuration Configuration

Gets the configuration options for the instance of SQL Server.

ConnectionContext ConnectionContext ConnectionContext

Gets the current server connection details for the instance of SQL Server.

Credentials Credentials Credentials

Represents a collection of Credential objects. Each Credential object represents a credential defined on the instance of SQL Server.

CryptographicProviders CryptographicProviders CryptographicProviders

Gets the list of server cryptographic providers.

Databases Databases Databases

Represents a collection of Database objects. Each Database object represents a database defined on the instance of SQL Server.

DefaultFile DefaultFile DefaultFile

Gets or sets the DefaultFile property value.

DefaultLog DefaultLog DefaultLog

Gets or sets the default log of the server.

DefaultTextMode DefaultTextMode DefaultTextMode

Gets or sets the Boolean property value that specifies whether the default text mode is set for the instance of SQL Server.

Edition Edition Edition

Gets the Edition property value.

Endpoints Endpoints Endpoints

Represents a collection of Endpoint objects. Each Endpoint object represents an endpoint defined on the instance of SQL Server.

EngineEdition EngineEdition EngineEdition

Gets the edition of the engine.

ErrorLogPath ErrorLogPath ErrorLogPath

Gets the ErrorLogPath property value.

Events Events Events

Gets the server events that are associated with the instance of SQL Server.

ExecuteForScalar ExecuteForScalar ExecuteForScalar

Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option.

(Inherited from SqlSmoObject)
ExecutionManager ExecutionManager ExecutionManager

Gets the object for execution.

FilestreamLevel FilestreamLevel FilestreamLevel

Gets the level of FILESTREAM access specified on the instance of SQL Server.

FilestreamShareName FilestreamShareName FilestreamShareName

Gets the Windows share name where FILESTREAM data is stored on the instance of SQL Server.

FullTextService FullTextService FullTextService

Gets the Microsoft Search Full-Text service implementation for the instance of SQL Server.

HadrManagerStatus HadrManagerStatus HadrManagerStatus

Gets the status of the Hadr manager.

Information Information Information

Gets information about the instance of SQL Server.

InstallDataDirectory InstallDataDirectory InstallDataDirectory

Gets the local Windows directory where the installation data is stored for the instance of SQL Server.

InstallSharedDirectory InstallSharedDirectory InstallSharedDirectory

Gets the remote shared directory where the installation data is stored for the instance of SQL Server.

InstanceName InstanceName InstanceName

Gets the instance name of the instance of SQL Server.

IsCaseSensitive IsCaseSensitive IsCaseSensitive

Gets the value that indicates whether the case is sensitive.

IsClustered IsClustered IsClustered

Gets a value that indicating whether the server is clustered.

IsFullTextInstalled IsFullTextInstalled IsFullTextInstalled

Gets the Boolean value that specifies whether Full-Text service is installed on the instance of SQL Server.

IsHadrEnabled IsHadrEnabled IsHadrEnabled

Gets a value that indicates whether the Hadr is enabled.

IsPolyBaseInstalled IsPolyBaseInstalled IsPolyBaseInstalled

Gets a value indicating whether the polybase is installed in the server.

IsSingleUser IsSingleUser IsSingleUser

Gets the property value whether the user is single.

IsTouched IsTouched IsTouched

Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server.

(Inherited from SqlSmoObject)
IsXTPSupported IsXTPSupported IsXTPSupported

Gets the Boolean value that specifies whether the instance of SQL Server supports Extreme Transaction Processing (XTP).

JobServer JobServer JobServer

Gets the SQL Server Agent associated with the instance of SQL Server.

Language Language Language

Gets the language of the server.

Languages Languages Languages

Represents a collection of Language objects. Each Language object represents an languages supported by the instance of SQL Server.

LinkedServers LinkedServers LinkedServers

Represents a collection of LinkedServer objects. Each LinkedServer object represents a linked server registered on the instance of SQL Server.

LoginMode LoginMode LoginMode

Gets or sets the ServerLoginMode property value.

Logins Logins Logins

Represents a collection of Login objects. Each Login object represents a login defined on the instance of SQL Server.

Mail Mail Mail

Gets the Microsoft SQL Mail service associated with the instance of SQL Server.

MailProfile MailProfile MailProfile

Gets or sets the mail profile of the server.

MasterDBLogPath MasterDBLogPath MasterDBLogPath

Get the MasterDBLogPath property value.

MasterDBPath MasterDBPath MasterDBPath

Gets the MasterDBPath property value.

MaxPrecision MaxPrecision MaxPrecision

Gets the MaxPrecision property value.

Name Name Name

Gets the name of the server, which is the physical machine name.

NamedPipesEnabled NamedPipesEnabled NamedPipesEnabled

Gets the Boolean value that specifies whether Named Pipes provider is enabled for client-server connectivity on the instance of SQL Server.

NetName NetName NetName

Gets the NetName property value.

NumberOfLogFiles NumberOfLogFiles NumberOfLogFiles

Gets or sets the NumberOfLogFiles property value.

ObjectInSpace ObjectInSpace ObjectInSpace

Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server.

(Inherited from SqlSmoObject)
OleDbProviderSettings OleDbProviderSettings OleDbProviderSettings

Gets the DbProviderSettings property value.

OSVersion OSVersion OSVersion

Gets the OSVersion property value.

PerfMonMode PerfMonMode PerfMonMode

Gets or sets the PerfMonMode property value.

PhysicalMemory PhysicalMemory PhysicalMemory

Gets the physical memory used by the server.

PhysicalMemoryUsageInKB PhysicalMemoryUsageInKB PhysicalMemoryUsageInKB

Gets an Int64 value that specifies the amount of memory in use by the instance of the Database Engine, in kilobytes.

Platform Platform Platform

Gets the server platform.

Processors Processors Processors

Gets the Processors property value.

ProcessorUsage ProcessorUsage ProcessorUsage

Gets an Int32 value that specifies the processor time used by the instance of the Database Engine.

Product Product Product

Gets the product of the server.

ProductLevel ProductLevel ProductLevel

Gets the ProductLevel property value.

Properties Properties Properties

Gets a collection of Property objects that represent the object properties.

(Inherited from SqlSmoObject)
ProxyAccount ProxyAccount ProxyAccount

Gets the proxy account associated with the instance of SQL Server.

ResourceGovernor ResourceGovernor ResourceGovernor

Gets the resource governor of the server.

ResourceLastUpdateDateTime ResourceLastUpdateDateTime ResourceLastUpdateDateTime

Gets the last time the resource was last updated.

ResourceVersion ResourceVersion ResourceVersion

Gets the ResourceVersion property.

ResourceVersionString ResourceVersionString ResourceVersionString

Gets the ResouceVersionString property value.

Roles Roles Roles

Represents a collection of ServerRole objects. Each ServerRole object represents a role defined on the instance of SQL Server.

RootDirectory RootDirectory RootDirectory

Gets the RootDirectory property value.

ScalarResult ScalarResult ScalarResult

Gets the scalar result for the referenced object.

(Inherited from SqlSmoObject)
ServerAuditSpecifications ServerAuditSpecifications ServerAuditSpecifications

Represents a collection of ServerAuditSpecification objects. Each ServerAuditSpecification object represents a specific audit specification defined on the instance of SQL Server.

ServerType ServerType ServerType

Gets the server type for the instance of SQL Server.

ServiceAccount ServiceAccount ServiceAccount

Gets the service account under which the instance of SQL Server is running.

ServiceInstanceId ServiceInstanceId ServiceInstanceId

Gets the ID value that uniquely identifies the service instance for this instance of SQL Server.

ServiceMasterKey ServiceMasterKey ServiceMasterKey

Gets the service master key associated with the instance of SQL Server.

ServiceName ServiceName ServiceName

Gets the service name for the server.

ServiceStartMode ServiceStartMode ServiceStartMode

Gets the start mode for the SQL Server service.

Settings Settings Settings

Gets modifiable settings for the instance of SQL Server.

SmartAdmin SmartAdmin SmartAdmin

Gets the smart admin associated with this server.

SqlCharSet SqlCharSet SqlCharSet

Gets the value that identifies the character set used by the server.

SqlCharSetName SqlCharSetName SqlCharSetName

Gets the name of the character set used by the server.

SqlDomainGroup SqlDomainGroup SqlDomainGroup

Gets the domain group for the instance of SQL Server.

SqlSortOrder SqlSortOrder SqlSortOrder

Gets the SQL sort order from the collation.

SqlSortOrderName SqlSortOrderName SqlSortOrderName

Gets the name of the sort order used by the server.

State State State

Gets the state of the referenced object.

(Inherited from SmoObjectBase)
Status Status Status

Gets the current status of the Server.

SystemDataTypes SystemDataTypes SystemDataTypes

Represents a collection of SystemDataType objects. Each SystemDataType object represents a system data type defined on the instance of SQL Server.

SystemMessages SystemMessages SystemMessages

Represents a collection of SystemMessage objects. Each SystemMessage object represents a system message defined on the instance of SQL Server.

TapeLoadWaitTime TapeLoadWaitTime TapeLoadWaitTime

Gets or sets the TapeLoadWaitTime property value.

TcpEnabled TcpEnabled TcpEnabled

Gets the Boolean value that determines whether TCP/IP protocol is enabled on this instance of SQL Server.

Triggers Triggers Triggers

Represents a collection of ServerDdlTrigger objects. Each ServerDdlTrigger object represents a server data definition language (DDL) trigger that is defined on the instance of SQL Server.

Urn Urn Urn

Gets the Uniform Resource Name (URN) address value that uniquely identifies the object.

(Inherited from SqlSmoObject)
UserData UserData UserData

Gets or sets user-defined data associated with the referenced object.

(Inherited from SmoObjectBase)
UserDefinedMessages UserDefinedMessages UserDefinedMessages

Represents a collection of UserDefinedMessage objects. Each UserDefinedMessage object represents a user-defined message defined on the instance of SQL Server.

UserOptions UserOptions UserOptions

Gets the user options for the current connection to the instance of SQL Server.

Version Version Version

Gets the Version property value.

VersionMajor VersionMajor VersionMajor

Gets the major version of the server.

VersionMinor VersionMinor VersionMinor

Gets the VersionMinor property value.

VersionString VersionString VersionString

Gets the version string of the server.

Methods

AddDatabaseContext(StringCollection) AddDatabaseContext(StringCollection) AddDatabaseContext(StringCollection)

Add the database context to the collection of queries identified by the queries parameter.

(Inherited from SqlSmoObject)
Alter() Alter() Alter()

Updates any Server object property changes on the instance of SQL Server.

Alter(Boolean) Alter(Boolean) Alter(Boolean)

Updates any Server object property changes on the instance of SQL Server with the option to override value checking.

AlterImpl() AlterImpl() AlterImpl()

Activates the object altered event.

(Inherited from SqlSmoObject)
AlterImplWorker() AlterImplWorker() AlterImplWorker()

Calls the Alter methods.

(Inherited from SqlSmoObject)
AttachDatabase(String, StringCollection) AttachDatabase(String, StringCollection) AttachDatabase(String, StringCollection)

Attaches an existing database that is made up of one or more files to the instance of SQL Server with the specified name and using the specified data files.

AttachDatabase(String, StringCollection, AttachOptions) AttachDatabase(String, StringCollection, AttachOptions) AttachDatabase(String, StringCollection, AttachOptions)

Attaches an existing database that is made up of one or more files to the instance of SQL Server that has the specified name and using the specified data files and attachment options.

AttachDatabase(String, StringCollection, String) AttachDatabase(String, StringCollection, String) AttachDatabase(String, StringCollection, String)

Attaches an existing database that is made up of one or more files to the instance of SQL Server with the specified name and using the specified data files.

AttachDatabase(String, StringCollection, String, AttachOptions) AttachDatabase(String, StringCollection, String, AttachOptions) AttachDatabase(String, StringCollection, String, AttachOptions)

Attaches an existing database that is made up of one or more files to the instance of SQL Server by using the specified name, data files, and attachment options.

BindDefaultImpl(String, String, Boolean) BindDefaultImpl(String, String, Boolean) BindDefaultImpl(String, String, Boolean)

Binds the default items identified by the parameters.

(Inherited from SqlSmoObject)
BindRuleImpl(String, String, Boolean) BindRuleImpl(String, String, Boolean) BindRuleImpl(String, String, Boolean)

Binds the rule schema to the rule and columns identified by the parameters.

(Inherited from SqlSmoObject)
CheckObjectState() CheckObjectState() CheckObjectState()

Validates the state of the referenced object.

(Inherited from SqlSmoObject)
CheckObjectState(Boolean) CheckObjectState(Boolean) CheckObjectState(Boolean)

Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created.

(Inherited from SqlSmoObject)
CheckObjectStateImpl(Boolean) CheckObjectStateImpl(Boolean) CheckObjectStateImpl(Boolean)

Checks the state of a SqlSmoObject.

(Inherited from SqlSmoObject)
CleanObject() CleanObject() CleanObject()

Sets the object to its unmodified state.

(Inherited from SqlSmoObject)
CompareUrn(Urn, Urn) CompareUrn(Urn, Urn) CompareUrn(Urn, Urn)

Compares two URNS.

CreateImpl() CreateImpl() CreateImpl()

Creates an object with scripting options.

(Inherited from SqlSmoObject)
DeleteBackupHistory(DateTime) DeleteBackupHistory(DateTime) DeleteBackupHistory(DateTime)

Deletes the backup history for this instance of SQL Server up until the specified date and time.

DeleteBackupHistory(Int32) DeleteBackupHistory(Int32) DeleteBackupHistory(Int32)

Deletes the backup history for the specified media set.

DeleteBackupHistory(String) DeleteBackupHistory(String) DeleteBackupHistory(String)

Deletes the backup history for the specified database.

Deny(ServerPermissionSet, String) Deny(ServerPermissionSet, String) Deny(ServerPermissionSet, String)

Denies the specified set of permissions for the specified grantee on the instance of SQL Server.

Deny(ServerPermissionSet, String, Boolean) Deny(ServerPermissionSet, String, Boolean) Deny(ServerPermissionSet, 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 instance of SQL Server.

Deny(ServerPermissionSet, String[]) Deny(ServerPermissionSet, String[]) Deny(ServerPermissionSet, String[])

Denies the specified set of permissions for the specified grantees on the instance of SQL Server.

Deny(ServerPermissionSet, String[], Boolean) Deny(ServerPermissionSet, String[], Boolean) Deny(ServerPermissionSet, 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 instance of SQL Server.

DetachDatabase(String, Boolean) DetachDatabase(String, Boolean) DetachDatabase(String, Boolean)

Detaches the specified database from the instance of SQL Server with the option to update statistics before the database is detached.

DetachDatabase(String, Boolean, Boolean) DetachDatabase(String, Boolean, Boolean) DetachDatabase(String, Boolean, Boolean)

Detaches the specified database from the instance of SQL Server with the option to update statistics before the database is detached.

DetachedDatabaseInfo(String) DetachedDatabaseInfo(String) DetachedDatabaseInfo(String)

Returns information about a detached database file.

Discover() Discover() Discover()

Discovers a list of type Object.

(Inherited from SqlSmoObject)
DropImpl(Boolean) DropImpl(Boolean) DropImpl(Boolean)

Drops a SqlSmoObject.

(Inherited from SqlSmoObject)
DropImplWorker(Urn, Boolean) DropImplWorker(Urn, Boolean) DropImplWorker(Urn, Boolean)

Drops the IMPL worker.

(Inherited from SqlSmoObject)
EnumActiveCurrentSessionTraceFlags() EnumActiveCurrentSessionTraceFlags() EnumActiveCurrentSessionTraceFlags()

Gets active session flags as a DataTable.

EnumActiveGlobalTraceFlags() EnumActiveGlobalTraceFlags() EnumActiveGlobalTraceFlags()

Gets a DataTable that contains active global trace flags.

EnumAvailableMedia() EnumAvailableMedia() EnumAvailableMedia()

Enumerates a list of media that is visible to the instance of SQL Server on the local area network.

EnumAvailableMedia(MediaTypes) EnumAvailableMedia(MediaTypes) EnumAvailableMedia(MediaTypes)

Enumerates a list of media that is visible to the instance of SQL Server on the local area network and limited to the type of media specified.

EnumClusterMembersState() EnumClusterMembersState() EnumClusterMembersState()

Enumerates the current state of the Windows cluster members of which the instance is part of.

EnumClusterSubnets() EnumClusterSubnets() EnumClusterSubnets()

Enumerates a list of cluster subnets.

EnumCollations() EnumCollations() EnumCollations()

Enumerates a list of collations supported by the instance of SQL Server.

EnumDatabaseMirrorWitnessRoles() EnumDatabaseMirrorWitnessRoles() EnumDatabaseMirrorWitnessRoles()

Enumerates a list of database mirror witness roles.

EnumDatabaseMirrorWitnessRoles(String) EnumDatabaseMirrorWitnessRoles(String) EnumDatabaseMirrorWitnessRoles(String)

Enumerates a list of mirror witness roles for the specified database.

EnumDetachedDatabaseFiles(String) EnumDetachedDatabaseFiles(String) EnumDetachedDatabaseFiles(String)

Enumerates a list of detached database files.

EnumDetachedLogFiles(String) EnumDetachedLogFiles(String) EnumDetachedLogFiles(String)

Enumerates a list of detached log files.

EnumDirectories(String) EnumDirectories(String) EnumDirectories(String)

Enumerates a list of directories relative to the specified path.

EnumErrorLogs() EnumErrorLogs() EnumErrorLogs()

Enumerates a list of SQL Server error log files.

EnumLocks() EnumLocks() EnumLocks()

Enumerates a list of current locks held on the instance of SQL Server.

EnumLocks(Int32) EnumLocks(Int32) EnumLocks(Int32)

Enumerates a list of current locks held by the specified process on the instance of SQL Server.

EnumMembers(RoleTypes) EnumMembers(RoleTypes) EnumMembers(RoleTypes)

Enumerates a list of members of server roles and database roles on the instance of SQL Server.

EnumObjectPermissions() EnumObjectPermissions() EnumObjectPermissions()

Enumerates a list of object permissions for the instance of SQL Server.

EnumObjectPermissions(ObjectPermissionSet) EnumObjectPermissions(ObjectPermissionSet) EnumObjectPermissions(ObjectPermissionSet)

Enumerates a list of object permissions for a specified permission on the instance of SQL Server.

EnumObjectPermissions(String) EnumObjectPermissions(String) EnumObjectPermissions(String)

Enumerates a list of object permissions for a specified grantee on the application instance of SQL Server.

EnumObjectPermissions(String, ObjectPermissionSet) EnumObjectPermissions(String, ObjectPermissionSet) EnumObjectPermissions(String, ObjectPermissionSet)

Enumerates a list of object permissions for a specified grantee and a specified permission on the instance of SQL Server.

EnumPerformanceCounters() EnumPerformanceCounters() EnumPerformanceCounters()

Enumerates a list of performance counters that are supported by the instance of SQL Server.

EnumPerformanceCounters(String) EnumPerformanceCounters(String) EnumPerformanceCounters(String)

Enumerates a list of performance counters that are supported by the instance of SQL Server for a specified object.

EnumPerformanceCounters(String, String) EnumPerformanceCounters(String, String) EnumPerformanceCounters(String, String)

Enumerates a list of performance counters that are supported by the instance of SQL Server for a specified object and specified counter.

EnumPerformanceCounters(String, String, String) EnumPerformanceCounters(String, String, String) EnumPerformanceCounters(String, String, String)

Enumerates a list of performance counters that are supported by the instance of SQL Server for a specified object, for a specified counter, and on the specified instance of SQL Server.

EnumProcesses() EnumProcesses() EnumProcesses()

Enumerates a list of processes running on the instance of SQL Server.

EnumProcesses(Boolean) EnumProcesses(Boolean) EnumProcesses(Boolean)

Enumerates a list of processes running on the instance of SQL Server with the option to exclude system processes.

EnumProcesses(Int32) EnumProcesses(Int32) EnumProcesses(Int32)

Enumerates a list of information about the specified process.

EnumProcesses(String) EnumProcesses(String) EnumProcesses(String)

Enumerates a list of processes running on the instance of SQL Server that are associated with the specified login.

EnumServerAttributes() EnumServerAttributes() EnumServerAttributes()

Enumerates a list of server attributes for the instance of SQL Server.

EnumServerPermissions() EnumServerPermissions() EnumServerPermissions()

Enumerates a list of server permissions for the instance of SQL Server.

EnumServerPermissions(ServerPermissionSet) EnumServerPermissions(ServerPermissionSet) EnumServerPermissions(ServerPermissionSet)

Enumerates a list of server permissions for a specified permission on the instance of SQL Server.

EnumServerPermissions(String) EnumServerPermissions(String) EnumServerPermissions(String)

Enumerates a list of server permissions for a specified grantee on the instance of SQL Server.

EnumServerPermissions(String, ServerPermissionSet) EnumServerPermissions(String, ServerPermissionSet) EnumServerPermissions(String, ServerPermissionSet)

Enumerates a list of server permissions for a specified grantee and a specified permission on the instance of SQL Server.

EnumStartupProcedures() EnumStartupProcedures() EnumStartupProcedures()

Enumerates a list of startup procedures.

EnumWindowsDomainGroups() EnumWindowsDomainGroups() EnumWindowsDomainGroups()

Enumerates a list of Microsoft Windows group accounts defined on a domain.

EnumWindowsDomainGroups(String) EnumWindowsDomainGroups(String) EnumWindowsDomainGroups(String)

Enumerates a list of Microsoft Windows group accounts defined for the specified domain.

EnumWindowsGroupInfo() EnumWindowsGroupInfo() EnumWindowsGroupInfo()

Enumerates a list of information about all Microsoft Windows groups that have explicitly granted access to the instance of SQL Server.

EnumWindowsGroupInfo(String) EnumWindowsGroupInfo(String) EnumWindowsGroupInfo(String)

Enumerates a list of information about all Microsoft Windows groups that have explicitly granted access to the instance of SQL Server.

EnumWindowsGroupInfo(String, Boolean) EnumWindowsGroupInfo(String, Boolean) EnumWindowsGroupInfo(String, Boolean)

Enumerates a list of information about all Microsoft Windows groups that have explicitly granted access to the instance of SQL Server and with the option to list the individual members.

EnumWindowsUserInfo() EnumWindowsUserInfo() EnumWindowsUserInfo()

Enumerates a list of information about all Microsoft Windows users that have explicitly granted access to SQL Server.

EnumWindowsUserInfo(String) EnumWindowsUserInfo(String) EnumWindowsUserInfo(String)

Enumerates a list of information about all Microsoft Windows users that have explicitly granted access to the instance of SQL Server.

EnumWindowsUserInfo(String, Boolean) EnumWindowsUserInfo(String, Boolean) EnumWindowsUserInfo(String, Boolean)

Enumerates a list of information about all Microsoft Windows users that have explicitly granted access to the instance of SQL Server and with the option to list all the permissions paths (groups) through which the user has been granted access to the instance of SQL Server.

ExecuteNonQuery(StringCollection, Boolean) ExecuteNonQuery(StringCollection, Boolean) ExecuteNonQuery(StringCollection, Boolean)

Executes a batch of statements that does not return a result set.

(Inherited from SqlSmoObject)
FormatSqlVariant(Object) FormatSqlVariant(Object) FormatSqlVariant(Object)

Formats an object as Microsoft.Data.Schema.Sql.DataGenerator.SqlVariant type.

(Inherited from SqlSmoObject)
GenerateAlterEvent() GenerateAlterEvent() GenerateAlterEvent()

Generates the alter event with the specified value.

(Inherited from SqlSmoObject)
GenerateAlterEvent(Urn, Object) GenerateAlterEvent(Urn, Object) GenerateAlterEvent(Urn, Object)

Generates alter event with the specified URN and inner object value.

(Inherited from SqlSmoObject)
GetActiveDBConnectionCount(String) GetActiveDBConnectionCount(String) GetActiveDBConnectionCount(String)

Returns the number of active connections for the specified database.

GetContextDB() GetContextDB() GetContextDB()

Gets the context database that is associated with this object.

(Inherited from SqlSmoObject)
GetDBName() GetDBName() GetDBName()

Gets the database name that is associated with the object.

(Inherited from SqlSmoObject)
GetDefaultInitFields(Type) GetDefaultInitFields(Type) GetDefaultInitFields(Type)

Returns the property types that are initialized by default when the specified object is initialized.

GetFragOptionString(FragmentationOption) GetFragOptionString(FragmentationOption) GetFragOptionString(FragmentationOption)

Gets a FragmentationOption object as a string value.

(Inherited from SqlSmoObject)
GetPropertyNames(Type) GetPropertyNames(Type) GetPropertyNames(Type)

Returns the names of the initialized properties for the specified object type.

GetPropValue(String) GetPropValue(String) GetPropValue(String)

Gets a property value of the SqlSmoObject object.

(Inherited from SqlSmoObject)
GetPropValueOptional(String) GetPropValueOptional(String) GetPropValueOptional(String)

Gets a property value of the SqlSmoObject object.

(Inherited from SqlSmoObject)
GetPropValueOptionalAllowNull(String) GetPropValueOptionalAllowNull(String) GetPropValueOptionalAllowNull(String)

Gets a property value of the SqlSmoObject object.

(Inherited from SqlSmoObject)
GetRealValue(Property, Object) GetRealValue(Property, Object) GetRealValue(Property, Object)

Gets a property value of the SqlSmoObject object.

(Inherited from SqlSmoObject)
GetServerName() GetServerName() GetServerName()

Gets the name of the instance of SQL Server with which the object is associated.

(Inherited from SqlSmoObject)
GetServerObject() GetServerObject() GetServerObject()

Gets the server of the SqlSmoObject object.

(Inherited from SqlSmoObject)
GetSmoObject(Urn) GetSmoObject(Urn) GetSmoObject(Urn)

Gets a SqlSmoObject that is specified by a URN.

GetSqlServerVersionName() GetSqlServerVersionName() GetSqlServerVersionName()

Gets the version name of the instance of SQL Server with which the object is associated.

(Inherited from SqlSmoObject)
GetStringComparer(String) GetStringComparer(String) GetStringComparer(String)

Returns the comparer object corresponding to the collation string passed.

GetUrnRecursive(StringBuilder) GetUrnRecursive(StringBuilder) GetUrnRecursive(StringBuilder)

Assigns an Urn object of the SqlSmoObject object.

(Inherited from SqlSmoObject)
GetUrnRecursive(StringBuilder, UrnIdOption) GetUrnRecursive(StringBuilder, UrnIdOption) GetUrnRecursive(StringBuilder, UrnIdOption)

Assigns an Urn object of the SqlSmoObject object.

(Inherited from SqlSmoObject)
Grant(ServerPermissionSet, String) Grant(ServerPermissionSet, String) Grant(ServerPermissionSet, String)

Grants the specified set of permissions to the specified grantee on the instance of SQL Server.

Grant(ServerPermissionSet, String, Boolean) Grant(ServerPermissionSet, String, Boolean) Grant(ServerPermissionSet, String, Boolean)

Grants access to the specified permission to the grantee and the ability to grant access to other users on the instance of SQL Server.

Grant(ServerPermissionSet, String, Boolean, String) Grant(ServerPermissionSet, String, Boolean, String) Grant(ServerPermissionSet, 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 instance of SQL Server under an assumed role.

Grant(ServerPermissionSet, String[]) Grant(ServerPermissionSet, String[]) Grant(ServerPermissionSet, String[])

Grants the specified set of permissions to the specified grantees on the instance of SQL Server.

Grant(ServerPermissionSet, String[], Boolean) Grant(ServerPermissionSet, String[], Boolean) Grant(ServerPermissionSet, String[], Boolean)

Grants access to the specified permission to the grantees and the ability to grant access to other users on the instance of SQL Server.

Grant(ServerPermissionSet, String[], Boolean, String) Grant(ServerPermissionSet, String[], Boolean, String) Grant(ServerPermissionSet, 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 instance of SQL Server under an assumed role.

ImplInitialize(String[], OrderBy[]) ImplInitialize(String[], OrderBy[]) ImplInitialize(String[], OrderBy[])

Initializes the fields of the SqlSmoObject object.

(Inherited from SqlSmoObject)
Initialize() Initialize() Initialize()

Initializes the object and forces the properties be loaded.

(Inherited from SqlSmoObject)
Initialize(Boolean) Initialize(Boolean) Initialize(Boolean)

Initializes the object and forces the properties be loaded.

(Inherited from SqlSmoObject)
IsDetachedPrimaryFile(String) IsDetachedPrimaryFile(String) IsDetachedPrimaryFile(String)

Verifies whether the specified file is a primary (.mdf) database file.

IsObjectDirty() IsObjectDirty() IsObjectDirty()

Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server.

(Inherited from SqlSmoObject)
IsObjectInitialized() IsObjectInitialized() IsObjectInitialized()

Verifies whether the object has been initialized.

(Inherited from SqlSmoObject)
IsObjectInSpace() IsObjectInSpace() IsObjectInSpace()

Verifies whether the object is isolated or connected to the instance of SQL Server.

(Inherited from SqlSmoObject)
IsSupportedProperty(String) IsSupportedProperty(String) IsSupportedProperty(String)

Determines whether the specified property is supported in the target .NET Framework.

(Inherited from SqlSmoObject)
IsVersion80SP3() IsVersion80SP3() IsVersion80SP3()

Determines whether the version of SQL Server is SQL Server 2000 with SP3.

(Inherited from SqlSmoObject)
IsVersion90AndAbove() IsVersion90AndAbove() IsVersion90AndAbove()

Determines whether the version of SQL Server is SQL Server 2005 or later.

(Inherited from SqlSmoObject)
IsWindowsGroupMember(String, String) IsWindowsGroupMember(String, String) IsWindowsGroupMember(String, String)

Verifies whether the specified Microsoft Windows user account is a member of the specified Windows group.

JoinAvailabilityGroup(String) JoinAvailabilityGroup(String) JoinAvailabilityGroup(String)

Indicates a specified object to join the availability group.

KillAllProcesses(String) KillAllProcesses(String) KillAllProcesses(String)

Stops the all processes on the specified database.

KillDatabase(String) KillDatabase(String) KillDatabase(String)

Deletes the specified database and drops any active connection.

KillProcess(Int32) KillProcess(Int32) KillProcess(Int32)

Stops the specified process.

MarkDropped() MarkDropped() MarkDropped()

Sets the SqlSmoState to dropped.

(Inherited from SqlSmoObject)
MarkForDropImpl(Boolean) MarkForDropImpl(Boolean) MarkForDropImpl(Boolean)

Sets the SqlSmoState for drop operation.

(Inherited from SqlSmoObject)
PingSqlServerVersion(String) PingSqlServerVersion(String) PingSqlServerVersion(String)

Gets the version number of the instance of SQL Server.

PingSqlServerVersion(String, String, String) PingSqlServerVersion(String, String, String) PingSqlServerVersion(String, String, String)

Get the version number of the specified instance of SQL Server using the specified login and password to gain access.

PostAlter() PostAlter() PostAlter()

The method that is activated after the SqlSmoObject is altered.

(Inherited from SqlSmoObject)
PostCreate() PostCreate() PostCreate()

The method that is activated after the SqlSmoObject is created.

(Inherited from SqlSmoObject)
PostDrop() PostDrop() PostDrop()

The method that is activated after the SqlSmoObject is dropped.

(Inherited from SqlSmoObject)
ReadErrorLog() ReadErrorLog() ReadErrorLog()

Enumerates the SQL Server error log.

ReadErrorLog(Int32) ReadErrorLog(Int32) ReadErrorLog(Int32)

Enumerates the specified SQL Server error log.

Refresh() Refresh() Refresh()

Refreshes the objects and properties on the Server object.

Revoke(ServerPermissionSet, String) Revoke(ServerPermissionSet, String) Revoke(ServerPermissionSet, String)

Revokes a previously granted set of permissions from a list of grantees on the instance of SQL Server.

Revoke(ServerPermissionSet, String, Boolean, Boolean) Revoke(ServerPermissionSet, String, Boolean, Boolean) Revoke(ServerPermissionSet, String, Boolean, Boolean)

Revokes previously granted permissions from a grantee on the instance of SQL Server 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(ServerPermissionSet, String, Boolean, Boolean, String) Revoke(ServerPermissionSet, String, Boolean, Boolean, String) Revoke(ServerPermissionSet, String, Boolean, Boolean, String)

Revokes previously granted permissions from a grantee on the instance of SQL Server 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(ServerPermissionSet, String[]) Revoke(ServerPermissionSet, String[]) Revoke(ServerPermissionSet, String[])

Revokes a previously granted set of permissions from a list of grantees on the instance of SQL Server.

Revoke(ServerPermissionSet, String[], Boolean, Boolean) Revoke(ServerPermissionSet, String[], Boolean, Boolean) Revoke(ServerPermissionSet, String[], Boolean, Boolean)

Revokes previously granted permissions from grantees on the instance of SQL Server 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(ServerPermissionSet, String[], Boolean, Boolean, String) Revoke(ServerPermissionSet, String[], Boolean, Boolean, String) Revoke(ServerPermissionSet, String[], Boolean, Boolean, String)

Revokes previously granted permissions from grantees on the instance of SQL Server 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.

Script() Script() Script()

Generates a StringCollection of Transact-SQL statements that can be used to re-create the server.

Script(ScriptingOptions) Script(ScriptingOptions) Script(ScriptingOptions)

Generates a StringCollection of Transact-SQL statements that can be used to re-create the server by using the specified scripting options.

ScriptImpl() ScriptImpl() ScriptImpl()

Gets a collection of scripts of the SqlSmoObject.

(Inherited from SqlSmoObject)
ScriptImpl(ScriptingOptions) ScriptImpl(ScriptingOptions) ScriptImpl(ScriptingOptions)

Gets a collection of scripts of the SqlSmoObject.

(Inherited from SqlSmoObject)
SetDefaultInitFields(Boolean) SetDefaultInitFields(Boolean) SetDefaultInitFields(Boolean)

Specifies that all properties are fetched when objects are instantiated.

SetDefaultInitFields(Type, Boolean) SetDefaultInitFields(Type, Boolean) SetDefaultInitFields(Type, Boolean)

Specifies all the properties are fetched when objects of the specified type are instantiated.

SetDefaultInitFields(Type, StringCollection) SetDefaultInitFields(Type, StringCollection) SetDefaultInitFields(Type, StringCollection)

Specifies the properties that are fetched when objects of the specified type are instantiated.

SetDefaultInitFields(Type, String[]) SetDefaultInitFields(Type, String[]) SetDefaultInitFields(Type, String[])

Specifies the properties that are fetched when objects of the specified type are instantiated.

SetParentImpl(SqlSmoObject) SetParentImpl(SqlSmoObject) SetParentImpl(SqlSmoObject)

Sets the parent of the SqlSmoObject to the newParent parameter.

(Inherited from SqlSmoObject)
SetTraceFlag(Int32, Boolean) SetTraceFlag(Int32, Boolean) SetTraceFlag(Int32, Boolean)

Sets a trace flag.

ThrowIfAboveVersion100(String) ThrowIfAboveVersion100(String) ThrowIfAboveVersion100(String)

Throws the object if above version 100.

(Inherited from SqlSmoObject)
ThrowIfAboveVersion80(String) ThrowIfAboveVersion80(String) ThrowIfAboveVersion80(String)

Throws SqlSmoObject if version is above 80.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion100(String) ThrowIfBelowVersion100(String) ThrowIfBelowVersion100(String)

Throws exception if the version is below 100.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion110(String) ThrowIfBelowVersion110(String) ThrowIfBelowVersion110(String)

Throws the object if the version belows 110.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion110Prop(String) ThrowIfBelowVersion110Prop(String) ThrowIfBelowVersion110Prop(String)

Throws the SqlSmoObject if version is below 110Prop.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion120(String) ThrowIfBelowVersion120(String) ThrowIfBelowVersion120(String)

Throws the object if the version is below 120.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion120Prop(String) ThrowIfBelowVersion120Prop(String) ThrowIfBelowVersion120Prop(String)

Throws the object if the version belows 120 property.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion130(String) ThrowIfBelowVersion130(String) ThrowIfBelowVersion130(String)

Throws the object if the version is below 130.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion130Prop(String) ThrowIfBelowVersion130Prop(String) ThrowIfBelowVersion130Prop(String)

Throws an object if BelowVersion130Prop.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion80(String) ThrowIfBelowVersion80(String) ThrowIfBelowVersion80(String)

Throws the object if the version is below 80.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion80SP3() ThrowIfBelowVersion80SP3() ThrowIfBelowVersion80SP3()

Throws an exception if the version is below 80SP3.

(Inherited from SqlSmoObject)
ThrowIfBelowVersion90(String) ThrowIfBelowVersion90(String) ThrowIfBelowVersion90(String)

Throws the object if the version is below 90.

(Inherited from SqlSmoObject)
ToString() ToString() ToString()

Returns a String that represents the referenced object.

(Inherited from SqlSmoObject)
TouchImpl() TouchImpl() TouchImpl()

Implements a touch object.

(Inherited from SqlSmoObject)
UnbindDefaultImpl(Boolean) UnbindDefaultImpl(Boolean) UnbindDefaultImpl(Boolean)

Unbinds the default columns of the SqlSmoObject.

(Inherited from SqlSmoObject)
UnbindRuleImpl(Boolean) UnbindRuleImpl(Boolean) UnbindRuleImpl(Boolean)

Unbinds rules of the SqlSmoObject.

(Inherited from SqlSmoObject)
Validate(String, Object[]) Validate(String, Object[]) Validate(String, Object[])

Validates the state of an object.

(Inherited from SmoObjectBase)

Explicit Interface Implementations

IAlienObject.Discover() IAlienObject.Discover() IAlienObject.Discover()

Discovers any dependencies.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SqlSmoObject)
IAlienObject.GetDomainRoot() IAlienObject.GetDomainRoot() IAlienObject.GetDomainRoot()

Returns the root of the domain.

(Inherited from SqlSmoObject)
IAlienObject.GetParent() IAlienObject.GetParent() IAlienObject.GetParent()

Gets the parent of this object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SqlSmoObject)
IAlienObject.GetPropertyType(String) IAlienObject.GetPropertyType(String) IAlienObject.GetPropertyType(String)

Gets the type of the specified property.

(Inherited from SqlSmoObject)
IAlienObject.GetPropertyValue(String, Type) IAlienObject.GetPropertyValue(String, Type) IAlienObject.GetPropertyValue(String, Type)

Gets the value of the specified property.

(Inherited from SqlSmoObject)
IAlienObject.GetUrn() IAlienObject.GetUrn() IAlienObject.GetUrn()

Gets the Unified Resource Name (URN) of the object.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SqlSmoObject)
IAlienObject.Resolve(String) IAlienObject.Resolve(String) IAlienObject.Resolve(String)

Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object.

(Inherited from SqlSmoObject)
IAlienObject.SetObjectState(SfcObjectState) IAlienObject.SetObjectState(SfcObjectState) IAlienObject.SetObjectState(SfcObjectState)

Sets the object state to the specified SfcObjectState value.

(Inherited from SqlSmoObject)
IAlienObject.SetPropertyValue(String, Type, Object) IAlienObject.SetPropertyValue(String, Type, Object) IAlienObject.SetPropertyValue(String, Type, Object)

Sets the property value.

(Inherited from SqlSmoObject)
IAlienRoot.DesignModeInitialize() IAlienRoot.DesignModeInitialize() IAlienRoot.DesignModeInitialize()

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Ensures that the Server object is in design mode, that it is disconnected from the instance of the Database Engine it represents.

IAlienRoot.SfcHelper_GetDataTable(Object, String, String[], OrderBy[]) IAlienRoot.SfcHelper_GetDataTable(Object, String, String[], OrderBy[]) IAlienRoot.SfcHelper_GetDataTable(Object, String, String[], OrderBy[])

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets a DataTable object containing the results from a URN.

IAlienRoot.SfcHelper_GetSmoObject(String) IAlienRoot.SfcHelper_GetSmoObject(String) IAlienRoot.SfcHelper_GetSmoObject(String)

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets the Object that represents the object identified by a specified URN.

IAlienRoot.SfcHelper_GetSmoObjectQuery(String, String[], OrderBy[]) IAlienRoot.SfcHelper_GetSmoObjectQuery(String, String[], OrderBy[]) IAlienRoot.SfcHelper_GetSmoObjectQuery(String, String[], OrderBy[])

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets a List<T> of String values.

ISfcDomainLite.DomainInstanceName ISfcDomainLite.DomainInstanceName ISfcDomainLite.DomainInstanceName

Gets the instance name of the domain.

ISfcDomainLite.DomainName ISfcDomainLite.DomainName ISfcDomainLite.DomainName

Gets the domain name of the server.

ISfcDomainLite.GetLogicalVersion() ISfcDomainLite.GetLogicalVersion() ISfcDomainLite.GetLogicalVersion()

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets an Int32 value that indicates whether changes have been made to the Server object.

ISfcHasConnection.ConnectionContext ISfcHasConnection.ConnectionContext ISfcHasConnection.ConnectionContext

Gets the connection context mode for the connection.

ISfcHasConnection.GetConnection() ISfcHasConnection.GetConnection() ISfcHasConnection.GetConnection()

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets a connection to an Sfc backing store.

ISfcHasConnection.GetConnection(SfcObjectQueryMode) ISfcHasConnection.GetConnection(SfcObjectQueryMode) ISfcHasConnection.GetConnection(SfcObjectQueryMode)

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Gets a connection to an Sfc backing store that supports the requested query mode.

ISfcHasConnection.SetConnection(ISfcConnection) ISfcHasConnection.SetConnection(ISfcConnection) ISfcHasConnection.SetConnection(ISfcConnection)

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Sets a connection to an Sfc backing store.

ISfcPropertyProvider.GetPropertySet() ISfcPropertyProvider.GetPropertySet() ISfcPropertyProvider.GetPropertySet()

Gets the interface reference to the set of properties of this object.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SqlSmoObject)
ISfcSupportsDesignMode.IsDesignMode ISfcSupportsDesignMode.IsDesignMode ISfcSupportsDesignMode.IsDesignMode

Gets a value that indicates whether the object supports design mode.

Fields

m_ExtendedProperties m_ExtendedProperties m_ExtendedProperties

Represents a property that is defined to extend the properties provided by a SqlSmoObject.

(Inherited from SqlSmoObject)
singletonParent singletonParent singletonParent

Represents the singleton parent.

(Inherited from SqlSmoObject)

Events

PropertyChanged PropertyChanged PropertyChanged

Represents the event that occurs when a property is changed.

(Inherited from SqlSmoObject)
PropertyMetadataChanged PropertyMetadataChanged PropertyMetadataChanged

Represents the event that occurs when property metadata changes.

(Inherited from SqlSmoObject)

Applies to