Server 클래스

The Server object represents an instance of SQL Server.

상속 계층

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.Server

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<RootFacetAttribute(GetType(Server))> _
Public NotInheritable Class Server _
    Inherits SqlSmoObject _
    Implements ISfcSupportsDesignMode, IAlterable, IScriptable, IServerSettings,  _
    IServerInformation, IDmfFacet, IAlienRoot, ISfcDomainLite, ISfcHasConnection
‘사용 방법
Dim instance As Server
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[RootFacetAttribute(typeof(Server))]
public sealed class Server : SqlSmoObject, 
    ISfcSupportsDesignMode, IAlterable, IScriptable, IServerSettings, IServerInformation, 
    IDmfFacet, IAlienRoot, ISfcDomainLite, ISfcHasConnection
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[RootFacetAttribute(typeof(Server))]
public ref class Server sealed : public SqlSmoObject, 
    ISfcSupportsDesignMode, IAlterable, IScriptable, IServerSettings, IServerInformation, 
    IDmfFacet, IAlienRoot, ISfcDomainLite, ISfcHasConnection
[<SealedAttribute>]
[<PhysicalFacetAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<RootFacetAttribute(typeof(Server))>]
type Server =  
    class 
        inherit SqlSmoObject 
        interface ISfcSupportsDesignMode 
        interface IAlterable 
        interface IScriptable 
        interface IServerSettings 
        interface IServerInformation 
        interface IDmfFacet 
        interface IAlienRoot 
        interface ISfcDomainLite 
        interface ISfcHasConnection 
    end
public final class Server extends SqlSmoObject implements ISfcSupportsDesignMode, IAlterable, IScriptable, IServerSettings, IServerInformation, IDmfFacet, IAlienRoot, ISfcDomainLite, ISfcHasConnection

Server 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 Server() Initializes a new instance of the Server class.
공용 메서드 Server(String) Initializes a new instance of the Server class with the specified name.
공용 메서드 Server(ServerConnection) Initializes a new instance of the Server class based on the specified connection.

맨 위로 이동

속성

  이름 설명
