????? ??????? ?????? ??? ???? ????? ??? ??????? ?? SQL Server ???????? ??? ??????? ???? ???? ?????? Windows XP Service Pack 2

?????? ????????? ?????? ?????????
???? ???????: 839980 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

????? ???

Microsoft ????? Windows XP Service Pack 2 (SP2) ???? ????? Windows. ???? ????? Windows ????? ???? ?? "???? ????? ????? ??????" (ICF). ?????????? Windows ?? ????? ???? ????? ??? ????? ????????? ???? ???? ????? ??????? Windows XP Service Pack 2. ???? ???? ????? Windows ???? ??? ??????? ???? ??????? ???? ?????? TCP/IP, ???? ?????? ????? ?? ???? ?????? ??????? ????? ???? (RPC) ?????? Multiprotocol. ??? ??? ???? ?? ???? ??? ???? ???????? ?? Microsoft "(MSDE) ? Microsoft SQL Server 2000 ? Microsoft SQL Server 2005.

??? ??? ???? ????? ????? SQL Server ?? MSDE ?? ?????? ??? ?????? ???????? ????? ???????? TCP/IP ?? ???????? RPC ????? ??????? ??????? ?????? ???? ??? ??????? ?? ??? "???? ?? ?????????" ???? ??????? ???????? ???? ????? ????? ?? ??????? ???? ????? Windows.

??? ????? ??????? ?????? ????? ?? ??? ???????. ???????? ????? ????? ?????? ???? ????? Windows ??????? ???? ????? ?????? SQL Server ??????? ??? ???? ??????? ??? ???? ????????????. ???????? ????? ?????? ??????? ????? ???? ????? Windows ?????? SQL Server ??????? ??? TCP/IP ???.

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


???? ??????? ?????? ???? ??? ???????? ?? ??? ??????? Multiprotocol (RPC) ??? ?????? ??? ????? ???. ??? ??? ???? ?????? RPC ??? TCP ???? ????? ????? ????? Microsoft ??????? ?????? ??? ??????? ??? ??????? TCP/IP:
841252????? ????? TCP/IP ?? Windows XP Service Pack 2 ?????? ?? SQL Server 2000

??????? ????

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

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

??????? ???? ??? ??? ???????? ?????
  • ??? ?? ??? ????? ??? ???????? ????? ??? ??? ????? ????????? ???? ???? ????? ??????? Windows XP Service Pack 2.
  • ??? ???????? ????? ??? ?????? ?????? ?????? ??? ????? ????? ???????? ??? ????? Multiprotocol (RPC).
  • ???? ??? ???????? ????? Multiprotocol (RPC) ??? ????? ??? ??????? ??????? ? ??? ??? ?????? 445.
  • ?? ???? ??? ???????? ????? ????? ?????? ??????.

?????? ???????? ????? ???? ??????? ???????:
  1. ??? ????? "???????".
  2. ??? ?? ??? ????????? ???????? ??????? ?? "???????":
    echo off
    
    if "%1"=="-np" goto HandleNp
    if "%1"=="-rpc" goto HandleRpc
    if "%1"=="-tcp" goto HandleTcp
    if "%1"=="-browser" goto HandleBrowser
    
    rem Usage
    :Usage
    
    echo "Usage: setupSqlServerPortAll -[np | rpc | tcp | browser] -port [portnum] -[enable | disable]
    echo "-np : Setup SQLServer to listen on Named Pipe connections for local subnet only"
    echo "-rpc : Setup SQLServer to listen on RPC multiprotocol for local subnet only"
    echo "-tcp : Setup SQLServer to listen on TCP connections for local subnet only"
    echo "       Must specify a port if -tcp option is chosen."
    echo "-browser :  Setup SQLServer to provide SSRP service to support named instances"
    echo "-port : Applies only for tcp"
    echo " One of the following options MUST be specified"
    echo "-enable: Enables a port"
    echo "-disable: Disables a port"
    
    goto Exit
    
    :HandleTcp
    echo %2
    if "%2"=="-port" goto cont
    goto Usage
    :cont
    if "%3"=="" goto Usage
    if "%4"=="-enable" goto EnableTcp
    if "%4"=="-disable" goto DisableTcp
    goto Usage
    
    :EnableTcp
    echo "Enabling SQLServer tcp access for port %3 local subnet only"
    netsh firewall set portopening tcp %3 SQL%3 ENABLE subnet
    goto Exit
    
    :DisableTcp
    echo Disabling SQLServer tcp access for port %3 local subnet only"
    netsh firewall set portopening tcp %3 SQL%3 disable subnet 
    goto Exit
    
    :HandleNp
    if "%2"=="-enable" goto EnableNp
    if "%2"=="-disable" goto DisableNp
    goto Usage
    
    :EnableNp
    echo "Enabling SQLServer named pipe access for local subnet only"
    netsh firewall set portopening tcp 445 SQLNP ENABLE subnet
    goto Exit
    
    :DisableNp
    echo Disabling SQLServer named pipe access for local subnet only"
    netsh firewall set portopening tcp 445 SQLNP DISABLE subnet
    goto Exit
    
    :HandleRpc
    if "%2"=="-enable" goto EnableRpc
    if "%2"=="-disable" goto DisableRpc
    goto Usage
    
    :EnableRpc
    echo "Enabling SQLServer multiprotocol access for local subnet only"
    netsh firewall set portopening tcp 445 SQLNP enable subnet
    goto Exit
    
    :DisableRpc
    echo Disabling SQLServer multiprotocol access for local subnet only"
    netsh firewall set portopening tcp 445 SQLNP disable subnet
    goto Exit
    
    :HandleBrowser
    if "%2"=="-enable" goto EnableBrowser
    if "%2"=="-disable" goto DisableBrowser
    goto Usage
    
    :EnableBrowser
    echo "Enabling SQLServer SSRP service for local subnet only"
    netsh firewall set portopening udp 1434 SQLBrowser enable subnet
    goto Exit
    
    :DisableBrowser
    echo "Enabling SQLServer SSRP service for local subnet only"
    netsh firewall set portopening udp 1434 SQLBrowser disable subnet
    goto Exit
    
    :Exit
    endlocal
    
    
  3. ??? ????? ???? .txt ?? ?? ?????? ????? ConfigSQLPorts.txt.
  4. ????? ????? ????? ConfigSQLPorts.txt ConfigSQLPorts.bat.

