Check.Rename Method (String)
Applies To: SQL Server 2016 Preview
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
public void Rename(
string newname
)
public:
virtual void Rename(
String^ newname
) sealed
abstract Rename :
newname:string -> unit
override Rename :
newname:string -> unit
Public Sub Rename (
newname As String
)
Parameters
newname
Type: System.StringA String value that specifies the new name of the check constraint.
Implements
Remarks
Note
For check constraints based on the UserDefinedTableType object this method generates an exception because user-defined data types cannot be modified.
Examples
Legacy Code Example
See Also
Check Class
Microsoft.SqlServer.Management.Smo Namespace
Working with Database Objects
CREATE TABLE (Transact-SQL)
Unable to find linked topic '6d5373b2-0a52-44ba-9ce9-ad4178cc09b8'.
Return to top