공용 속성 ActiveDirectory 더 이상 사용되지 않습니다. Gets information about the Active Directory settings for the instance of SQL Server.
공용 속성 AffinityInfo Gets the AffinityInfo object that is associated with an instance of SQL Server.
공용 속성 AuditLevel Gets or sets the AuditLevel property value.
공용 속성 Audits Represents a collection of Audit objects. Each Audit object represents an audit log defined on the instance of SQL Server.
공용 속성 AvailabilityGroups Gets the available groups in the server.
공용 속성 BackupDevices Represents a collection of BackupDevice objects. Each BackupDevice object represents a backup device defined on the instance of SQL Server.
공용 속성 BackupDirectory Gets or sets the BackupDirectory property value.
공용 속성 BrowserServiceAccount Gets the service account that the Browser service runs under on the instance of SQL Server.
공용 속성 BrowserStartMode Gets the start mode for the SQL Server Browser Service running on the instance of SQL Server.
공용 속성 BuildClrVersion Gets the BuildClrVersion property value.
공용 속성 BuildClrVersionString Gets the version string of the CLR that was used while building the instance.
공용 속성 BuildNumber Gets the BuildNumber property value.
공용 속성 ClusterName Gets the name of the cluster.
공용 속성 ClusterQuorumState Gets the state of the cluster quorum.
공용 속성 ClusterQuorumType Gets the type of the cluster quorum.
공용 속성 Collation Gets the Collation property value.
공용 속성 CollationID Gets the CollationID property value.
공용 속성 ComparisonStyle Gets the Windows comparison style of the collation.
공용 속성 ComputerNamePhysicalNetBIOS Gets the NetBIOS name of the local computer on which the instance of SQL Server is currently running.
공용 속성 Configuration Gets the configuration options for the instance of SQL Server.
공용 속성 ConnectionContext Gets the current server connection details for the instance of SQL Server.
공용 속성 Credentials Represents a collection of Credential objects. Each Credential object represents a credential defined on the instance of SQL Server.
공용 속성 CryptographicProviders Gets the list of server cryptographic providers.
공용 속성 Databases Represents a collection of Database objects. Each Database object represents a database defined on the instance of SQL Server.
공용 속성 DefaultFile Gets or sets the DefaultFile property value.
공용 속성 DefaultLog Gets or sets the default log of the server.
공용 속성 DefaultTextMode Gets or sets the Boolean property value that specifies whether the default text mode is set for the instance of SQL Server.
공용 속성 Edition Gets the Edition property value.
공용 속성 Endpoints Represents a collection of Endpoint objects. Each Endpoint object represents an endpoint defined on the instance of SQL Server.
공용 속성 EngineEdition Gets the edition of the engine.
공용 속성 ErrorLogPath Gets the ErrorLogPath property value.
공용 속성 Events Gets the server events that are associated with the instance of SQL Server.
공용 속성 FilestreamLevel Gets the level of FILESTREAM access specified on the instance of SQL Server.
공용 속성 FilestreamShareName Gets the Windows share name where FILESTREAM data is stored on the instance of SQL Server.
공용 속성 FullTextService Gets the Microsoft Search Full-Text service implementation for the instance of SQL Server.
공용 속성 HadrManagerStatus Gets the status of the Hadr manager.
공용 속성 Information Gets information about the instance of SQL Server.
공용 속성 InstallDataDirectory Gets the local Windows directory where the installation data is stored for the instance of SQL Server.
공용 속성 InstallSharedDirectory Gets the remote shared directory where the installation data is stored for the instance of SQL Server.
공용 속성 InstanceName Gets the instance name of the instance of SQL Server.
공용 속성 IsCaseSensitive Gets the value that indicates whether the case is sensitive.
공용 속성 IsClustered Gets the IsClustered property value.
공용 속성 IsFullTextInstalled Gets the Boolean value that specifies whether Full-Text service is installed on the instance of SQL Server.
공용 속성 IsHadrEnabled Gets a value that indicates whether the Hadr is enabled.
공용 속성 IsSingleUser Gets the property value whether the user is single.
공용 속성 JobServer Gets the SQL Server Agent associated with the instance of SQL Server.
공용 속성 Language Gets the language of the server.
공용 속성 Languages Represents a collection of Language objects. Each Language object represents an languages supported by the instance of SQL Server.
공용 속성 LinkedServers Represents a collection of LinkedServer objects. Each LinkedServer object represents a linked server registered on the instance of SQL Server.
공용 속성 LoginMode Gets or sets the ServerLoginMode property value.
공용 속성 Logins Represents a collection of Login objects. Each Login object represents a login defined on the instance of SQL Server.
공용 속성 Mail Gets the Microsoft SQL Mail service associated with the instance of SQL Server.
공용 속성 MailProfile Gets or sets the mail profile of the server.
공용 속성 MasterDBLogPath Get the MasterDBLogPath property value.
공용 속성 MasterDBPath Gets the MasterDBPath property value.
공용 속성 MaxPrecision Gets the MaxPrecision property value.
공용 속성 Name Gets the name of the server, which is the physical machine name.
공용 속성 NamedPipesEnabled Gets the Boolean value that specifies whether Named Pipes provider is enabled for client-server connectivity on the instance of SQL Server.
공용 속성 NetName Gets the NetName property value.
공용 속성 NumberOfLogFiles Gets or sets the NumberOfLogFiles property value.
공용 속성 OleDbProviderSettings Gets the DbProviderSettings property value.
공용 속성 OSVersion Gets the OSVersion property value.
공용 속성 PerfMonMode Gets or sets the PerfMonMode property value.
공용 속성 PhysicalMemory Gets the physical memory used by the server.
공용 속성 PhysicalMemoryUsageInKB Gets an Int64 value that specifies the amount of memory in use by the instance of the Database Engine, in kilobytes.
공용 속성 Platform Gets the server platform.
공용 속성 Processors Gets the Processors property value.
공용 속성 ProcessorUsage Gets an Int32 value that specifies the processor time used by the instance of the Database Engine.
공용 속성 Product Gets the product of the server.
공용 속성 ProductLevel Gets the ProductLevel property value.
공용 속성 Properties Gets a collection of Property objects that represent the object properties. (SqlSmoObject에서 상속됨)
공용 속성 ProxyAccount Gets the proxy account associated with the instance of SQL Server.
공용 속성 ResourceGovernor Gets the resource governor of the server.
공용 속성 ResourceLastUpdateDateTime Gets the last time the resource was last updated.
공용 속성 ResourceVersion Gets the ResourceVersion property.
공용 속성 ResourceVersionString Gets the ResouceVersionString property value.
공용 속성 Roles Represents a collection of ServerRole objects. Each ServerRole object represents a role defined on the instance of SQL Server.
공용 속성 RootDirectory Gets the RootDirectory property value.
공용 속성 ServerAuditSpecifications Represents a collection of ServerAuditSpecification objects. Each ServerAuditSpecification object represents a specific audit specification defined on the instance of SQL Server.
공용 속성 ServerType Gets the server type for the instance of SQL Server.
공용 속성 ServiceAccount Gets the service account under which the instance of SQL Server is running.
공용 속성 ServiceInstanceId Gets the ID value that uniquely identifies the service instance for this instance of SQL Server.
공용 속성 ServiceMasterKey Gets the service master key associated with the instance of SQL Server.
공용 속성 ServiceName Gets the service name for the server.
공용 속성 ServiceStartMode Gets the start mode for the SQL Server service.
공용 속성 Settings Gets modifiable settings for the instance of SQL Server.
공용 속성 SqlCharSet Gets the value that identifies the character set used by the server.
공용 속성 SqlCharSetName Gets the name of the character set used by the server.
공용 속성 SqlDomainGroup Gets the domain group for the instance of SQL Server.
공용 속성 SqlSortOrder Gets the SQL sort order from the collation.
공용 속성 SqlSortOrderName Gets the name of the sort order used by the server.
공용 속성 State Gets the state of the referenced object. (SmoObjectBase에서 상속됨)
공용 속성 Status Gets the current status of the Server.
공용 속성 SystemDataTypes Represents a collection of SystemDataType objects. Each SystemDataType object represents a system data type defined on the instance of SQL Server.
공용 속성 SystemMessages Represents a collection of SystemMessage objects. Each SystemMessage object represents a system message defined on the instance of SQL Server.
공용 속성 TapeLoadWaitTime Gets or sets the TapeLoadWaitTime property value.
공용 속성 TcpEnabled Gets the Boolean value that determines whether TCP/IP protocol is enabled on this instance of SQL Server.
공용 속성 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 Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (SqlSmoObject에서 상속됨)
공용 속성 UserData Gets or sets user-defined data associated with the referenced object. (SmoObjectBase에서 상속됨)
공용 속성 UserDefinedMessages Represents a collection of UserDefinedMessage objects. Each UserDefinedMessage object represents a user-defined message defined on the instance of SQL Server.
공용 속성 UserOptions Gets the user options for the current connection to the instance of SQL Server.
공용 속성 Version Gets the Version property value.
공용 속성 VersionMajor Gets the major version of the server.
공용 속성 VersionMinor Gets the VersionMinor property value.
공용 속성 VersionString Gets the version string of the server.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Alter() Updates any Server object property changes on the instance of SQL Server. 
공용 메서드 Alter(Boolean) Updates any Server object property changes on the instance of SQL Server with the option to override value checking.
공용 메서드 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) 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) 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) 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. 
공용 메서드 CompareUrn Compares two URNS.
공용 메서드 DeleteBackupHistory(DateTime) Deletes the backup history for this instance of SQL Server up until the specified date and time.
공용 메서드 DeleteBackupHistory(Int32) Deletes the backup history for the specified media set.
공용 메서드 DeleteBackupHistory(String) Deletes the backup history for the specified database.
공용 메서드 Deny(ServerPermissionSet, String) Denies the specified set of permissions for the specified grantee on the instance of SQL Server.
공용 메서드 Deny(ServerPermissionSet, array<String[]) Denies the specified set of permissions for the specified grantees on the instance of SQL Server.
공용 메서드 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, 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 instance of SQL Server.
공용 메서드 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) Detaches the specified database from the instance of SQL Server with the option to update statistics before the database is detached.
공용 메서드 DetachedDatabaseInfo Returns information about a detached database file.
공용 메서드 Discover Discovers a list of type Object. (SqlSmoObject에서 상속됨)
공용 메서드 EnumActiveCurrentSessionTraceFlags Gets active session flags as a DataTable.
공용 메서드 EnumActiveGlobalTraceFlags Gets a DataTable that contains active global trace flags.
공용 메서드 EnumAvailableMedia() Enumerates a list of media that is visible to the instance of SQL Server on the local area network.
공용 메서드 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 Enumerates the current state of the Windows cluster members of which the instance is part of.
공용 메서드 EnumClusterSubnets Enumerates a list of cluster subnets.
공용 메서드 EnumCollations Enumerates a list of collations supported by the instance of SQL Server.
공용 메서드 EnumDatabaseMirrorWitnessRoles() Enumerates a list of database mirror witness roles.
공용 메서드 EnumDatabaseMirrorWitnessRoles(String) Enumerates a list of mirror witness roles for the specified database.
공용 메서드 EnumDetachedDatabaseFiles Enumerates a list of detached database files.
공용 메서드 EnumDetachedLogFiles Enumerates a list of detached log files.
공용 메서드 EnumDirectories Enumerates a list of directories relative to the specified path.
공용 메서드 EnumErrorLogs Enumerates a list of SQL Server error log files.
공용 메서드 EnumLocks() Enumerates a list of current locks held on the instance of SQL Server.
공용 메서드 EnumLocks(Int32) Enumerates a list of current locks held by the specified process on the instance of SQL Server.
공용 메서드 EnumMembers Enumerates a list of members of server roles and database roles on the instance of SQL Server.
공용 메서드 EnumObjectPermissions() Enumerates a list of object permissions for the instance of SQL Server.
공용 메서드 EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the application instance of SQL Server.
공용 메서드 EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the instance of SQL Server.
공용 메서드 EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the instance of SQL Server.
공용 메서드 EnumPerformanceCounters() Enumerates a list of performance counters that are supported by the instance of SQL Server.
공용 메서드 EnumPerformanceCounters(String) Enumerates a list of performance counters that are supported by the instance of SQL Server for a specified object.
공용 메서드 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) 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() Enumerates a list of processes running on the instance of SQL Server.
공용 메서드 EnumProcesses(Boolean) Enumerates a list of processes running on the instance of SQL Server with the option to exclude system processes.
공용 메서드 EnumProcesses(Int32) Enumerates a list of information about the specified process.
공용 메서드 EnumProcesses(String) Enumerates a list of processes running on the instance of SQL Server that are associated with the specified login.
공용 메서드 EnumServerAttributes Enumerates a list of server attributes for the instance of SQL Server.
공용 메서드 EnumServerPermissions() Enumerates a list of server permissions for the instance of SQL Server.
공용 메서드 EnumServerPermissions(String) Enumerates a list of server permissions for a specified grantee on the instance of SQL Server.
공용 메서드 EnumServerPermissions(ServerPermissionSet) Enumerates a list of server permissions for a specified permission on the instance of SQL Server.
공용 메서드 EnumServerPermissions(String, ServerPermissionSet) Enumerates a list of server permissions for a specified grantee and a specified permission on the instance of SQL Server.
공용 메서드 EnumStartupProcedures Enumerates a list of startup procedures.
공용 메서드 EnumWindowsDomainGroups() Enumerates a list of Microsoft Windows group accounts defined on a domain.
공용 메서드 EnumWindowsDomainGroups(String) Enumerates a list of Microsoft Windows group accounts defined for the specified domain.
공용 메서드 EnumWindowsGroupInfo() Enumerates a list of information about all Microsoft Windows groups that have explicitly granted access to the instance of SQL Server.
공용 메서드 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) 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() Enumerates a list of information about all Microsoft Windows users that have explicitly granted access to SQL Server.
공용 메서드 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) 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.
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 FormatSqlVariant Formats an object as SqlVariant type. (SqlSmoObject에서 상속됨)
공용 메서드 GetActiveDBConnectionCount Returns the number of active connections for the specified database.
보호된 메서드 GetContextDB Gets the context database that is associated with this object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetDBName Gets the database name that is associated with the object. (SqlSmoObject에서 상속됨)
공용 메서드 GetDefaultInitFields Returns the property types that are initialized by default when the specified object is initialized.
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetPropertyNames Returns the names of the initialized properties for the specified object type
보호된 메서드 GetPropValue Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetPropValueOptional Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetServerObject Gets the server of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
공용 메서드 GetSmoObject Gets a SqlSmoObject that is specified by a URN.
공용 메서드 GetStringComparer Returns the comparer object corresponding to the collation string passed.
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 Grant(ServerPermissionSet, String) Grants the specified set of permissions to the specified grantee on the instance of SQL Server.
공용 메서드 Grant(ServerPermissionSet, array<String[]) Grants the specified set of permissions to the specified grantees on the instance of SQL Server.
공용 메서드 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, array<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) 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, 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 instance of SQL Server under an assumed role.
공용 메서드 Initialize() Initializes the object and forces the properties be loaded. (SqlSmoObject에서 상속됨)
공용 메서드 Initialize(Boolean) Initializes the object and forces the properties be loaded. (SqlSmoObject에서 상속됨)
공용 메서드 IsDetachedPrimaryFile Verifies whether the specified file is a primary (.mdf) database file.
보호된 메서드 IsObjectInitialized Verifies whether the object has been initialized. (SqlSmoObject에서 상속됨)
보호된 메서드 IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (SqlSmoObject에서 상속됨)
공용 메서드 IsWindowsGroupMember Verifies whether the specified Microsoft Windows user account is a member of the specified Windows group.
공용 메서드 JoinAvailabilityGroup Indicates a specified object to join the availability group.
공용 메서드 KillAllProcesses Stops the all processes on the specified database.
공용 메서드 KillDatabase Deletes the specified database and drops any active connection.
공용 메서드 KillProcess Stops the specified process.
공용 메서드 PingSqlServerVersion(String) Gets the version number of the instance of SQL Server.
공용 메서드 PingSqlServerVersion(String, String, String) Get the version number of the specified instance of SQL Server using the specified login and password to gain access.
공용 메서드 ReadErrorLog() Enumerates the SQL Server error log.
공용 메서드 ReadErrorLog(Int32) Enumerates the specified SQL Server error log.
공용 메서드 Refresh Refreshes the objects and properties on the Server object. (SqlSmoObject.Refresh()을(를) 재정의함)
공용 메서드 Revoke(ServerPermissionSet, String) Revokes a previously granted set of permissions from a list of grantees on the instance of SQL Server.
공용 메서드 Revoke(ServerPermissionSet, array<String[]) Revokes a previously granted set of permissions from a list of grantees on the instance of SQL Server.
공용 메서드 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, array<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) 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, array<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() Generates a Transact-SQL script that can be used to re-create the server.
공용 메서드 Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the server by using the specified scripting options.
공용 메서드 SetDefaultInitFields(Boolean) Specifies that all properties are fetched when objects are instantiated.
공용 메서드 SetDefaultInitFields(Type, Boolean) Specifies all the properties are fetched when objects of the specified type are instantiated.
공용 메서드 SetDefaultInitFields(Type, StringCollection) Specifies the properties that are fetched when objects of the specified type are instantiated.
공용 메서드 SetDefaultInitFields(Type, array<String[]) Specifies the properties that are fetched when objects of the specified type are instantiated.
보호된 메서드 SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (SqlSmoObject에서 상속됨)
공용 메서드 SetTraceFlag Sets a trace flag.
공용 메서드 ToString Returns a String that represents the referenced object. (SqlSmoObject에서 상속됨)
공용 메서드 Validate Validates the state of an object. (SmoObjectBase에서 상속됨)

