DatabaseFile.Shrink 메서드

Shrinks a database file.

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

구문

‘선언
Public Sub Shrink ( _
    newSizeInMB As Integer, _
    shrinkType As ShrinkMethod _
)
‘사용 방법
Dim instance As DatabaseFile 
Dim newSizeInMB As Integer 
Dim shrinkType As ShrinkMethod

instance.Shrink(newSizeInMB, shrinkType)
public void Shrink(
    int newSizeInMB,
    ShrinkMethod shrinkType
)
public:
void Shrink(
    int newSizeInMB, 
    ShrinkMethod shrinkType
)
member Shrink : 
        newSizeInMB:int * 
        shrinkType:ShrinkMethod -> unit
public function Shrink(
    newSizeInMB : int, 
    shrinkType : ShrinkMethod
)

매개 변수

  • newSizeInMB
    유형: System.Int32
    An Int32 value that specifies the new size of the database file.

파일 그룹 및 파일을 사용하여 데이터 저장

참고 항목

참조

DatabaseFile 클래스

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

관련 자료

파일 및 파일 그룹 아키텍처