????? ????? ????? ?????? ?? SQL Server

?????? ????????? ?????? ?????????
???? ???????: 307487 - ??? ???????? ???? ????? ????? ??? ???????.
??????
??? ??? ?? ????? ??????? ?????? ????? ????? ?? ??????? ??????? ???????? ?????? ???????? ????????? ?? ??? ??????? ???????????.
????? ???? | ?? ????

?? ??? ??????

??????

?????? ??? ??????? ???? ??? ????? ????????? ?????? ????? ?????? tempdp ??? ??? ???? ?? ????? ???? ???. ????? ??????? ?????? ?? ??? ??????? tempdb ?????? ??????. ??? ???? ????? ??????? ????? ?????? ????? Microsoft SQL Server. ??????? ??????? ????? ????? ?????? ? ??? ???? ??? ????? ????? SQL Server. ???? ?? ????? ??????? ??????? ???????? ?? ????? ?????? tempdp ??????? ???????. ????? ?????? ????????? ?? ???? ?? ???? ?? ???? ?? ????? ?????? tempdp ????? ????? ?????.

?????? ??? ??? ?????? SQL Server 2005? ??? ????? ??? ????? ????. ??? ???? ??? ??????? Studio ????? ???? SQL ????? ?? ????? ??????? ????? ??????? ?????? ??? ????????. ??? ??? ?? ???? ?? Studio ????? ???? SQL ?? SQL Server 2005 ?? ???? ????? ?????? ?????? tempdb ??? ????? ?????. ??? ??? ?????? "????? ????? ?????" ?????? ?? sys.master_files DMV? ??? ??? ????? ??? ?????? ??? ???? ????? ????? ?????? ?????? . ?????? ??? ????? ?????? ?????? ?????? ??? ????? ?????? ????? ??????? ??????? ?? Studio ????? ???? SQL:
use tempdb
select (size*8) as FileSizeKB from sys.database_files

?????? ?? ????? SQL Server 2008 ???????? ?? ??? ??? ??? ????? ?????? ??? ????? ??? ????? ?????.

??????? ??????

?? ?????? ??? ?????. ?? ??? ??????????? ??????? ?????? SQL Server ?????? ??? ???:
  • ????? ??????? ??????? ???? ?? ??????? ?????
  • Worktables ???????? ?????? ??????? ???? ?? ??????? ????? ????????? ?????? ??????
  • ????? ?????? ?????
???? ???? SQL ??????? ????? ?? ??? ????????? tempdb ??????? ??????? ???? ?????? ????????? ????? ??????? ????? ????????. ???? ??? ?????? ???? ????? ???????? ?? ??????. ???????? ??? ???? ?? ???? ????? ????????? ?????? ??? ??????? ? ?????? ?? ?? ????? ????? ?? ??? ??? ????? ????? SQL Server. ????? ????? ??? ??? ??????? ??? ??? ?????? ?? ??????. ??? ??? ????? SQL Server? ??? ????? ????? ?????? ???????? ???? ?? ????? ?????? ?????? ???? ????? ????? ?????? ??? ???? ???? ???.

???? ???????? ??? ????? ????? ?????? ????? ???????? ??? ??????. ????? ????? ???????? ??? ?? ????? ?? ??? ????? ??? ??? ???? ?? ????? ???????. ????? ????? ???? ?? SQL Server ?????? ????? ??? ?????? ??? ???? ???? ???. ??? ?????? ?? ??? ?????? ?????? ???? ?? ?????? ???????? ??? ??? ????? ????? ??? ????? ?????? ALTER ?????? ?????? ????? FILE ?? ????? DBCC SHRINKFILE.

????? ??????? ????? ??????? ??????? ?????? ?????? ??? ??? ???? ?? ??? ??????? ??.

??????? 1: ??????? ????? SQL ????????

??????? 2: ??????? ????? DBCC SHRINKDATABASE

??????? 3: ??????? ????? DBCC SHRINKFILE

???? ????? DBCC SHRINKDATABASE ?? ????????????? ????? ??????? ??????

??? ??? ?????? ?????? ? ??????? ????? ???????? DBCC SHRINKDATABASE ?? DBCC SHRINKFILE ???????? ?? ????? ????? ??????? ?????? ?????? ??? ??? ??? ???? ????? ???????:
  • ????: Msg 2501 ?? ????? 16, ???? 1? ??? 1 ???? ?????? ??? ???? ???? '1525580473'. ???? ?? sysobjects.
  • ??????: 0 ??? Msg 8909 ?? ????? ???? 1, 16, ???? ????: ???? ???? 1? ???? ?????? 0? ??????% ???? S_PGID. ????? ?? ??? ?????? =% S_PGID.
??? ????? ?? ??? ?? ?? ???? ??? ??? 2501 ?? ??? ?? ??????? ???? ??? ????? ??? ??? ??????? ?????. ?? ????? ????? ?? ???? ??? ??? 8909 ??? ?? ????? ?????? tempdp . ??? ????? ???? SQL ?????? ????? ?????? ?????? ????? ???????. ??? ???? ???? ??? ??? ???? ?? ???? ???? ????? ???? ????? ??? ???????? ??????? ??? ??? 8909 ???? ????? ????? ?????? ?????? ?????/?????.

?????

??? SQL Server ??? ??????; ??????: "DBCC SHRINKFILE"; "DBCC SHRINKDATABASE"

???????

???? ???????: 307487 - ????? ??? ??????: 01/?????/1433 - ??????: 2.0
????? ???
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition
  • Microsoft SQL Server 2000 64-bit Edition
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Workgroup Edition
????? ??????: 
kbsqlsetup kbhowtomaster kbmt KB307487 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????307487

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com