맨 위로 이동

이벤트

  이름 설명
공용 이벤트 PropertyChanged Represents the event that occurs when a property is changed. (SqlSmoObject에서 상속됨)
공용 이벤트 PropertyMetadataChanged Represents the event that occurs when property metadata changes. (SqlSmoObject에서 상속됨)

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 IAlienObject.Discover Discovers any dependencies. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetDomainRoot Returns the root of the domain. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetParent Gets the parent of this object. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetPropertyType Gets the type of the specified property. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetPropertyValue Gets the value of the specified property. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.SetPropertyValue Sets the property value. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienRoot.DesignModeInitialize 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. 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 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Gets a DataTable object containing the results from a URN.
명시적 인터페이스 구현전용 메서드 IAlienRoot.SfcHelper_GetSmoObject 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Gets the Object that represents the object identified by a specified URN.
명시적 인터페이스 구현전용 메서드 IAlienRoot.SfcHelper_GetSmoObjectQuery 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Gets a List of String values.
명시적 인터페이스 구현전용 속성 ISfcDomainLite.DomainInstanceName Gets the instance name of the domain.
명시적 인터페이스 구현전용 속성 ISfcDomainLite.DomainName Gets the domain name.
명시적 인터페이스 구현전용 메서드 ISfcDomainLite.GetLogicalVersion 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Gets an Int32 value that indicates whether changes have been made to the Server object.
명시적 인터페이스 구현전용 속성 ISfcHasConnection.ConnectionContext Gets the context for the connection represented by the current Server object.
명시적 인터페이스 구현전용 메서드 ISfcHasConnection.GetConnection() 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Gets a connection to an Sfc backing store.
명시적 인터페이스 구현전용 메서드 ISfcHasConnection.GetConnection(SfcObjectQueryMode) 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Gets a connection to an Sfc backing store that supports the requested query mode.
명시적 인터페이스 구현전용 메서드 ISfcHasConnection.SetConnection 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. Sets a connection to an Sfc backing store.
명시적 인터페이스 구현전용 메서드 ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 속성 ISfcSupportsDesignMode.IsDesignMode Gets a Boolean value that specifies whether the Server supports design mode.

맨 위로 이동

주의

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

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

SQL Server 인스턴스에 연결

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

SQL Server 인스턴스에 연결

SQL Server 인스턴스에서 연결 끊기