Server Members
The Server object represents an instance of SQL Server.
The following tables list the members exposed by the Server type.
Public Constructors
Name | Description | |
---|---|---|
Server | Overloaded. Initializes a new instance of the Server class. |
Top
Public Properties
(see also Protected Properties )
Name | Description | |
---|---|---|
![]() |
ActiveDirectory | Gets information about the Active Directory settings for the 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. |
![]() |
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 BuildClrVersionString property value. |
![]() |
BuildNumber | Gets the BuildNumber property value. |
![]() |
Collation | Gets the Collation property value. |
![]() |
CollationID | Gets the CollationID property value. |
![]() |
ComparisonStyle | Gets the ComparisonStype property value. |
![]() |
ComputerNamePhysicalNetBIOS | Gets the ComputerNamePhysicalNetBIOS property value. |
![]() |
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 CryptographicProviders property value. |
![]() |
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 DefaultLog property value. |
![]() |
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 EngineEdition property value. |
![]() |
ErrorLogPath | Gets the ErrorLogPath property value. |
![]() |
Events | Gets the server events that are associated with the instance of SQL Server. |
![]() |
FilestreamLevel | |
![]() |
FilestreamShareName | |
![]() |
FullTextService | Gets the Microsoft Search Full-Text service implementation for the instance of SQL Server. |
![]() |
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 IsCaseSensitive property value. |
![]() |
IsClustered | Gets the IsClustered property value. |
![]() |
IsFullTextInstalled | |
![]() |
IsSingleUser | Gets the IsSingleUser property value. |
![]() |
JobServer | Gets the SQL Server Agent associated with the instance of SQL Server. |
![]() |
Language | Gets the Language property value. |
![]() |
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. |
![]() |
Gets the Microsoft SQL Mail service associated with the instance of SQL Server. | |
![]() |
MailProfile | Gets or sets the MailProfile property value. |
![]() |
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 PhysicalMemory property value. |
![]() |
Platform | Gets the Platform property value. |
![]() |
Processors | Gets the Processors property value. |
![]() |
Product | Gets the Product property value. |
![]() |
ProductLevel | Gets the ProductLevel property value. |
![]() |
Properties | Gets a collection of Property objects that represent the object properties. (inherited from SqlSmoObject) |
![]() |
ProxyAccount | Gets the proxy account associated with the instance of SQL Server. |
![]() |
ResourceGovernor | Gets the ResourceGovernor property value. |
![]() |
ResourceLastUpdateDateTime | Gets the ResourceLastUpdateDateTime property value. |
![]() |
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 | |
![]() |
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 | |
![]() |
ServiceStartMode | |
![]() |
Settings | Gets modifiable settings for the instance of SQL Server. |
![]() |
SqlCharSet | Gets the SqlCharSet property value. |
![]() |
SqlCharSetName | Gets the SqlCharSetName property value. |
![]() |
SqlDomainGroup | |
![]() |
SqlSortOrder | Gets the SqlSortOrder property value. |
![]() |
SqlSortOrderName | Gets the SqlSortOrderName property value. |
![]() |
State | Gets the state of the referenced object. (inherited from SmoObjectBase) |
![]() |
Status | |
![]() |
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 | |
![]() |
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. (inherited from SqlSmoObject) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (inherited from 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 VersionMajor property value. |
![]() |
VersionMinor | Gets the VersionMinor property value. |
![]() |
VersionString | Gets the VersionString property value. |
Top
Protected Properties
Name | Description | |
---|---|---|
![]() |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (inherited from SqlSmoObject) |
![]() |
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) |
![]() |
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) |
![]() |
ScalarResult | Gets the scalar result for the referenced object. (inherited from SqlSmoObject) |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
![]() |
Alter | Overloaded. |
![]() |
AttachDatabase | Overloaded. Attaches an existing database that is made up of one or more files to the instance of SQL Server. |
![]() |
CompareUrn | Compares two URNS. |
![]() |
DeleteBackupHistory | Overloaded. Deletes the backup history for this instance of SQL Server up until the specified date and time. |
![]() |
Deny | Overloaded. Denies the specified set of permissions for the specified grantees on the instance of SQL Server. |
![]() |
DetachDatabase | Overloaded. Detaches a database from the instance of SQL Server. |
![]() |
DetachedDatabaseInfo | Returns information about a detached database file. |
![]() |
Discover | (inherited from SqlSmoObject ) |
![]() |
EnumActiveCurrentSessionTraceFlags | Gets active session flags as a DataTable. |
![]() |
EnumActiveGlobalTraceFlags | Gets a DataTable that contains active global trace flags. |
![]() |
EnumAvailableMedia | Overloaded. Enumerates a list of media that are visible to the instance of SQL Server on the local area network. |
![]() |
EnumCollations | Enumerates a list of collations supported by the instance of SQL Server. |
![]() |
EnumDatabaseMirrorWitnessRoles | Overloaded. Enumerates a list of database mirror witness roles. |
![]() |
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 | Overloaded. Enumerates a list of current locks held 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 | Overloaded. Enumerates a list of permissions for objects on the instance of SQL Server. |
![]() |
EnumPerformanceCounters | Overloaded. Enumerates a list of performance counters that are supported by the instance of SQL Server. |
![]() |
EnumProcesses | Overloaded. Enumerates a list of processes running on the instance of SQL Server. |
![]() |
EnumServerAttributes | Enumerates a list of server attributes for the instance of SQL Server. |
![]() |
EnumServerPermissions | Overloaded. Enumerates a list of server permissions for the instance of SQL Server. |
![]() |
EnumStartupProcedures | Enumerates a list of startup procedures. |
![]() |
EnumWindowsDomainGroups | Overloaded. Enumerates a list of Microsoft Windows group accounts defined on a domain. |
![]() |
EnumWindowsGroupInfo | Overloaded. Enumerates a list of information about all Microsoft Windows groups that have explicitly granted access to the instance of SQL Server. |
![]() |
EnumWindowsUserInfo | Overloaded. Enumerates a list of information about all Windows users that have explicitly granted access to SQL Server. |
![]() |
Equals | Overloaded. (inherited from Object ) |
![]() |
GetActiveDBConnectionCount | Returns the number of active connections for the specified database. |
![]() ![]() |
GetChildType | (inherited from SqlSmoObject ) |
![]() |
GetDefaultInitFields | Returns the property types that are initialized by default when the specified object is initialized. |
![]() |
GetHashCode | (inherited from Object ) |
![]() |
GetPropertyNames | Returns the names of the initialized properties for the specified object type |
![]() |
GetSmoObject | Gets a SqlSmoObject that is specified by a URN. |
![]() |
GetStringComparer | Gets an IComparer interface. |
![]() |
GetType | (inherited from Object ) |
![]() ![]() |
GetTypeFromUrnSkeleton | (inherited from SqlSmoObject ) |
![]() |
Grant | Overloaded. Grants the specified set of permissions to the specified grantees on the instance of SQL Server. |
![]() |
Initialize | Overloaded. Initializes the object and forces the properties be loaded. (inherited from SqlSmoObject) |
![]() |
IsDetachedPrimaryFile | Verifies whether the specified file is a primary (.mdf) database file. |
![]() |
IsWindowsGroupMember | Verifies whether the specified Microsoft Windows user account is a member of the specified Windows 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 | Overloaded. Gets the version number of the instance of SQL Server. |
![]() |
ReadErrorLog | Overloaded. Enumerates the SQL Server error log. |
![]() ![]() |
ReferenceEquals | (inherited from Object ) |
![]() |
Refresh | Overridden. Refreshes the objects and properties on the Server object. |
![]() |
Revoke | Overloaded. Revokes a previously granted set of permissions from a grantee or grantees on the instance of SQL Server. |
![]() |
Script | Overloaded. |
![]() |
SetDefaultInitFields | Overloaded. Specifies whether all the properties are fetched when objects are instantiated. |
![]() |
SetTraceFlag | Sets a trace flag. |
![]() |
ToString | Returns a String that represents the referenced object. (inherited from SqlSmoObject) |
![]() |
Validate | (inherited from SmoObjectBase ) |
Top
Protected Methods
Name | Description | |
---|---|---|
![]() |
AddDatabaseContext | (inherited from SqlSmoObject ) |
![]() |
AlterImpl | (inherited from SqlSmoObject ) |
![]() |
AlterImplFinish | (inherited from SqlSmoObject ) |
![]() |
AlterImplInit | (inherited from SqlSmoObject ) |
![]() |
AlterImplWorker | (inherited from SqlSmoObject ) |
![]() |
BindDefaultImpl | (inherited from SqlSmoObject ) |
![]() |
BindRuleImpl | (inherited from SqlSmoObject ) |
![]() |
CheckCollation | (inherited from SqlSmoObject ) |
![]() |
CheckObjectState | Overloaded. Validates the state of the referenced object. (inherited from SqlSmoObject) |
![]() |
CheckObjectStateImpl | (inherited from SqlSmoObject ) |
![]() |
CheckVersion100 | (inherited from SqlSmoObject ) |
![]() |
CheckVersion80 | Checks the validity of the object on SQL Server 2000. (inherited from SqlSmoObject) |
![]() |
CheckVersion80SP3 | Checks the validity of the object on SQL Server 2000 SP3. (inherited from SqlSmoObject) |
![]() |
CheckVersion90 | Check the validity of the object on SQL Server 2005. (inherited from SqlSmoObject) |
![]() |
CheckVersionBelow90 | (inherited from SqlSmoObject ) |
![]() |
CleanObject | (inherited from SqlSmoObject ) |
![]() |
CreateImpl | (inherited from SqlSmoObject ) |
![]() |
CreateImplFinish | (inherited from SqlSmoObject ) |
![]() |
CreateImplInit | (inherited from SqlSmoObject ) |
![]() |
DropImpl | (inherited from SqlSmoObject ) |
![]() |
DropImplWorker | (inherited from SqlSmoObject ) |
![]() |
EnumScriptImpl | (inherited from SqlSmoObject ) |
![]() |
EnumScriptImplWorker | (inherited from SqlSmoObject ) |
![]() |
Finalize | (inherited from Object ) |
![]() |
FormatSqlVariant | (inherited from SqlSmoObject ) |
![]() |
GenerateDataSpaceFileStreamScript | (inherited from SqlSmoObject ) |
![]() |
GenerateDataSpaceScript | (inherited from SqlSmoObject ) |
![]() |
GetBindDefaultScript | (inherited from SqlSmoObject ) |
![]() |
GetBindRuleScript | (inherited from SqlSmoObject ) |
![]() |
GetBoolParameter | Overloaded. (inherited from SqlSmoObject ) |
![]() |
GetDateTimeParameter | (inherited from SqlSmoObject ) |
![]() |
GetDateTimeParameterAsInt | (inherited from SqlSmoObject ) |
![]() |
GetDBName | Gets the database name that is associated with the object. (inherited from SqlSmoObject) |
![]() |
GetEnumParameter | (inherited from SqlSmoObject ) |
![]() |
GetFragOptionString | (inherited from SqlSmoObject ) |
![]() |
GetGuidParameter | (inherited from SqlSmoObject ) |
![]() |
GetParameter | Overloaded. (inherited from SqlSmoObject ) |
![]() |
GetPropValue | (inherited from SqlSmoObject ) |
![]() |
GetPropValueOptional | (inherited from SqlSmoObject ) |
![]() |
GetPropValueOptionalAllowNull | (inherited from SqlSmoObject ) |
![]() |
GetRealValue | (inherited from SqlSmoObject ) |
![]() |
GetScriptingOptionsForCreate | (inherited from SqlSmoObject ) |
![]() |
GetServerName | Gets the name of the instance of SQL Server with which the object is associated. (inherited from SqlSmoObject) |
![]() |
GetServerObject | (inherited from SqlSmoObject ) |
![]() |
GetSqlServerVersionName | Gets the version name of the instance of SQL Server with which the object is associated. (inherited from SqlSmoObject) |
![]() |
GetStringParameter | Overloaded. (inherited from SqlSmoObject ) |
![]() |
GetTimeSpanParameterAsInt | (inherited from SqlSmoObject ) |
![]() |
GetUrnRecursive | Overloaded. (inherited from SqlSmoObject ) |
![]() |
ImplInitialize | (inherited from SqlSmoObject ) |
![]() ![]() |
IsCollectionDirty | (inherited from SqlSmoObject ) |
![]() |
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 | Verifies whether the object has been initialized. (inherited from SqlSmoObject) |
![]() |
IsObjectInSpace | Verifies whether the object is isolated or connected to the instance of SQL Server. (inherited from SqlSmoObject) |
![]() |
IsVersion80SP3 | (inherited from SqlSmoObject ) |
![]() |
MarkDropped | (inherited from SqlSmoObject ) |
![]() |
MarkForDropImpl | (inherited from SqlSmoObject ) |
![]() |
MemberwiseClone | (inherited from Object ) |
![]() |
PostAlter | (inherited from SqlSmoObject ) |
![]() |
PostCreate | (inherited from SqlSmoObject ) |
![]() |
PostDrop | (inherited from SqlSmoObject ) |
![]() |
ScriptAlter | (inherited from SqlSmoObject ) |
![]() |
ScriptCreate | (inherited from SqlSmoObject ) |
![]() |
ScriptDdl | (inherited from SqlSmoObject ) |
![]() |
ScriptDrop | (inherited from SqlSmoObject ) |
![]() |
ScriptImpl | Overloaded. (inherited from SqlSmoObject ) |
![]() |
ScriptImplWorker | (inherited from SqlSmoObject ) |
![]() |
SetParentImpl | (inherited from SqlSmoObject ) |
![]() |
TouchImpl | (inherited from SqlSmoObject ) |
![]() ![]() |
Trace | (inherited from SqlSmoObject ) |
![]() |
UnbindDefaultImpl | (inherited from SqlSmoObject ) |
![]() |
UnbindRuleImpl | (inherited from SqlSmoObject ) |
![]() ![]() |
UpdateCollectionState2 | (inherited from SqlSmoObject ) |
Top
Public Events
Name | Description | |
---|---|---|
![]() |
PropertyChanged | (inherited from SqlSmoObject ) |
![]() |
PropertyMetadataChanged | (inherited from SqlSmoObject ) |
Top
Explicit Interface Implementations
Top
See Also