NumberedStoredProcedure 类
The NumberedStoredProcedure class represents a Microsoft SQL Server numbered stored procedure.
继承层次结构
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..::..NumberedStoredProcedure
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<SfcElementTypeAttribute("Numbered")> _
Public NotInheritable Class NumberedStoredProcedure _
Inherits ScriptNameObjectBase _
Implements ICreatable, IAlterable, ITextObject
用法
Dim instance As NumberedStoredProcedure
[SfcElementTypeAttribute("Numbered")]
public sealed class NumberedStoredProcedure : ScriptNameObjectBase,
ICreatable, IAlterable, ITextObject
[SfcElementTypeAttribute(L"Numbered")]
public ref class NumberedStoredProcedure sealed : public ScriptNameObjectBase,
ICreatable, IAlterable, ITextObject
[<SealedAttribute>]
[<SfcElementTypeAttribute("Numbered")>]
type NumberedStoredProcedure =
class
inherit ScriptNameObjectBase
interface ICreatable
interface IAlterable
interface ITextObject
end
public final class NumberedStoredProcedure extends ScriptNameObjectBase implements ICreatable, IAlterable, ITextObject
NumberedStoredProcedure 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
NumberedStoredProcedure | Initializes a new instance of the NumberedStoredProcedure class. |
页首
属性
名称 | 说明 | |
---|---|---|
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (从 SqlSmoObject 继承。) | |
IsEncrypted | Gets or sets the Boolean property value that specifies whether the numbered stored procedure is encrypted. | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (从 SqlSmoObject 继承。) | |
Name | Gets or sets the name of the numbered stored procedure. (覆盖 NamedSmoObject. . :: . .Name。) | |
Number | Gets or sets the number associated with the numbered 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. (从 SqlSmoObject 继承。) | |
Parameters | Represents a collection of NumberedStoredProcedureParameter objects. Each NumberedStoredProcedureParameter object represents a parameter defined for the numbered stored procedure. | |
Parent | Gets or sets the Database object that is the parent of the NumberedStoredProcedure object. | |
Properties | Gets a collection of Property objects that represent the object properties. (从 SqlSmoObject 继承。) | |
ScalarResult | Gets the scalar result for the referenced object. (从 SqlSmoObject 继承。) | |
State | Gets the state of the referenced object. (从 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. (从 SqlSmoObject 继承。) | |
UserData | Gets or sets user-defined data associated with the referenced object. (从 SmoObjectBase 继承。) |
页首
方法
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IAlienObjectDiscover | (从 SqlSmoObject 继承。) | |
IAlienObjectGetParent | (从 SqlSmoObject 继承。) | |
IAlienObjectGetProperty | (从 SqlSmoObject 继承。) | |
ISfcPropertyProviderGetPropertySet | (从 SqlSmoObject 继承。) | |
IAlienObjectGetUrn | (从 SqlSmoObject 继承。) | |
IAlienObjectResolve | (从 SqlSmoObject 继承。) | |
IAlienObjectSetProperty | (从 SqlSmoObject 继承。) |
页首
注释
The NumberedStoredProcedure object allows programmatic management of the SQL Server numbered stored procedures.
To get NumberedStoredProcedure object properties, users can be a member of the public fixed server role.
To set NumberedStoredProcedure object properties, users must have ALTER permission on the numbered stored procedure, or be a member of db_owner fixed database role.
To create a numbered stored procedure, users must have CREATE PROCEDURE permission on the parent database, or be a member of the db_owner fixed database role.
To drop a numbered stored procedure, users must have CONTROL permission on the numbered stored procedure, or be a member of the db_owner fixed database role.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。