??? ????? ???????? ????? ?? ??? ConfigSQLPorts.bat ??? ???? ??????? ????????? ???? ??? ??? ???????? ?????. ?????? ???????? ????? ???? ??????? ???????:
  1. ???? ??? ???? ?? ???? ??? ????? ????? cmd ?? ???? ??? ?????.
  2. ?? ???? ??????? ?????? ????? "????? ???????" ?????? ???????? ??? ?? ??? ?????? ???? ??? ??? ????? ConfigSQLPorts.bat ??. ??? ???? ??????? ??? ?? ??? ????? ConfigSQLPorts.bat ?? C:\Myfiles ? ????? ???? myfiles ????? ?? ???? ???????, ????? ??? ENTER. ????? ??? ??? ????? ?????? ????? ?? ??? C:\Myfiles.
  3. ?????? ???????? ????? ConfigSQLPorts.bat ???? ConfigSQLPorts.bat ?? ???? ??????? ?? ???? ????? ??????? ENTER.




???????? ??? ???? ???? ???????? ???? ????? TCP/IP ???

???????? ????? ?????? ?? ??? ?????? ?????? ???? ????? Windows ???? ????? ?????? SQL Server ??????? ??? TCP/IP ???.

?????? ???????? ????? ???? ??????? ???????:
  1. ??? ????? "???????".
  2. ??? ?? ??? ????????? ???????? ??????? ?? "???????":

    echo off
    setlocal
    
    if "%1"=="-port" goto HandleTcp
    
    rem Usage
    :Usage
    
    echo "Usage: setupSqlServerPort -port [portnum] -[enable | disable] [ALL | SUBNET]"
    echo -port : Specifies the port to be enabled or disabled. Port is not optional.
    echo -enable: Enables a port
    echo -enable ALL:  enables access for ALL
    echo -enable SUBNET:  enables access for SUBNET
    echo -disable: Disables a port
    echo  one of -enable or -disable must be specified
    echo  the default scope is SUBNET only
    
    goto Exit
    
    :HandleTcp
    if "%2"=="" goto Usage
    if "%3"=="-enable" goto EnableTcp
    if "%3"=="-disable" goto DisableTcp
    goto Usage
    
    
    :EnableTcp
    set SCOPE="%4"
    if "%4"=="ALL" echo "Enabling SQLServer tcp access for port %2 ALL access" 
    if "%4"=="SUBNET" echo "Enabling SQLServer tcp access for port %2 subnet only access"
    if "%4"=="" set SCOPE="SUBNET"
    
    netsh firewall set portopening tcp %2 SQL_PORT_%2 ENABLE %SCOPE%
    goto Exit
    
    :DisableTcp
    echo Disabling SQLServer tcp access for port %2"
    netsh firewall set portopening tcp %2 SQL_PORT_%2 disable 
    goto Exit
    
    :Exit
    endlocal
    
    
  3. ??? ????? ???? .txt ?? ?? ?????? ????? SetupSqlServerPort.txt.
  4. ????? ????? ????? SetupSqlServerPort.txt SetupSqlServerPort.bat.


??? ????? ???????? ????? SetupSqlServerPort.bat ??? ???? ??????? ????????? ???? ??? ??? ???????? ?????. ?????? ???????? ????? ???? ??????? ???????:
  1. ???? ??? ???? ?? ???? ??? ????? ????? cmd ?? ???? ??? ?????.
  2. ?? ???? ??????? ?????? ????? "????? ???????" ?????? ???????? ??? ?? ??? ?????? ???? ??? ??? ????? SetupSqlServerPort.bat ??. ??? ???? ??????? ??? ?? ??? ????? SetupSqlServerPort.bat ?? C:\Myfiles ? ????? ???? myfiles ????? ?? ???? ???????, ????? ??? ENTER. ????? ??? ??? ????? ?????? ????? ?? ??? C:\Myfiles.
  3. ?????? ???????? ????? SetupSqlServerPort.bat ???? ??????? ???? setupSqlServerPort.bat ? ????? ??? ENTER.


?????

?????? ??? ??????? ?????? ??? ????? SQL Server 2000 ? Windows XP Service Pack 2 ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
841249????? ????? Windows XP Service Pack 2 (S) ????????? ?? SQL Server

???????

???? ???????: 839980 - ????? ??? ??????: 11/?? ?????/1426 - ??????: 3.5
????? ???
  • Microsoft SQL Server 2000 Desktop Engine (Windows)
  • Microsoft SQL Server 7.0 Standard Edition
  • Microsoft SQL Server, Desktop Edition
  • Microsoft Windows XP Embedded
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Express Edition
  • Microsoft SQL Server 2005 Workgroup Edition
  • Microsoft SQL Server 2000 Standard Edition
????? ??????: 
kbmt kbfirewall kbinfo KB839980 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????839980

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

 

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