StoredProcedure Miembros
The StoredProcedure object represents a SQL Server stored procedure.
El tipo StoredProcedure expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
StoredProcedure() () () () | Initializes a new instance of the StoredProcedure class. | |
StoredProcedure(Database, String) | Initializes a new instance of the StoredProcedure class on the specified database and with the specified name. | |
StoredProcedure(Database, String, String) | Initializes a new instance of the StoredProcedure class on the specified database and with the specified name and schema. |
Principio
Métodos
Nombre | Descripción | |
---|---|---|
AddDatabaseContext | (Se hereda de SqlSmoObject). | |
Alter | Updates any StoredProcedure object property changes on the instance of Microsoft SQL Server. | |
AlterImpl | (Se hereda de SqlSmoObject). | |
AlterImplFinish | (Se hereda de SqlSmoObject). | |
AlterImplInit | (Se hereda de SqlSmoObject). | |
AlterImplWorker | (Se hereda de SqlSmoObject). | |
AppendCommaText | (Se hereda de ScriptNameObjectBase). | |
AppendWithCommaText | (Se hereda de ScriptNameObjectBase). | |
AppendWithOption | (Se hereda de ScriptNameObjectBase). | |
BindDefaultImpl | (Se hereda de SqlSmoObject). | |
BindRuleImpl | (Se hereda de SqlSmoObject). | |
ChangeSchema | Changes the schema for the stored procedure. | |
CheckCollation | (Se hereda de SqlSmoObject). | |
CheckObjectDirty | (Se hereda de ScriptNameObjectBase). | |
CheckObjectState() () () () | Validates the state of the referenced object. (Se hereda de SqlSmoObject). | |
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. (Se hereda de SqlSmoObject). | |
CheckObjectStateImpl | (Se hereda de SqlSmoObject). | |
CheckTextCorectness | (Se hereda de ScriptNameObjectBase). | |
CheckTextModeSupport | (Se hereda de ScriptNameObjectBase). | |
CheckVersion100 | (Se hereda de SqlSmoObject). | |
CheckVersion80 | Checks the validity of the object on SQL Server 2000. (Se hereda de SqlSmoObject). | |
CheckVersion80SP3 | Checks the validity of the object on SQL Server 2000 SP3. (Se hereda de SqlSmoObject). | |
CheckVersion90 | Check the validity of the object on SQL Server 2005. (Se hereda de SqlSmoObject). | |
CheckVersionBelow90 | (Se hereda de SqlSmoObject). | |
CleanObject | Cleans the referenced object. (Se hereda de ScriptNameObjectBase). | |
Create | Creates a stored procedure on the instance of Microsoft SQL Server as defined by the StoredProcedure object. | |
CreateImpl | (Se hereda de SqlSmoObject). | |
CreateImplFinish | (Se hereda de SqlSmoObject). | |
CreateImplInit | (Se hereda de SqlSmoObject). | |
Deny(ObjectPermissionSet, String) | Denies the specified set of permissions for the specified grantee on the stored procedure. | |
Deny(ObjectPermissionSet, array<String> [] () [] []) | Denies the specified set of permissions for the specified grantees on the stored procedure. | |
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. | |
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. | |
Discover | (Se hereda de SqlSmoObject). | |
Drop | Removes the stored procedure from the instance of SQL Server. | |
DropImpl | (Se hereda de SqlSmoObject). | |
DropImplWorker | (Se hereda de SqlSmoObject). | |
EnumObjectPermissions() () () () | Enumerates a list of object permissions for the stored procedure. | |
EnumObjectPermissions(String) | Enumerates a list of object permissions for a specified grantee on the stored procedure. | |
EnumObjectPermissions(ObjectPermissionSet) | Enumerates a list of object permissions for a specified permission on the stored procedure. | |
EnumObjectPermissions(String, ObjectPermissionSet) | Enumerates a list of object permissions for a specified grantee and a specified permission on the stored procedure. | |
EnumScriptImpl | (Se hereda de SqlSmoObject). | |
EnumScriptImplWorker | (Se hereda de SqlSmoObject). | |
Equals | (Se hereda de Object). | |
Finalize | (Se hereda de Object). | |
ForceTextModeOnTextBody | Enforces text mode on the text body. (Se hereda de ScriptNameObjectBase). | |
FormatSqlVariant | (Se hereda de SqlSmoObject). | |
GenerateDataSpaceFileStreamScript | (Se hereda de SqlSmoObject). | |
GenerateDataSpaceScript | (Se hereda de SqlSmoObject). | |
GetBindDefaultScript | (Se hereda de SqlSmoObject). | |
GetBindRuleScript | (Se hereda de SqlSmoObject). | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Se hereda de SqlSmoObject). | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Se hereda de SqlSmoObject). | |
GetBraketNameForText | (Se hereda de ScriptNameObjectBase). | |
GetDateTimeParameter | (Se hereda de SqlSmoObject). | |
GetDateTimeParameterAsInt | (Se hereda de SqlSmoObject). | |
GetDBName | Gets the database name that is associated with the object. (Se hereda de SqlSmoObject). | |
GetEnumParameter | (Se hereda de SqlSmoObject). | |
GetFragOptionString | (Se hereda de SqlSmoObject). | |
GetGuidParameter | (Se hereda de SqlSmoObject). | |
GetHashCode | (Se hereda de Object). | |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (Se hereda de ScriptNameObjectBase). | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Se hereda de SqlSmoObject). | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Se hereda de SqlSmoObject). | |
GetPropValue | (Se hereda de SqlSmoObject). | |
GetPropValueOptional | (Se hereda de SqlSmoObject). | |
GetPropValueOptionalAllowNull | (Se hereda de SqlSmoObject). | |
GetRealValue | (Se hereda de SqlSmoObject). | |
GetScriptIncludeExists | (Se hereda de ScriptNameObjectBase). | |
GetScriptingOptionsForCreate | (Se hereda de SqlSmoObject). | |
GetServerName | Gets the name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject). | |
GetServerObject | (Se hereda de SqlSmoObject). | |
GetSqlServerVersionName | Gets the version name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject). | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Se hereda de SqlSmoObject). | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Se hereda de SqlSmoObject). | |
GetTextBody() () () () | Returns the text body. (Se hereda de ScriptNameObjectBase). | |
GetTextBody(Boolean) | Returns the text body. (Se hereda de ScriptNameObjectBase). | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) | Gets the text for scripting. (Se hereda de ScriptNameObjectBase). | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) | (Se hereda de ScriptNameObjectBase). | |
GetTextHeader | Returns the text header. (Se hereda de ScriptNameObjectBase). | |
GetTextMode | Determines whether the script name is using text mode. (Se hereda de ScriptNameObjectBase). | |
GetTextProperty(String) | (Se hereda de ScriptNameObjectBase). | |
GetTextProperty(String, ScriptingOptions) | (Se hereda de ScriptNameObjectBase). | |
GetTimeSpanParameterAsInt | (Se hereda de SqlSmoObject). | |
GetType | (Se hereda de Object). | |
GetUrnRecursive(StringBuilder) | (Se hereda de SqlSmoObject). | |
GetUrnRecursive(StringBuilder, UrnIdOption) | (Se hereda de SqlSmoObject). | |
Grant(ObjectPermissionSet, String) | Grants the specified set of permissions to the specified grantee on the stored procedure. | |
Grant(ObjectPermissionSet, array<String> [] () [] []) | Grants the specified set of permissions to the specified grantees on the stored procedure. | |
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. | |
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. | |
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. | |
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. | |
ImplInitialize | (Se hereda de SqlSmoObject). | |
Initialize() () () () | Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject). | |
Initialize(Boolean) | Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject). | |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (Se hereda de ScriptNameObjectBase). | |
IsObjectInitialized | Verifies whether the object has been initialized. (Se hereda de SqlSmoObject). | |
IsObjectInSpace | Verifies whether the object is isolated or connected to the instance of SQL Server. (Se hereda de SqlSmoObject). | |
IsVersion80SP3 | (Se hereda de SqlSmoObject). | |
MarkDropped | (Se hereda de SqlSmoObject). | |
MarkForDropImpl | (Se hereda de SqlSmoObject). | |
MemberwiseClone | (Se hereda de Object). | |
PostAlter | (Se hereda de SqlSmoObject). | |
PostCreate | (Se hereda de SqlSmoObject). | |
PostDrop | (Se hereda de SqlSmoObject). | |
ReCompileReferences | ||
Refresh | Refreshes the script name. (Se hereda de ScriptNameObjectBase). | |
Rename | Renames the stored procedure. | |
RenameImpl | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject). | |
RenameImplWorker | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject). | |
Revoke(ObjectPermissionSet, String) | Revokes a previously granted set of permissions from a grantee on the stored procedure. | |
Revoke(ObjectPermissionSet, array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the stored procedure. | |
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. | |
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. | |
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. | |
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. | |
Script() () () () | Generates a Transact-SQL script that can be used to re-create the stored procedure. | |
Script(ScriptingOptions) | Generates a Transact-SQL script that can be used to re-create the stored procedure as specified by the script options. | |
ScriptAlter | (Se hereda de SqlSmoObject). | |
ScriptAnsiQI | (Se hereda de ScriptNameObjectBase). | |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject). | |
ScriptCreate | (Se hereda de SqlSmoObject). | |
ScriptDdl | (Se hereda de SqlSmoObject). | |
ScriptDrop | (Se hereda de SqlSmoObject). | |
ScriptHeader | Returns the text header with the option to modify the text. | |
ScriptImpl() () () () | (Se hereda de SqlSmoObject). | |
ScriptImpl(ScriptingOptions) | (Se hereda de SqlSmoObject). | |
ScriptImplWorker | (Se hereda de SqlSmoObject). | |
ScriptInformativeHeaders | (Se hereda de ScriptNameObjectBase). | |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject). | |
SetCollectionTextMode | Sets the collection text mode. (Se hereda de ScriptNameObjectBase). | |
SetParentImpl | (Se hereda de SqlSmoObject). | |
SetTextBody | Specifies the text body. (Se hereda de ScriptNameObjectBase). | |
SetTextHeader | Specifies the text header. (Se hereda de ScriptNameObjectBase). | |
SetTextMode | Specifies the text mode. (Se hereda de ScriptNameObjectBase). | |
SwitchTextMode | Switches the text mode. (Se hereda de ScriptNameObjectBase). | |
ThrowIfTextIsDirtyForAlter | (Se hereda de ScriptNameObjectBase). | |
ToString | Returns a String that represents the referenced object. (Se hereda de SqlSmoObject). | |
TouchImpl | (Se hereda de SqlSmoObject). | |
UnbindDefaultImpl | (Se hereda de SqlSmoObject). | |
UnbindRuleImpl | (Se hereda de SqlSmoObject). | |
Validate | (Se hereda de SmoObjectBase). |
Principio
Propiedades
Nombre | Descripción | |
---|---|---|
AnsiNullsStatus | Gets the Boolean property value that specifies whether ISO NULL handling is enabled in the stored procedure. | |
AssemblyName | Gets or sets the name of the .NET assembly that is required by the referenced stored procedure. | |
ClassName | Gets or sets the name of the class called by the referenced stored procedure. | |
CreateDate | Gets the date and time when the stored procedure was created. | |
DateLastModified | Gets the date and time when the stored procedure was last modified. | |
Events | Gets the events associated with the stored procedure. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Se hereda de SqlSmoObject). | |
ExecutionContext | Gets or sets the execution context for the stored procedure. | |
ExecutionContextPrincipal | Gets or sets the execution context principal for the stored procedure. | |
ExtendedProperties | Gets the extended properties of the StoredProcedure object. | |
ForReplication | Gets or sets the Boolean property value that specifies whether the stored procedure is available for replication. | |
ID | Gets the ID value that uniquely identifies the stored procedure. | |
ImplementationType | Gets or sets the implementation type of the stored procedure. | |
IsEncrypted | Gets or sets the Boolean property value that specifies whether the stored procedure is encrypted. | |
IsSchemaOwned | ||
IsSystemObject | Gets the Boolean property value that specifies whether the stored procedure is a system object. | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Se hereda de SqlSmoObject). | |
MethodName | Gets the method name for the stored procedure. | |
Name | Gets or sets the name of the Schema Object Base. (Se hereda de ScriptSchemaObjectBase). | |
NumberedStoredProcedures | Represents a collection of NumberedStoredProcedureCollection objects. Each NumberedStoredProcedure object represents a numbered stored procedure defined for the stored procedure. | |
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. (Se hereda de SqlSmoObject). | |
Owner | ||
Parameters | Represents a collection of StoredProcedureParameterCollection objects. Each StoredProcedureParameter object represents a parameter defined for the stored procedure. | |
Parent | Gets or sets the Database object that is the parent of the StoredProcedure object. | |
Properties | Gets a collection of Property objects that represent the object properties. (Se hereda de SqlSmoObject). | |
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. | |
Recompile | Gets or sets the Boolean property value that specifies whether the stored procedure is recompiled before execution. | |
ScalarResult | Gets the scalar result for the referenced object. (Se hereda de SqlSmoObject). | |
Schema | Gets or sets the schema. (Se hereda de ScriptSchemaObjectBase). | |
Startup | Gets or sets the Boolean property value that specifies whether the stored procedure runs when the instance of Microsoft SQL Server starts up. | |
State | Gets the state of the referenced object. (Se hereda de SmoObjectBase). | |
TextBody | Gets or sets the Transact-SQL string that defines the stored procedure. | |
TextHeader | Gets or sets the header part of the Transact-SQL string that defines the stored procedure. | |
TextMode | Gets or sets the Boolean property that specifies whether the text header is editable as text. | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Se hereda de SqlSmoObject). | |
UserData | Gets or sets user-defined data associated with the referenced object. (Se hereda de SmoObjectBase). |
Principio
Eventos
Nombre | Descripción | |
---|---|---|
PropertyChanged | (Se hereda de SqlSmoObject). | |
PropertyMetadataChanged | (Se hereda de SqlSmoObject). |
Principio
Implementaciones de interfaces explícitas
Nombre | Descripción | |
---|---|---|
IAlienObjectDiscover | (Se hereda de SqlSmoObject). | |
IAlienObjectGetParent | (Se hereda de SqlSmoObject). | |
IAlienObjectGetProperty | (Se hereda de SqlSmoObject). | |
ISfcPropertyProviderGetPropertySet | (Se hereda de SqlSmoObject). | |
IAlienObjectGetUrn | (Se hereda de SqlSmoObject). | |
IAlienObjectResolve | (Se hereda de SqlSmoObject). | |
IAlienObjectSetProperty | (Se hereda de SqlSmoObject). |
Principio