Aracılığıyla paylaş


Check.Rename Method

Marks the foreign key to be dropped next time its parent Table object is altered by the Alter method.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Bildirim
Public Sub Rename ( _
    newname As String _
)
'Kullanım
Dim instance As Check
Dim newname As String

instance.Rename(newname)
public void Rename(
    string newname
)
public:
virtual void Rename(
    String^ newname
) sealed
abstract Rename : 
        newname:string -> unit 
override Rename : 
        newname:string -> unit 
public final function Rename(
    newname : String
)

Parameters

  • newname
    Type: System.String
    A String value that specifies the new name of the check constraint.

Implements

IRenamable.Rename(String)

Remarks

Not

For check constraints based on the UserDefinedTableType object this method generates an exception because user-defined data types cannot be modified.

Examples

Calling Methods

See Also

Reference

Check Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Working with Database Objects

CHECK Constraints

CREATE TABLE (Transact-SQL)