Login-Klasse
The Login object represents a SQL Server login account that has been granted access to the instance of SQL Server through Windows Authentication or SQL Server Authentication.
Vererbungshierarchie
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo..::..Login
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Login _
Inherits ScriptNameObjectBase _
Implements ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, _
IDroppable, IRenamable, IScriptable, ILoginOptions, IDmfFacet
'Usage
Dim instance As Login
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class Login : ScriptNameObjectBase,
ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, IDroppable,
IRenamable, IScriptable, ILoginOptions, IDmfFacet
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class Login sealed : public ScriptNameObjectBase,
ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, IDroppable,
IRenamable, IScriptable, ILoginOptions, IDmfFacet
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute>]
type Login =
class
inherit ScriptNameObjectBase
interface ISfcSupportsDesignMode
interface IObjectPermission
interface ICreatable
interface IAlterable
interface IDroppable
interface IRenamable
interface IScriptable
interface ILoginOptions
interface IDmfFacet
end
public final class Login extends ScriptNameObjectBase implements ISfcSupportsDesignMode, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, IScriptable, ILoginOptions, IDmfFacet
Der Login-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
Login() () () () | Initializes a new instance of the Login class. | |
Login(Server, String) | Initializes a new instance of the Login class on the specified instance of SQL Server and with the specified name. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
AsymmetricKey | Gets the asymmetric key associated with the login. | |
Certificate | Gets the certificate associated with the login. | |
CreateDate | Gets the date and time when the login account was created. | |
Credential | Gets the credential associated with the login. | |
DateLastModified | Gets the date and time when the login account was last modified. | |
DefaultDatabase | Gets or sets the default database that the login account is assigned to after logging on to the instance of SQL Server. | |
DenyWindowsLogin | Gets or sets the Boolean property value that specifies whether the login account has been granted or denied the ability to log on to the instance of SQL Server. | |
Events | Gets the events associated with the login account. | |
ExecuteForScalar | Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt auf die ExecuteForScalar-Option festgelegt ist, oder legt ihn fest. (Geerbt von SqlSmoObject.) | |
HasAccess | Gets or sets the Boolean property value that specifies whether the SQL Server login account has access to the instance of SQL Server. | |
ID | Gets the ID value that uniquely identifies the login account. | |
IsDisabled | Gets or sets the Boolean property value that specifies whether the SQL Server login account is disabled. | |
IsLocked | Gets the Boolean property value that specifies whether the login account has been locked out of the instance of SQL Server. | |
IsPasswordExpired | Gets the Boolean property value that specifies whether the password for the SQL Server login account has expired. | |
IsSystemObject | Gets or sets the Boolean property value that specifies whether the SQL Server login account is a system object. | |
IsTouched | Ruft den Boolean-Eigenschaftswert ab, der angibt, ob die Objekteigenschaften aktualisiert, aber noch nicht permanent auf dem Server gespeichert wurden. (Geerbt von SqlSmoObject.) | |
Language | Gets or sets the language required by the referenced login account for date formats and system messages. | |
LanguageAlias | Gets the alias name used for the language that is required by the SQL Server login account. | |
LoginType | Gets or sets the type of SQL Server login account. | |
MustChangePassword | Gets the Boolean property value that specifies whether the login account password must be changed when the user next logs on to the instance of SQL Server. | |
Name | Gets or sets the name of the login. (Überschreibt NamedSmoObject. . :: . .Name.) | |
ObjectInSpace | Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt isoliert vorhanden bzw. direkt oder indirekt mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.) | |
Parent | Gets the Server object that is the parent of the Login object. | |
PasswordExpirationEnabled | Gets the Boolean property value that specifies whether the password for the login account will automatically expire. | |
PasswordPolicyEnforced | Gets the Boolean property value that specifies whether password policy is enforced for this login account. | |
Properties | Ruft eine Auflistung von Property-Objekten ab, die die Objekteigenschaften darstellen. (Geerbt von SqlSmoObject.) | |
ScalarResult | Ruft das skalare Ergebnis für das Objekt ab, auf das verwiesen wird. (Geerbt von SqlSmoObject.) | |
Sid | Gets or sets the security identifier (SID) for the login account. | |
State | Gets the state of the referenced object. (Geerbt von SmoObjectBase.) | |
Urn | Ruft den Wert der URN (Uniform Resource Name)-Adresse ab, durch den das Objekt eindeutig identifiziert wird. (Geerbt von SqlSmoObject.) | |
UserData | Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.) | |
WindowsLoginAccessType | Gets the type of Windows logon access. |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
AddCredential | Adds a login credential. | |
AddDatabaseContext(StringCollection) | Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext hinzu. (Geerbt von SqlSmoObject.) | |
AddDatabaseContext(StringCollection, ScriptingOptions) | Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext gemäß den angegebenen Skriptoptionen hinzu. (Geerbt von SqlSmoObject.) | |
AddToRole | Adds the login account to a SQL Server role. | |
Alter | Updates any Login object property changes on the login account on the instance of SQL Server. | |
AlterImpl | Aktiviert das Änderungsereignis des Objekts. (Geerbt von SqlSmoObject.) | |
AlterImplFinish | Die Methode, die nach Beendigung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.) | |
AlterImplInit | Die Methode, die bei der Initialisierung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.) | |
AlterImplWorker | Ruft die ALTER-Methoden auf. (Geerbt von SqlSmoObject.) | |
AppendCommaText | Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.) | |
AppendWithCommaText | Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.) | |
AppendWithOption | Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Geerbt von ScriptNameObjectBase.) | |
AutoGenerateName | Generates a name based on the object Guid. (Geerbt von ScriptNameObjectBase.) | |
BindDefaultImpl | Bindet die von den Parametern identifizierten Standardelemente. (Geerbt von SqlSmoObject.) | |
BindRuleImpl | Bindet das Regelschema an die Regel und die Spalten, die von den Parametern identifiziert werden. (Geerbt von SqlSmoObject.) | |
ChangePassword(String) | Changes the password for the login account. | |
ChangePassword(String, String) | Changes the password for the login account. | |
ChangePassword(String, Boolean, Boolean) | Changes the password for the login account. | |
CheckCollation | Überprüft die Reihenfolge der Skriptoptionen anhand der vom collationName-Parameter identifizierten Sortierungsmethode. (Geerbt von SqlSmoObject.) | |
CheckObjectDirty | Checks whether object has been modified and not persisted. (Geerbt von ScriptNameObjectBase.) | |
CheckObjectState() () () () | Überprüft den Status des Objekts, auf das verwiesen wird. (Geerbt von SqlSmoObject.) | |
CheckObjectState(Boolean) | Überprüft den Status des Objekts, auf das verwiesen wird. Optional kann angegeben werden, dass eine Ausnahme ausgelöst wird, wenn das Objekt noch nicht erstellt wurde. (Geerbt von SqlSmoObject.) | |
CheckObjectStateImpl | Überprüft den Zustand von SqlSmoObject. (Geerbt von SqlSmoObject.) | |
CheckTextCorectness | Checks text for correctness against the parameters. (Geerbt von ScriptNameObjectBase.) | |
CheckTextModeSupport | Checks mode of support. (Geerbt von ScriptNameObjectBase.) | |
CheckVersion100 | Überprüft, ob die SQL Server-Version SQL Server 2008 ist. (Geerbt von SqlSmoObject.) | |
CheckVersion80 | Überprüft die Gültigkeit des Objekts für SQL Server 2000. (Geerbt von SqlSmoObject.) | |
CheckVersion80SP3 | Überprüft die Gültigkeit des Objekts für SQL Server 2000 SP3. (Geerbt von SqlSmoObject.) | |
CheckVersion90 | Überprüft die Gültigkeit des Objekts für SQL Server 2005. (Geerbt von SqlSmoObject.) | |
CheckVersionBelow90 | Überprüft, ob die SQL Server-Version älter als SQL Server 2005 ist. (Geerbt von SqlSmoObject.) | |
CleanObject | Cleans the referenced object. (Geerbt von ScriptNameObjectBase.) | |
Create() () () () | Creates a login account on the instance of SQL Server as defined by the Login object. | |
Create(SecureString) | Creates a login account on the instance of SQL Server as defined by the Login object. | |
Create(String) | Creates a login account on the instance of SQL Server as defined by the Login object. | |
Create(SecureString, LoginCreateOptions) | Creates a login account on the instance of SQL Server as defined by the Login object. | |
Create(String, LoginCreateOptions) | Creates a login account on the instance of SQL Server as defined by the Login object. | |
CreateImpl | Erstellt ein Objekt mit Skriptoptionen. (Geerbt von SqlSmoObject.) | |
CreateImplFinish | Die Methode, die nach Beendigung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.) | |
CreateImplInit | Die Methode, die bei Initialisierung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.) | |
Deny(ObjectPermissionSet, String) | Denies the specified set of permissions for the specified grantee on the login account. | |
Deny(ObjectPermissionSet, array<String> [] () [] []) | Denies the specified set of permissions for the specified grantees on the logon. | |
Deny(ObjectPermissionSet, String, Boolean) | Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the logon. | |
Deny(ObjectPermissionSet, 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 logon. | |
Disable | Disables the login account. | |
Discover | Ermittelt eine Liste vom Typ Object. (Geerbt von SqlSmoObject.) | |
Drop | Removes the login account from the instance of SQL Server. | |
DropCredential | Drops a login credential. | |
DropImpl | Löscht SqlSmoObject. (Geerbt von SqlSmoObject.) | |
DropImplWorker | Ruft die DROP-Methoden auf. (Geerbt von SqlSmoObject.) | |
Enable | Enables the login account. | |
EnumAgentProxyAccounts | Enumerates a list of agent proxy accounts in which the login account is participating. | |
EnumCredentials | Returns a string collection of credentials associated with a login. | |
EnumDatabaseMappings | Enumerates a list of login account mappings to databases and database users. | |
EnumObjectPermissions() () () () | Enumerates a list of object permissions for the login account. | |
EnumObjectPermissions(String) | Enumerates a list of object permissions for a specified grantee on the login account. | |
EnumObjectPermissions(ObjectPermissionSet) | Enumerates a list of object permissions for a specified permission on the login account. | |
EnumObjectPermissions(String, ObjectPermissionSet) | Enumerates a list of object permissions for a specified grantee and a specified permission on the login account. | |
EnumScriptImpl | Listet die vom so-Parameter angegebenen Skripts auf. (Geerbt von SqlSmoObject.) | |
EnumScriptImplWorker | Ruft die Methoden auf, die die vom so-Parameter angegebenen Skripts auflisten. (Geerbt von SqlSmoObject.) | |
EnumScriptImplWorkerSOChanged | Gibt eine IEnumerable-Zeichenfolge zurück, die die Skriptoptionen für ein Objekt beschreibt. (Geerbt von SqlSmoObject.) | |
Equals | (Geerbt von Object.) | |
ExecuteNonQuery | (Geerbt von SqlSmoObject.) | |
Finalize | (Geerbt von Object.) | |
ForceTextModeOnTextBody | Enforces text mode on the text body. (Geerbt von ScriptNameObjectBase.) | |
FormatSqlVariant | Formatiert ein Objekt als SqlVariant-Typ. (Geerbt von SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript | Generiert ein Skript zum Erstellen der Datendatei. (Geerbt von SqlSmoObject.) | |
GenerateDataSpaceScript | Generiert ein Skript zum Zuordnen von Speicherplatz in der Datendatei. (Geerbt von SqlSmoObject.) | |
GetBindDefaultScript | Ruft das Skript ab, durch das die vom defSchema-Parameter und defName-Parameter angegebenen Standardwerte gebunden werden. (Geerbt von SqlSmoObject.) | |
GetBindRuleScript | Ruft das Skript ab, das die Bindungsregeln angibt. (Geerbt von SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Weist einen booleschen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Weist eine boolesche Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetBraketNameForText | Gets the bracket name. (Geerbt von ScriptNameObjectBase.) | |
GetDatabaseUser | Gets the name of the user that the login account is mapped to in a specified database. | |
GetDateTimeParameter | Weist die datetime-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetDateTimeParameterAsInt | Weist die datetime-Eigenschaft von SqlSmoObject als ganzzahligen Wert zu, wenn die datetime-Eigenschaft nicht NULL ist. (Geerbt von SqlSmoObject.) | |
GetDBName | Ruft den Datenbanknamen ab, der dem Objekt zugeordnet ist. (Geerbt von SqlSmoObject.) | |
GetEnumParameter | Weist die Enumerationseigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetFragOptionString | Ruft ein FragmentationOption-Objekt als Zeichenfolgenwert ab. (Geerbt von SqlSmoObject.) | |
GetGuidParameter | Weist eine Guid-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetHashCode | (Geerbt von Object.) | |
GetIsSystemNamed | Gets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.) | |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (Geerbt von ScriptNameObjectBase.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetPropValue | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetPropValueOptional | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetPropValueOptionalAllowNull | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetRealValue | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetScriptIncludeExists | Gets the script including the test for existence of type being scripted. (Geerbt von ScriptNameObjectBase.) | |
GetScriptingOptionsForCreate | Ruft ScriptingOptions für das SqlSmoObject-Objekt ab. (Geerbt von SqlSmoObject.) | |
GetServerName | Ruft den Namen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.) | |
GetServerObject | Ruft den Server des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetSqlServerVersionName | Ruft den Versionsnamen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetTextBody() () () () | Returns the text body. (Geerbt von ScriptNameObjectBase.) | |
GetTextBody(Boolean) | Returns the text body. (Geerbt von ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) | Gets the text for scripting. (Geerbt von ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) | Gets the text of script object. (Geerbt von ScriptNameObjectBase.) | |
GetTextHeader | Returns the text header. (Geerbt von ScriptNameObjectBase.) | |
GetTextMode | Determines whether the script name is using text mode. (Geerbt von ScriptNameObjectBase.) | |
GetTextProperty(String) | Gets the property as text. (Geerbt von ScriptNameObjectBase.) | |
GetTextProperty(String, ScriptingOptions) | Gets the property as text. (Geerbt von ScriptNameObjectBase.) | |
GetTimeSpanParameterAsInt | Weist einen Zeitraumparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetType | (Geerbt von Object.) | |
GetUrnRecursive(StringBuilder) | Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
Grant(ObjectPermissionSet, String) | Grants the specified set of permissions to the specified grantee on the login account. | |
Grant(ObjectPermissionSet, array<String> [] () [] []) | Grants the specified set of permissions to the specified grantees on the login account. | |
Grant(ObjectPermissionSet, String, Boolean) | Grants access to the specified permission to the grantee and the ability to grant access to other users on the login account. | |
Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) | Grants access to the specified permission to the grantees and the ability to grant access to other users on the login account. | |
Grant(ObjectPermissionSet, String, Boolean, String) | Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the login account under an assumed role. | |
Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) | Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the logon under an assumed role. | |
ImplInitialize | Initialisiert die Felder des SqlSmoObject-Objekts. (Geerbt von SqlSmoObject.) | |
Initialize() () () () | Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.) | |
Initialize(Boolean) | Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.) | |
IsMember | Returns a Boolean value that specifies whether the login account is a member of a specified role. | |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (Geerbt von ScriptNameObjectBase.) | |
IsObjectInitialized | Überprüft, ob das Objekt initialisiert wurde. (Geerbt von SqlSmoObject.) | |
IsObjectInSpace | Überprüft, ob das Objekt isoliert vorhanden oder mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.) | |
IsVersion80SP3 | Ermittelt, ob die SQL Server-Version SQL Server 2000 mit SP3 ist. (Geerbt von SqlSmoObject.) | |
IsVersion90AndAbove | Ermittelt, ob die SQL Server-Version SQL Server 2005 oder höher ist. (Geerbt von SqlSmoObject.) | |
ListMembers | Returns a list of the roles of which the login account is a member. | |
MarkDropped | Legt den zu löschenden SqlSmoState fest. (Geerbt von SqlSmoObject.) | |
MarkForDropImpl | Legt den zu löschenden SqlSmoState fest. (Geerbt von SqlSmoObject.) | |
MemberwiseClone | (Geerbt von Object.) | |
PostAlter | Die Methode, die nach dem Ändern von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.) | |
PostCreate | Die Methode, die nach dem Erstellen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.) | |
PostDrop | Die Methode, die nach dem Löschen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.) | |
Refresh | Refreshes the login credentials. (Überschreibt ScriptNameObjectBase. . :: . .Refresh() () () ().) | |
Rename | Renames the login account. | |
RenameImpl | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.) | |
RenameImplWorker | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.) | |
Revoke(ObjectPermissionSet, String) | Revokes a previously granted set of permissions from a grantee on the login account. | |
Revoke(ObjectPermissionSet, array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the login account. | |
Revoke(ObjectPermissionSet, String, Boolean, Boolean) | Revokes previously granted permissions from a grantee on the login account and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) | Revokes previously granted permissions from grantees on the login account and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) | Revokes previously granted permissions from a grantee on the login account and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role. | |
Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) | Revokes previously granted permissions from grantees on the login account 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 login account. | |
Script(ScriptingOptions) | Generates a Transact-SQL script that can be used to re-create the login account as specified by the script options. | |
ScriptAlter | Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.) | |
ScriptAnsiQI | Scripts the database object in ANSI text. (Geerbt von ScriptNameObjectBase.) | |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.) | |
ScriptCreate | Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.) | |
ScriptDdl | Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.) | |
ScriptDrop | Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.) | |
ScriptImpl() () () () | Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.) | |
ScriptImplWorker | Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.) | |
ScriptInformativeHeaders | Scripts the information headers. (Geerbt von ScriptNameObjectBase.) | |
ScriptOwner | Alters the script owner authorization. (Geerbt von NamedSmoObject.) | |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.) | |
SetCollectionTextMode | Sets the collection text mode. (Geerbt von ScriptNameObjectBase.) | |
SetIsSystemNamed | Sets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.) | |
SetParentImpl | Legt das übergeordnete Element von SqlSmoObject auf den newParent-Parameter fest. (Geerbt von SqlSmoObject.) | |
SetSchemaOwned | Sets the schema owned value. (Geerbt von NamedSmoObject.) | |
SetTextBody | Specifies the text body. (Geerbt von ScriptNameObjectBase.) | |
SetTextHeader | Specifies the text header. (Geerbt von ScriptNameObjectBase.) | |
SetTextMode | Specifies the text mode. (Geerbt von ScriptNameObjectBase.) | |
SwitchTextMode | Switches the text mode. (Geerbt von ScriptNameObjectBase.) | |
ThrowIfTextIsDirtyForAlter | Throws an exception of text has been modified and not persisted. (Geerbt von ScriptNameObjectBase.) | |
ToString | Gibt eine String zurück, die das Objekt darstellt, auf das verwiesen wird. (Geerbt von SqlSmoObject.) | |
TouchImpl | Nicht implementiert. (Geerbt von SqlSmoObject.) | |
UnbindDefaultImpl | Hebt die Bindung der Standardspalten von SqlSmoObject auf. (Geerbt von SqlSmoObject.) | |
UnbindRuleImpl | Hebt die Bindung der Regeln von SqlSmoObject auf. (Geerbt von SqlSmoObject.) | |
Validate | Validates the state of an object. (Geerbt von SmoObjectBase.) |
Zum Anfang
Ereignisse
Name | Beschreibung | |
---|---|---|
PropertyChanged | Stellt das Ereignis dar, das bei Änderung einer Eigenschaft auftritt. (Geerbt von SqlSmoObject.) | |
PropertyMetadataChanged | Stellt das Ereignis dar, das bei Änderungen an den Eigenschaftsmetadaten auftritt. (Geerbt von SqlSmoObject.) |
Zum Anfang
Felder
Name | Beschreibung | |
---|---|---|
m_ExtendedProperties | Stellt eine Eigenschaft dar, die zur Erweiterung der von SqlSmoObject bereitgestellten Eigenschaften definiert wird. (Geerbt von SqlSmoObject.) | |
singletonParent | Stellt das übergeordnete Singleton-Element dar. (Geerbt von SqlSmoObject.) |
Zum Anfang
Explizite Schnittstellenimplementierungen
Name | Beschreibung | |
---|---|---|
IAlienObject. . :: . .Discover | Ermittelt alle Abhängigkeiten. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetDomainRoot | Gibt den Stamm der Domäne zurück. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetParent | Ruft das übergeordnete Element dieses Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyType | Ruft den Typ der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyValue | Ruft den Wert der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetUrn | Ruft den URN (Uniform Resource Name) des Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .Resolve | Ruft aus dem URN die Instanz ab, die die Informationen zum Objekt enthält. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .SetObjectState | Legt den Objektstatus auf den angegebenen SfcObjectState-Wert fest. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .SetPropertyValue | Legt den Eigenschaftswert fest. (Geerbt von SqlSmoObject.) | |
ISfcPropertyProvider. . :: . .GetPropertySet | Ruft den Schnittstellenverweis auf den Eigenschaftensatz dieses Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.) | |
ISfcSupportsDesignMode. . :: . .IsDesignMode | Gets a Boolean value that indicates whether the object supports design mode. Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. |
Zum Anfang
Hinweise
To get Login object properties, users can be a member of the public fixed server role.
To set Login object properties, users must have ALTER ANY LOGIN permissions on the server or be a member of the sysadmin fixed server role.
To create or drop a login, users must have ALTER ANY LOGIN permissions on the server or be a member of the sysadmin fixed server role.
To grant, deny, or revoke permission on the login to other users, users must have CONTROL permissions on the logon or be a member of the sysadmin or securityadmin fixed server roles.
To set the password on a login without providing an old password, users must be a member of the sysadmin fixed server role.
Thread Safety
Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.
Siehe auch