共用方式為


NumberedStoredProcedure.TextBody 屬性

Gets or sets the Transact-SQL string that defines the stored procedure.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public Property TextBody As String 
    Get 
    Set
'用途
Dim instance As NumberedStoredProcedure 
Dim value As String 

value = instance.TextBody

instance.TextBody = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public string TextBody { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
virtual property String^ TextBody {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
abstract TextBody : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
override TextBody : string with get, set
final function get TextBody () : String 
final function set TextBody (value : String)

屬性值

型別:System.String
A String value that specifies the Transact-SQL string that defines the numbered stored procedure.

實作

ITextObject.TextBody

範例

建立、改變和移除預存程序

請參閱

參考

NumberedStoredProcedure 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE PROCEDURE (Transact-SQL)