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

?????? ????????? ?????? ?????????
???? ???????: 224071 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ????? ???? ????? ???????? ?????? ????? ??? ????? ?????? Microsoft SQL Server 2005 ?? SQL Server 2000 ?? SQL Server 7.0.

????? ?? ????????? ??? ????? ??? ????? ?????? ?????? ?? SQL Server 2008? ???? ??????? "??? ???? ????? ????????" ?? "??? SQL Server ??? ??????". ???? ??? ???????? ????? ??? ????? ?????? ?????? ???? ???? ????? Microsoft (MSDN).

??????? ????

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

?????? ???? SQL Server 7.0 ?? ????? ???????? ??? ??????? ?? SQL Server 2000. ?? ??? ?????? ????? ???????? ?????????? ??????? msdb ?? ????? SQL Server 7.0 ??? SQL Server 2000. ??? ??? ?????? SQL Server 2005? ????? ??? ????? ????? ?????? SQL Server 2005 ??? ????. ????? ??????? ?? ??? ??????? ????? SQL Server ?? ?????? D:\Mssql7. ???????? ??? ???? ????? ??????? ?? ???? ????? ???????? ?????? ????? ???????? ?? ?????? D:\Mssql7\Data ?????????. ??????? ??? ????? ???????? ?????? ????? ????? ????? ???????? ??? ?????? E:\Sqldata.

??????? ?????????? ???????? SQL Server 2005 ? SQL Server 2000 ??? ???:

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

  • ?? ????? ??? ??????? ????? ????? ????????? ?? ???? ????? ???????????????? ? ?? ?????? ??????.
  • Makesure ?? ???? ???? ?????? ??????? (sa) ??????.
  • ???? ?? ?? ????? ??????? ?????? ????? ????? ???????? ?????? ????? ?????? ?????.

    ?????? ????? ????? ????? ????? ???? ???????? ?????? ????? ?????? ???????? ??????? sp_helpfile ????? ??????:
    use <database_name>
    go
    sp_helpfile
    go
  • ??? ?? ???? ?? ???? ??? ??? ????? ???????? ???? ???? ?????. ??? ?????? ?????? ????? ???????? ???? ??? ?????????? ????? ?????? ???? ??? ???? ?? ??? ???? ??? ????? SQL Server? ???? ??? ??? SQL Server ? "??? SQL Server ??? ??????" ?????? ?? ????????? ??? ??????? ???? ???????.

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

???? ?????? ?????? ????? ?????? ???? mydb. ????? ????? ???????? ??? ??? ??? ?????? ???? ? Mydb.mdf ???? ??? ????? Mydblog.ldf. ??? ??? ????? ???????? ???? ???? ???? ???? ?? ????? ?????? ?? ????? ?????? ??? ??????? ?? ????? ?????? ?????? ?? ??????? sp_attach_db ???????. ?? ??? ????? ??????? sp_detach_db ??? ????? ?? ??? ????? ????? ????? ???????? ??? ??????? sp_detach_db ?? ???? ???????.
  1. ??? ????? SQL Server 2005 ????? Studio. ?????? ????? ???? ??? ???????? ???? ???????? ???? ??? Microsoft SQL Server 2005??? ???? ??? ???? SQL Studio ?????.
  2. ???? ??? ??????? ????? ??? ?? ??? ????? ???????? ??? ???:
    use master
       go
       sp_detach_db 'mydb'
       go
  3. ??? ????? ??????? ?????? ???????? ?? ?????? ?????? (D:\Mssql7\Data) ??? ?????? ?????? (E:\Sqldata).
  4. ????? ????? ????? ????????. ??? ??? ??????? ???????? ?? ????????? ?? ???:
    use master
      go
      sp_attach_db 'mydb','E:\Sqldata\mydbdata.mdf','E:\Sqldata\mydblog.ldf'
      go
    ?????? ?? ??????? ?? ????? ??????? ???????? ??????? sp_helpfile ?????:
    use mydb
       go
       sp_helpfile
       go
    ??? ?? ???? ??? ?????? ??? ????? ?? ??????? ???????.
??????????? "????? ????? Microsoft" 922804 ??? ????? ?????? ?????? SQL Server 2005 ??? ????? ???? ???????. ????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ????? Microsoft":
922804 ?????: ??? ??? ????? ?????? Microsoft SQL Server 2005 ???? ?????? ??? ????? ???? ???????? ?? ???? ????? ????? ????? ?????? SQL Server
????? ?? ??? ???????. ???????? ??? ???? ?? ???? ???????? ???????? ???? ??? ??????? ??? ????? ?????? ??? ??? ?? SQL Server 2005. ????? ?? ?????????? ???? ?????? "??? ?????? ????????" ??????? "????? ???????? ?????? ?????" ?? "??? SQL Server ??? ??????". ???? ??? ???????? ????? ????? ???????? ?????? ????? ???? MSDN ??? ???.

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

