???? ID: 272318 - ????? ???????: 17 ??????? 2011 - ??????: 3.0

INF: Shrinking DBCC SHRINKFILE ?? ??? SQL Server 2000 ??? ?????? ???

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

?? ????? ??

??? ?? ??????? ???? | ??? ?? ??????? ????

??????

??? SQL Server 2000 ??? shrinking ?? ?? ?? ?????? ????????? ????? ?? ????? ???? ???? ?? ??? ??? shrink ???????? ?? ?????? ????? ???????, ??? ???????????? ??? ?? ?? ???? ?? ???? ?? ???? ??? ????? ?? ?????? ???? shrunk ?? ?? ???????? ???????? ???? ?? ??? ?????? ???

???? ???????

DBCC SHRINKFILE ????? ???? ??, ?? SQL Server 2000 shrinks ??? ???? ?? ??? ??? ?? ?????? ?? ???? ?? ??????? ?? ?????? ?? ???? ??? ???? ??????? ??? ?????? ??? ??? ??? ?????? ????? ???? ?? ????? ???? ??, SQL Server ??? ??? ???????????? ??? ???? ??????? ????? ??? ????? ?? ??????? ??? ??? ??? ?? ?? ??? ?? ??? ????? ?? ???? ?? ?? ???? ??? ????? ???????? ??? ????????? ??? ?? shrinking ????? ???? ?? ??? ???????? ???? ??:
  1. ??? ?? ????????? ??? ?? ????? ?? ????? ????? ???? ?? ??? ??? ????? LOG ??? ????? ?????? ???
  2. ?? ????? ?????? DBCC SHRINKFILE ???: ?????? ?? ?????? ???? ?? ??? ??? ???? ???? ?? ?????? ???? ?? ??? shrinks ?? ???
????? ?????? ????????? ???? ?? ?? ?? pubs ??????? ?? ??? ?? pubs_log ????? 2 MB ?? ???? ???? ?? ??? ?? ?????? ???? ??:
  1. ?? ??? ?????:
    DBCC SHRINKFILE(pubs_log, 2)
    						
    ???:: ??? ?????? ?? ???? ?? ????? ???? ??, ?? ???? ??? ?? ??? ??????
  2. ??? ?? ????????? ??? ?? ?? ???? ?? ???? ????????? ??? ?? ????? ???? ?? ??? ?? ??? ?? ?????? Truncate_only invalidates ???? ????????? ??? ????? ??????? ??? ?? ??? ????? ????? ???? ??????? ?? truncate_only ?? ????? ??? ?? ???? ???? ?? ???:
    BACKUP LOG pubs WITH TRUNCATE_ONLY
    -??-
    ??? ?? ???? ????????? ??? ?? ????? ???? ?? ???? ????????? ??? ????? ??????? ?????? ???? ???? ?? ??? ????? ??? ?? ??? ?? ?????? ???? ??????? ?? ??? SQL Server ???????? ?????? ???? "?????" ?????:
    BACKUP LOG pubs TO pubslogbackup
  3. ?? ??? ?????:
    DBCC SHRINKFILE(pubs_log,2)
    					
    ????????? ??? ???? ?? ?????? ???? ?? ??? ?? shrunk ???? ??? ???

??????

???? ??????? ?? ???, ?????????????? ??? shrinking, ??DBCC SHRINKFILE???? ??? SQL Server 2000 ???????? ?????? ???

??? SQL Server 7.0 ????????? ??? shrinking ?? ???? ??? ???????? ??????? ?? ??? Microsoft ???????? ??? ???? ????? ?? ??? ????? ???? ?????? ?? ????? ????:
256650  (http://support.microsoft.com/kb/256650/EN-US/ ) INF: SQL ????? ????????? ??? ?? ???? ???? ?? ??? ????

???? ???? ???? ??:
  • Microsoft SQL Server 2000 Standard Edition
??????: 
kbinfo kbmt KB272318 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:272318  (http://support.microsoft.com/kb/272318/en-us/ )