???? ????? ??? ??? ??????? ????? SQL Server: "?? ???? ??? ????? ???????? ????????? ????????"

?????? ????????? ?????? ?????????
???? ???????: 307864 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ?? ?????? ????? ?????? ????????. ??? ??????? ????? ????????? ???? ???? ?????? Microsoft SQL Server? ??? ??? ?????? ????? ?????? ????? ????? ??? ??????? ????? ???????? ??????????. ??? ???? ?? ???? ??? ???? ????? ???????? ?????????? ?? ??? ???????? ??? ????? ???????. ????? ?? ???? ????? ????? ????? 4062 ?? ????? ??? 4064. ?? ????? ????? ??? ???:
?? ???? ??? ????? ???????? ????????? ????????

?????

????? ???????? ????????? ???????? ??? ?????? ?? ??? ???????. ?? ?????? ?? ????? ????????:
  • ?? ?? ??? ????? ???.
  • ?? ??? ???????.
  • ?? ??? ???????? ?????? ???? ????? ????? ?????? ?????? ???? ??? ?? ???? ???.
  • ?? ???.
  • ?? ????? ??? ?????? RESTRICTED_USER.
  • ??? ????.
  • ??? ????? ???? ???????.
  • ??? ???? ????? ?????? ?????? ??? ?????? ?? ?? ??? ???????? ??????.
  • ??? ?? ???? ????? ????????.
???????? ??? ???? ?? ???? ???? ????? ?????? ???? ?? ??? ??????? ?????? ???????? ?????????? ????? ??? ????????? ??? ?????? ?? ??? ???????.

???? ??????

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

SQL Server 2005 ?????????? ??????

????? ??????? ?????? ???????? sqlcmd ?????? ????? ???????? ?????????? ?? SQL Server 2005. ?????? ????? ???? ??????? ???????:
  1. ???? ??? ????? ?? ???? ??? ?????? ??? cmd? ?? ???? ENTER.
  2. ?????? ???? ????? ???????? ????? ???? ?????? ????? ???? SQL Server ??????:
    • ??? ??? ????? ???? SQL Server ?????? ?????? Microsoft Windows ??????? ???????? ???? ?? ??? ?? ???? ???????? ????? ENTER:
      sqlcmd ? E-S ??? ?????? ?????-d
    • ??? ?? ????? ???? SQL Server ?????? ?????? ???? SQL ??????? ???????? ???? ?? ??? ?? ???? ???????? ????? ENTER:
      sqlcmd-S ??? ?????? -d ????????-U ??????? -P ???? ??????
    ?????? ??? ?????? ????? ????? ???? ???? SQL Server 2005 ???? ??? ??????? ??. ??????? ????? ????? ?????? ???? SQL Server ?? ????? ????? ???????? ?????????? ?????? ??. ???? ?????? ????? ????? ????? ???? ????? ???? SQL Server.
  3. ???? sqlcmd? ???? ?? ???? ??? ?? ???? ENTER:
    ????? ????? ?????? ??????? ?? DEFAULT_DATABASE = ??????????
    ?????? ?????????? ????? ????? ???? ????? ???????? ???????? ???? ???? ?????? ????? ?? ???? ????? ???? SQL Server ?? ??????.
  4. ???? ?? ???? sqlcmd? ????????? ?? ???? ENTER.

SQL Server 7.0 ? SQL Server 2000

????? ??????? ?????? ???????? osql ?????? ????? ???????? ?????????? ?? SQL Server 2000 ??? SQL Server 7.0. ?????? ????? ???? ??????? ???????:
  1. ?? ???? ???????? ???? ?? ??? ??? ?? ???? ENTER:
    ?????-d-E C:\>osql
  2. ??? osql ????????? ???? ?? ??? ????? ??? ENTER:
    1 > sp_defaultdb '????????' s_login '?' ???????? '
  3. ???? ?????? ???? ?? ??? ????? ??? ENTER:
    2 > ????????

?????

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

??????? ????

???? ??? ??????? ???? ??????? ???????? OSQL ???????? ?????? -d ?? ????? ?????? ?????? ?? ???? ????? ??? ??????. ??? ??????? ??? ?? ????? ???.

