Freigeben über


StoredProcedure-Member

The StoredProcedure object represents a SQL Server stored procedure.

Der StoredProcedure-Typ macht die folgenden Member verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode StoredProcedure() () () () Initializes a new instance of the StoredProcedure class.
Öffentliche Methode StoredProcedure(Database, String) Initializes a new instance of the StoredProcedure class on the specified database and with the specified name.
Öffentliche Methode StoredProcedure(Database, String, String) Initializes a new instance of the StoredProcedure class on the specified database and with the specified name and schema.

Zum Anfang

Methoden

  Name Beschreibung
Geschützte Methode AddDatabaseContext (Geerbt von SqlSmoObject.)
Öffentliche Methode Alter Updates any StoredProcedure object property changes on the instance of Microsoft SQL Server.
Geschützte Methode AlterImpl (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplFinish (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplInit (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplWorker (Geerbt von SqlSmoObject.)
Geschützte Methode AppendCommaText (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AppendWithCommaText (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AppendWithOption (Geerbt von ScriptNameObjectBase.)
Geschützte Methode BindDefaultImpl (Geerbt von SqlSmoObject.)
Geschützte Methode BindRuleImpl (Geerbt von SqlSmoObject.)
Öffentliche Methode ChangeSchema Changes the schema for the stored procedure.
Geschützte Methode CheckCollation (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectDirty (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckObjectState() () () () Validates the state of the referenced object. (Geerbt von SqlSmoObject.)
Geschützte Methode 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. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectStateImpl (Geerbt von SqlSmoObject.)
Geschützte Methode CheckTextCorectness (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckTextModeSupport (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckVersion100 (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion80 Checks the validity of the object on SQL Server 2000. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion90 Check the validity of the object on SQL Server 2005. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersionBelow90 (Geerbt von SqlSmoObject.)
Geschützte Methode CleanObject Cleans the referenced object. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode Create Creates a stored procedure on the instance of Microsoft SQL Server as defined by the StoredProcedure object.
Geschützte Methode CreateImpl (Geerbt von SqlSmoObject.)
Geschützte Methode CreateImplFinish (Geerbt von SqlSmoObject.)
Geschützte Methode CreateImplInit (Geerbt von SqlSmoObject.)
Öffentliche Methode Deny(ObjectPermissionSet, String) Denies the specified set of permissions for the specified grantee on the stored procedure.
Öffentliche Methode Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the stored procedure.
Öffentliche Methode 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 stored procedure.
Öffentliche Methode 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 stored procedure.
Öffentliche Methode Discover (Geerbt von SqlSmoObject.)
Öffentliche Methode Drop Removes the stored procedure from the instance of SQL Server.
Geschützte Methode DropImpl (Geerbt von SqlSmoObject.)
Geschützte Methode DropImplWorker (Geerbt von SqlSmoObject.)
Öffentliche Methode EnumObjectPermissions() () () () Enumerates a list of object permissions for the stored procedure.
Öffentliche Methode EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the stored procedure.
Öffentliche Methode EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the stored procedure.
Öffentliche Methode EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the stored procedure.
Geschützte Methode EnumScriptImpl (Geerbt von SqlSmoObject.)
Geschützte Methode EnumScriptImplWorker (Geerbt von SqlSmoObject.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode ForceTextModeOnTextBody Enforces text mode on the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode FormatSqlVariant (Geerbt von SqlSmoObject.)
Geschützte Methode GenerateDataSpaceFileStreamScript (Geerbt von SqlSmoObject.)
Geschützte Methode GenerateDataSpaceScript (Geerbt von SqlSmoObject.)
Geschützte Methode GetBindDefaultScript (Geerbt von SqlSmoObject.)
Geschützte Methode GetBindRuleScript (Geerbt von SqlSmoObject.)
Geschützte Methode GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Geerbt von SqlSmoObject.)
Geschützte Methode GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Geerbt von SqlSmoObject.)
Geschützte Methode GetBraketNameForText (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetDateTimeParameter (Geerbt von SqlSmoObject.)
Geschützte Methode GetDateTimeParameterAsInt (Geerbt von SqlSmoObject.)
Geschützte Methode GetDBName Gets the database name that is associated with the object. (Geerbt von SqlSmoObject.)
Geschützte Methode GetEnumParameter (Geerbt von SqlSmoObject.)
Geschützte Methode GetFragOptionString (Geerbt von SqlSmoObject.)
Geschützte Methode GetGuidParameter (Geerbt von SqlSmoObject.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode GetIsTextDirty Determines whether the text value is consistent with stored value. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Geerbt von SqlSmoObject.)
Geschützte Methode GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValue (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptional (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptionalAllowNull (Geerbt von SqlSmoObject.)
Geschützte Methode GetRealValue (Geerbt von SqlSmoObject.)
Geschützte Methode GetScriptIncludeExists (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetScriptingOptionsForCreate (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerObject (Geerbt von SqlSmoObject.)
Geschützte Methode GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Geerbt von SqlSmoObject.)
Geschützte Methode GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Geerbt von SqlSmoObject.)
Geschützte Methode GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Geerbt von SqlSmoObject.)
Geschützte Methode GetTextBody() () () () Returns the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextBody(Boolean) Returns the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextHeader Returns the text header. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextMode Determines whether the script name is using text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextProperty(String) (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextProperty(String, ScriptingOptions) (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTimeSpanParameterAsInt (Geerbt von SqlSmoObject.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode GetUrnRecursive(StringBuilder) (Geerbt von SqlSmoObject.)
Geschützte Methode GetUrnRecursive(StringBuilder, UrnIdOption) (Geerbt von SqlSmoObject.)
Öffentliche Methode Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the stored procedure.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the stored procedure.
Öffentliche Methode Grant(ObjectPermissionSet, String, Boolean) Grants access to the specified permission to the grantee and the ability to grant access to other users on the stored procedure.
Öffentliche Methode 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 stored procedure.
Öffentliche Methode 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 stored procedure under an assumed role.
Öffentliche Methode 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 stored procedure under an assumed role.
Geschützte Methode ImplInitialize (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize() () () () Initializes the object and forces the properties be loaded. (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize(Boolean) Initializes the object and forces the properties be loaded. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode IsObjectInitialized Verifies whether the object has been initialized. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Geerbt von SqlSmoObject.)
Geschützte Methode IsVersion80SP3 (Geerbt von SqlSmoObject.)
Geschützte Methode MarkDropped (Geerbt von SqlSmoObject.)
Geschützte Methode MarkForDropImpl (Geerbt von SqlSmoObject.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode PostAlter (Geerbt von SqlSmoObject.)
Geschützte Methode PostCreate (Geerbt von SqlSmoObject.)
Geschützte Methode PostDrop (Geerbt von SqlSmoObject.)
Öffentliche Methode ReCompileReferences
Öffentliche Methode Refresh Refreshes the script name. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode Rename Renames the stored procedure.
Geschützte Methode RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Öffentliche Methode Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the stored procedure.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the stored procedure.
Öffentliche Methode Revoke(ObjectPermissionSet, String, Boolean, Boolean) Revokes previously granted permissions from a grantee on the stored procedure 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.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) Revokes previously granted permissions from grantees on the stored procedure 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.
Öffentliche Methode Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revokes previously granted permissions from a grantee on the stored procedure 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.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) Revokes previously granted permissions from grantees on the stored procedure 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.
Öffentliche Methode Script() () () () Generates a Transact-SQL script that can be used to re-create the stored procedure.
Öffentliche Methode Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the stored procedure as specified by the script options.
Geschützte Methode ScriptAlter (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptAnsiQI (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode ScriptCreate (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptDdl (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptDrop (Geerbt von SqlSmoObject.)
Öffentliche Methode ScriptHeader Returns the text header with the option to modify the text.
Geschützte Methode ScriptImpl() () () () (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImpl(ScriptingOptions) (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImplWorker (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptInformativeHeaders (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode SetCollectionTextMode Sets the collection text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetParentImpl (Geerbt von SqlSmoObject.)
Geschützte Methode SetTextBody Specifies the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetTextHeader Specifies the text header. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetTextMode Specifies the text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SwitchTextMode Switches the text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ThrowIfTextIsDirtyForAlter (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode ToString Returns a String that represents the referenced object. (Geerbt von SqlSmoObject.)
Geschützte Methode TouchImpl (Geerbt von SqlSmoObject.)
Geschützte Methode UnbindDefaultImpl (Geerbt von SqlSmoObject.)
Geschützte Methode UnbindRuleImpl (Geerbt von SqlSmoObject.)
Öffentliche Methode Validate (Geerbt von SmoObjectBase.)

Zum Anfang

Felder

  Name Beschreibung
Geschütztes Feld m_ExtendedProperties (Geerbt von SqlSmoObject.)

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft AnsiNullsStatus Gets the Boolean property value that specifies whether ISO NULL handling is enabled in the stored procedure.
Öffentliche Eigenschaft AssemblyName Gets or sets the name of the .NET assembly that is required by the referenced stored procedure.
Öffentliche Eigenschaft ClassName Gets or sets the name of the class called by the referenced stored procedure.
Öffentliche Eigenschaft CreateDate Gets the date and time when the stored procedure was created.
Öffentliche Eigenschaft DateLastModified Gets the date and time when the stored procedure was last modified.
Öffentliche Eigenschaft Events Gets the events associated with the stored procedure.
Geschützte Eigenschaft ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft ExecutionContext Gets or sets the execution context for the stored procedure.
Öffentliche Eigenschaft ExecutionContextPrincipal Gets or sets the execution context principal for the stored procedure.
Öffentliche Eigenschaft ExtendedProperties Gets the extended properties of the StoredProcedure object.
Öffentliche Eigenschaft ForReplication Gets or sets the Boolean property value that specifies whether the stored procedure is available for replication.
Öffentliche Eigenschaft ID Gets the ID value that uniquely identifies the stored procedure.
Öffentliche Eigenschaft ImplementationType Gets or sets the implementation type of the stored procedure.
Öffentliche Eigenschaft IsEncrypted Gets or sets the Boolean property value that specifies whether the stored procedure is encrypted.
Öffentliche Eigenschaft IsSchemaOwned
Öffentliche Eigenschaft IsSystemObject Gets the Boolean property value that specifies whether the stored procedure is a system object.
Geschützte Eigenschaft IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft MethodName Gets the method name for the stored procedure.
Öffentliche Eigenschaft Name Gets or sets the name of the Schema Object Base. (Geerbt von ScriptSchemaObjectBase.)
Öffentliche Eigenschaft NumberedStoredProcedures Represents a collection of NumberedStoredProcedureCollection objects. Each NumberedStoredProcedure object represents a numbered stored procedure defined for the stored procedure.
Geschützte Eigenschaft 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. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Owner
Öffentliche Eigenschaft Parameters Represents a collection of StoredProcedureParameterCollection objects. Each StoredProcedureParameter object represents a parameter defined for the stored procedure.
Öffentliche Eigenschaft Parent Gets or sets the Database object that is the parent of the StoredProcedure object.
Öffentliche Eigenschaft Properties Gets a collection of Property objects that represent the object properties. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft QuotedIdentifierStatus Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules.
Öffentliche Eigenschaft Recompile Gets or sets the Boolean property value that specifies whether the stored procedure is recompiled before execution.
Geschützte Eigenschaft ScalarResult Gets the scalar result for the referenced object. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Schema Gets or sets the schema. (Geerbt von ScriptSchemaObjectBase.)
Öffentliche Eigenschaft Startup Gets or sets the Boolean property value that specifies whether the stored procedure runs when the instance of Microsoft SQL Server starts up.
Öffentliche Eigenschaft State Gets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft TextBody Gets or sets the Transact-SQL string that defines the stored procedure.
Öffentliche Eigenschaft TextHeader Gets or sets the header part of the Transact-SQL string that defines the stored procedure.
Öffentliche Eigenschaft TextMode Gets or sets the Boolean property that specifies whether the text header is editable as text.
Öffentliche Eigenschaft Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft UserData Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged (Geerbt von SqlSmoObject.)
Öffentliches Ereignis PropertyMetadataChanged (Geerbt von SqlSmoObject.)

Zum Anfang

Explizite Schnittstellenimplementierungen 

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IAlienObjectDiscover (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObjectGetParent (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObjectGetProperty (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcPropertyProviderGetPropertySet (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObjectGetUrn (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObjectResolve (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObjectSetProperty (Geerbt von SqlSmoObject.)

Zum Anfang