Column.AddDefaultConstraint 메서드

Adds a default constraint to the column.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function AddDefaultConstraint As DefaultConstraint
‘사용 방법
Dim instance As Column 
Dim returnValue As DefaultConstraint 

returnValue = instance.AddDefaultConstraint()
public DefaultConstraint AddDefaultConstraint()
public:
DefaultConstraint^ AddDefaultConstraint()
member AddDefaultConstraint : unit -> DefaultConstraint
public function AddDefaultConstraint() : DefaultConstraint

반환 값

유형: Microsoft.SqlServer.Management.Smo.DefaultConstraint
A DefaultConstraint object that specifies the default constraint bound to the column.

데이터베이스 개체 작업

참고 항목

참조

Column 클래스

AddDefaultConstraint 오버로드

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

ALTER TABLE(Transact-SQL)

CREATE TABLE(Transact-SQL)