???? ????? ??????? ????? ???????? ?????? ?????? ????? Northwind ?? SQL Server 2000 ?? SQL Server 7.0? ?? ???? ????? ?????? ????? AdventureWorks ?????? ???????????????? ????? ???????? ?? SQL Server 2005? ???? ??? ??????? ???? ????? ?????? ????????.

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

SQL Server 2005 ? SQL Server 2000

SQL Server 7.0

??? ????? ?????? MSDB

SQL Server 2005 ? SQL Server 2000

SQL Server 7.0

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

SQL Server 2005

SQL Server 7.0 ? SQL Server 2000

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

????? ??? ????? ?????? ???????? ??????? "????? ????? ????????".
  1. ????? ????? ????? ??????? ?????? ?????? ???????? sp_helpfile ??? ???:
    use tempdb
    go
    sp_helpfile
    go
    ????? ??????? ??? ??? ????? ???? "????? ". ?????? ??? ?????? ????? ????? ????????? tempdev ? ???????.
  2. ?????? ????? "????? ????? ????????"? ????? ??? ??????????? ??? ???:
    use master
    go
    Alter database tempdb modify file (name = tempdev, filename = 'E:\Sqldata\tempdb.mdf')
    go
    Alter database tempdb modify file (name = templog, filename = 'E:\Sqldata\templog.ldf')
    go
    ??? ?? ????? ????? ????? ????????? ???????:
    ??????? ??????
    ??? 'tempdev' ????? ?? sysaltfiles.??? ????? ?????? ??? ????? ????? SQL Server.
    ??????? 2
    ????? '???????' ????? ?? sysaltfiles.??? ????? ?????? ??? ????? ????? SQL Server.
  3. ??????? sp_helpfile ?? ?????? ?? ???? ??? ????????? ??? ??? ????? ????? SQLServer.
  4. ????? ?????? ????? SQL Server.

?????

????? ?? ?????????? ???? ??? ????? ???????? ??????? ???? ???????? ?? ????? ????? Microsoft:
912397 ?? ???? ??? ????? ???? SQL Server ??? ????? ????? ??? ????? ???? ?????? ???????? ?? SQL Server 2000 ?? SQL Server 2005 ??? ???? ??? ?????
274188 ??????? "??????? ????? ?????????? ????????" ?? ??? ??? ?????
246133 ????? ????? ??????? ?????? ?????? ?????? ??? ?????? SQL Server
168001 ????? ???? ???????? ????????? ??? ????? ?????? ?? ???? ??? ????? ??? ??????? ????? ????????

????? ?? ?????????? ???? ????? ???????:
???? Microsoft
?????? ??????? ?? Microsoft SQL Server 7.0 ???? ???????
Microsoft Press? 2001
???? Microsoft
?????? ????? ???????: Microsoft SQL Server 2000 ???? ???????
Microsoft Press? 2001
???? Microsoft
Microsoft SQL Server 2000 Resource Kit
Microsoft Press? 2001

???????

???? ???????: 224071 - ????? ??? ??????: 24/?????/1435 - ??????: 4.0
????? ???
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Workgroup Edition
  • Microsoft SQL Server 2005 Express Edition
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition
????? ??????: 
kbsqlsetup kbinfo kbmt KB224071 KbMtar
????? ????
???: ??? ????? ??? ??????? ???????? ????? ?????????? ??????? ?????? ??? ??????? ?? ??? ??????? ?? ??????? ??? ??? ?? ???? ????????? ???? ??????? ???????(CTF) ?? ?? ???? ????? ????. ???? ?? ???? ?????????? ??? ???????? ???????? ???? ??? ?? ???????? ??????? ?? ??? ??????? ???????? ?? ??? ??????? ??????? ??? ?????? ?? ?????? ??? ???? ???????? ???????? ?? ????? ??????? ????? ????? ??????. ??? ?? ???????? ???????? ?? ????? ??? ????? ?? ???????? ?? ???? ????? ?? ?????. ?????? ??? ???? ?????????? ???? ?????? ?? ??? ????? ?? ??? ??? ?? ??????? ?? ??? ????? ?? ???? ????? ????? ?? ????? ??????? ???? ?? ???????? ?? ??? ???????.
???? ??? ????? ??????? ?????? ??????????224071

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

 

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