???? ?????? ???? ?????????? ???? ???? ?????? ??? ??? ?? ????? ????? ?????? ???? SQL Server ?? ???? ??? ???? ????? ????????:
  • Studio ????? ???? SQL (SQL Server 2005)
    ?? ???? ??????? ??? ??????
    ??????? ??????:
    ?? ???? ??? ????? ???????? ????????? ????????. ??? ????? ??????.??? ????? ?????? ???????? '??? ????????'. (???? Microsoft SQL? ???: 4064)
  • ??????? ?????? ???????? Sqlcmd ?? SQL Server 2005
    Msg 4064? ??????? 11 ???? 1? ???? ??? ??????? ????? ?????
    ?? ???? ??? ????? ???????? ????????? ????????. ??? ????? ??????.
    ?? ?? 18456? ??????? 14 ???? 1? ???? ??? ??????? ?? 1Login ??? ???????? '??? ????????'.
  • ???? ??????? SQL Server 2000 (QA)
    ??? ???? ??? ??????? ????? ??????????:
    ????: Msg 4064? ????? 16 ???? 1
    [Microsoft][?????? ????? ODBC SQL Server][SQL Server]?? ???? ??? ????? ???????? ????????? ????????. ??? ????? ??????.
  • ????? ??????? ???? SQL Server 2000 (????? ???? ??????)
    ????? ???? ????? ??? ??????????-?? ???? ??? ????? ???????? ????????? ???????? 'dbid'. ??????? ????? ???????? ???????? ????? ?? ???.

    ?????? ?????? ?? ????? ???? SQL ??????? ?? ????? ????? SQL Server ????? ?? (?????? ????? ????? ?????? ?????? ??????????) ???? ????????.
  • ???? ??????? ???????? SQL Server 2000 OSQL

    ????? ????? ????? ??????? ??? ??????? ????? C:\>osql E :
    ?? ???? ??? ????? ???????? ????????? ????????. ??? ????? ??????.
  • ???? ??????? SQL Server 7.0 (QA)
    ??? ???? ??? ??????? ????? \\TESTSERVER:
    ????: Msg 4062? ????? 16 ???? 1
    [Microsoft][?????? ????? ODBC SQL Server][SQL Server]?? ???? ??? ????? ???????? ????????? ???????? '<ID>'. ??????? ????? ???????? ???????? ????? ?? ???.</ID>
  • ???? ??????? ???????? SQL Server 7.0 OSQL

    ????? ????? ????? ??????? ??? ??????? ????? C:\>osql E :
    ?? ???? ??? ????? ???????? ????????? ???????? 'dbid'.
    ??????? ????? ???????? ???????? ????? ?? ???.
???? ?????? ?????? ???? ?? ????????? ??? ????? ????? ???????? ???? ????? ??? ???? SQL Server ????? ?? ???? ??????? ?????? SQL Server ???? ??? ????? ??????? ?? ????????.
?? ??? ??????????? ??? ??????
????? ???????????? ?????????? ?????????????? ???????? ???? ??? ????? ???????
???? ???? ????????????? ????? ?????? SQL Server ????? ???????? ????? ???????? ?????????? ??? ????????? ????? ???? ?????? ???????????? ?? ???? ????? ??? ??????? ?????? ?? ???? SQL Server ?????? ?????? ???????? ?? ??? ???????. ???? ???????? ???????? ?? ?????? "??? ?????????" ???????? ???????? ????? ??????? ???????? ?? ??? ??????? ??? ??? ???????. SQL Server 2008

SQL Server 2008 R2

SQL Server 2012

???????

???? ???????: 307864 - ????? ??? ??????: 26/?????/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
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Enterprise Evaluation
  • Microsoft SQL Server 2008 Express
  • Microsoft SQL Server 2008 Express with Advanced Services
  • Microsoft SQL Server 2008 R2 Datacenter
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Express
  • Microsoft SQL Server 2008 R2 Express with Advanced Services
  • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2008 R2 Standard Edition for Small Business
  • Microsoft SQL Server 2008 R2 Web
  • Microsoft SQL Server 2008 R2 Workgroup
  • Microsoft SQL Server 2008 Standard Edition for Small Business
  • Microsoft SQL Server 2008 Web
  • Microsoft SQL Server 2008 Workgroup
  • Microsoft SQL Server 2012 Developer
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Express
  • Microsoft SQL Server 2012 Standard
  • Microsoft SQL Server 2012 Web
  • SQL Server 2012 Enterprise Core
????? ??????: 
kbtshoot kbsqlsetup kbprb kbmt KB307864 KbMtar
????? ????
???: ??? ????? ??? ??????? ???????? ????? ?????????? ??????? ?????? ??? ??????? ?? ??? ??????? ?? ??????? ??? ??? ?? ???? ????????? ???? ??????? ???????(CTF) ?? ?? ???? ????? ????. ???? ?? ???? ?????????? ??? ???????? ???????? ???? ??? ?? ???????? ??????? ?? ??? ??????? ???????? ?? ??? ??????? ??????? ??? ?????? ?? ?????? ??? ???? ???????? ???????? ?? ????? ??????? ????? ????? ??????. ??? ?? ???????? ???????? ?? ????? ??? ????? ?? ???????? ?? ???? ????? ?? ?????. ?????? ??? ???? ?????????? ???? ?????? ?? ??? ????? ?? ??? ??? ?? ??????? ?? ??? ????? ?? ???? ????? ????? ?? ????? ??????? ???? ?? ???????? ?? ??? ???????.
???? ??? ????? ??????? ?????? ??????????307864

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

 

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