???? Osql.exe FIX: ?? ???? ?????? ??? SQL ???????? ??????? ?? ???? ????? ???????? ?? ???? ??? ????? ???????? ???? ????? ?? ?? ?? ?????? ???? ???? ??? ???? ??????

?????? ????????? ?????? ?????????
???? ???????: 843282 - ??? ???????? ???? ????? ????? ??? ???????.
(SQL Server 8.0) 471423 BUG #:
Microsoft ?????? ????????? ???????? ?? Microsoft SQL Server 2000 ???? ???? ??????? ???????. ??? ????????? ???????? ?? ???????? ????? ?? ????? ???? ????????? ???????? ???? ?? ? ?????? ???? ?????? ???? ?? ???? ?? ????? ????????? ???????? SQL Server 2000 ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??? ????? ???? osql (Osql.exe) ???????? ???? ????? ??? ???? ???? SQL ?? ?? ????? ??????? Windows Microsoft ?? ???? ????? ????? ?? ???? ??? ???? ?????? ??? ????????? ?? ????? ?????? ???????? osql ???? ??? ?????? ?????? ????? Transact-SQL ???? ?? ?????? ?? ?????? ???????? osql ?????. ??? ?? ???? ?????? ???????? osql ??? ????? ???????? ????? Transact-SQL ?? ?????? ??? ???? ??????? ??? ?????? ?????. ???? ???? SQL ??? ???? ??????? ??? ?????? ?? Succeeded .

?????

???? ??????? ????? ???? ?????? ?????? ?????? ?? ???? ??? ???? ?????? ?? ????????? ????? ??????? CTRL_LOGOFF_EVENT ??? ???? osql. ?????? ???????? osql ??????? ??? ??????? ??? ?? ??? ????? ?????? ???????? osql ???????? ?? ???? ??? ???? ?????? ?????? ??????????. ????? ???? ???????.

????

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

??? ??? ???????? ?? ?????? ??? ???? ???? ????? ?? Microsoft SQL Server 2000. ?????? ??? ???? ?? ?????????? ???? ??? ??? ?????? ?????? ???? ??????? ?? ????? ?????Microsoft:
290211 ????? ?????? ??? ???? ???? ???? SQL Server 2000

??????? Hotfix

????? ????? ?????????? ?? ??? ??????? ??????? ????? ??? ???? ????? (?? ?????? ???? ?????) ???????? ?? ?????? ??????. ???????? ???????? ?????? ??? ?????? ?? ??????? ??????? (UTC). ????? ???? ???? ??????? ???, ??? ??????? ??? ??????? ??????. ????? ????? ??? UTC ??????? ??????? ?????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? ???? ??????.
   Date         Time   Version        Size       File name
   ------------------------------------------------------------------
   19-Jun-2004  02:44  2000.80.954.0    664,128  Autoplt.dll      
   19-Jun-2004  02:44  2000.80.954.0     78,400  Console.exe      
   19-Jun-2004  02:44  2000.80.954.0    315,968  Custtask.dll     
   19-Jun-2004  02:44  2000.80.954.0     33,340  Dbmslpcn.dll     
   08-Apr-2004  21:42                   786,432  Distmdl.ldf
   08-Apr-2004  21:42                 2,359,296  Distmdl.mdf
   10-Oct-2003  18:48                       180  Drop_repl_hotfix.sql
   19-Jun-2004  02:44  2000.80.954.0  1,905,216  Dtspkg.dll       
   19-Jun-2004  02:44  2000.80.954.0    528,960  Dtspump.dll      
   19-Jun-2004  02:44  2000.80.954.0  1,557,052  Dtsui.dll        
   19-Jun-2004  02:44  2000.80.954.0    639,552  Dtswiz.dll       
   10-Oct-2003  18:48                   747,927  Instdist.sql
   10-Oct-2003  18:48                     1,581  Inst_repl_hotfix.sql
   19-Jun-2004  02:44  2000.80.954.0    352,828  Isqlw.exe        
   19-Jun-2004  02:44  2000.80.954.0     82,492  Itwiz.exe        
   19-Jun-2004  02:44  2000.80.954.0     90,692  Msgprox.dll      
   19-May-2004  23:43  8.11.40209.0     209,408  Mssdi98.dll      
   19-Jun-2004  02:44  2000.80.954.0     62,024  Odsole70.dll     
   19-Jun-2004  02:45  2000.80.954.0     25,144  Opends60.dll     
   19-Jun-2004  02:44  2000.80.954.0     57,904  Osql.exe         
   19-Jun-2004  02:44  2000.80.954.0    279,104  Pfutil80.dll     
   10-Oct-2003  18:37                   550,780  Procsyst.sql
   08-Apr-2004  21:42                    12,305  Qfe469315.sql
   08-Apr-2004  21:42                    19,195  Qfe469571.sql
   17-Jun-2004  15:12                 1,105,167  Replmerg.sql
   19-Jun-2004  02:44  2000.80.954.0    221,768  Replprov.dll     
   19-Jun-2004  02:44  2000.80.954.0    307,784  Replrec.dll      
   17-Jun-2004  02:37  2000.80.954.0    159,813  Replres.rll
   10-Oct-2003  18:48                 1,087,150  Replsys.sql
   10-Oct-2003  18:48                   986,603  Repltran.sql
   19-Jun-2004  02:44  2000.80.954.0    287,304  Rinitcom.dll     
   19-Jun-2004  02:44  2000.80.954.0     78,416  Sdiclnt.dll      
   19-Jun-2004  02:44  2000.80.954.0     66,112  Semmap.dll       
   19-Jun-2004  02:44  2000.80.954.0     57,916  Semnt.dll        
   19-Jun-2004  02:44  2000.80.954.0    492,096  Semobj.dll       
   17-Jun-2004  03:14  2000.80.954.0    172,032  Semobj.rll
   19-Jun-2004  02:44  2000.80.954.0     53,832  Snapshot.exe     
   12-Mar-2004  03:10                   117,834  Sp3_serv_uni.sql
   19-Jun-2004  02:43  2000.80.954.0     28,672  Sqlagent.dll     
   19-Jun-2004  02:44  2000.80.954.0    311,872  Sqlagent.exe     
   19-Jun-2004  02:43  2000.80.954.0    168,001  Sqlakw32.dll     
   19-Jun-2004  02:44  2000.80.954.0     33,344  Sqlctr80.dll     
   19-Jun-2004  02:44  2000.80.954.0  4,215,360  Sqldmo.dll       
   19-Jun-2004  02:44                    25,172  Sqldumper.exe    
   17-Jun-2004  02:24  2000.80.954.0     28,672  Sqlevn70.rll
   19-Jun-2004  02:44  2000.80.954.0    180,792  Sqlmap70.dll     
   19-Jun-2004  02:44  2000.80.954.0    188,992  Sqlmmc.dll       
   17-Jun-2004  03:22  2000.80.954.0    479,232  Sqlmmc.rll
   19-Jun-2004  02:44  2000.80.954.0    401,984  Sqlqry.dll       
   19-Jun-2004  02:44  2000.80.954.0     57,920  Sqlrepss.dll     
   19-Jun-2004  02:44  2000.80.954.0  7,581,777  Sqlservr.exe     
   19-Jun-2004  02:44  2000.80.954.0    590,396  Sqlsort.dll      
   19-Jun-2004  02:44  2000.80.954.0     45,644  Sqlvdi.dll       
   19-Jun-2004  02:44  2000.80.954.0    106,588  Sqsrvres.dll     
   19-Jun-2004  02:44  2000.80.954.0     33,340  Ssmslpcn.dll     
   19-Jun-2004  02:44  2000.80.954.0     82,492  Ssnetlib.dll     
   19-Jun-2004  02:44  2000.80.954.0     25,148  Ssnmpn70.dll     
   19-Jun-2004  02:44  2000.80.954.0    123,456  Stardds.dll      
   19-Jun-2004  02:44  2000.80.954.0    158,240  Svrnetcn.dll     
   19-Jun-2004  02:44  2000.80.954.0     76,416  Svrnetcn.exe     
   19-Jun-2004  02:44  2000.80.954.0     49,228  Ums.dll          
   19-Jun-2004  02:44  2000.80.954.0     98,872  Xpweb70.dll      
				
?????? ????? ????????? ??????? ??? ????? ??????? ???? ???? ????? ??? ??? ??????? ????? ??????.

?????

?? ????? Microsoft ?? ??? ?? ????? ?? ?????? Microsoft ???????? ?? ?????? " Applies ??? ". ?? ????? ????? ??? ??????? ?? Microsoft SQL Server 2000 Service Pack 4.

??????? ????

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

  1. ??? ???? ???? ???? ?????? ??????? ?? ?????????.
  2. ????? ???????.
  3. ?? ???????? ????? ?????? ???? SQL ???????? ???? ??? ??????? ?? ????? ??????. ??? ???? ??????? ??????? SQL ???????? ???????? ????? ?????? ?? ???? ?? ??????:
    declare @variable int
    set @variable= 2
    while (@variable > 1)
    begin
    print @variable
    set @variable= @variable + 1
    end
  4. ??? ???????? ????? ?? \Test.sql InstallationDrive .

    ?????? InstallationDrive ?? ?????? ?????? ????? ??????? ????????? ???? ??????? ?? ?????????.
  5. ?? ???? ???? ???? ?????? ??????? ??? ????? ?????? ???????? osql ???????? ????? ????? ???????:
    • ??????? ????? ?????? Windows
      1. ?? ???? ??????? ???? ???? ??????.
      2. ?? ?? ??????? ???? ??? ??? ???? , ????? ???? ?????? .
      3. ???? ????? ??????? ??? ???? ????? ???? ???? ?????? ????? ???? ????? .
      4. ?? ?????? ????? ???? ????? ??????:
        "InstallationDrive:\Program Files\Microsoft SQL Server\80\Tools\Binn\Osql.exe" -E -i InstallationDrive:\Test.sql
        ?????? InstallationDrive ?? ?????? ?????? ????? ??????? ????????? ???? ??????? ?? ?????????.
      5. ?? ???? ????? ?? , ???? InstallationDrive:\Program Files\Microsoft SQL Server\80\Tools\Binn.
      6. ?? ????? ??????? ????? ????? ????? ????? ?? ??? ?? ???? ??? ????? .
      7. ?? ???? ?????? ????? ??????? ?????? ???? ???? ???????? ????? ?????? ?? ?????? ?????? ?????? ????? ??? ??? ?? ???? ??? ????? .
      8. ???? ??? ?????? ?????? ??? ?????? ???? ??? ????????, ??? ?? ???? ??? ????? .
      9. ????? ?????? ??? ???? ??? ???? ?????? ????? ????? ?????? ???????? ?? ?????? ?????? ?? ???? ??? ???? ?????? ??? ?????????.
    • ?????? ???? ???? SQL
      1. ??? ????? SQL Server Enterprise Manager.
      2. ????? ?????? ????? ?? SQL Server.
      3. ??? ??? ??????? ????? ????? , ??? ?? ?? ?????? ???? SQL Server .
      4. ??? ???? SQL Server , ???? ??? ?????? ?????? ??? ???? ?? ??? ?? ???? ??? ???? ????? .
      5. ?? ??????? ???? ???? ????? ?????? ?? ?????? ????? .
      6. ?? ??????? ????? , ???? ??? ???? .
      7. ?? ??????? ??? , ???? ????? ?????? ?? ?????? ??? ?????? .
      8. ?? ??????? ??? , ???? ??? ????? ???? ??????? (CmdExec) .
      9. ?? ?????? ??????? , ???? "InstallationDrive:\Program Files\Microsoft SQL Server\80\Tools\Binn\Osql.exe" -E -i InstallationDrive:\Test.sql -o InstallationDrive:\Test.txt ? ??? ?? ???? ??? ????? .

        ?????? InstallationDrive ?? ?????? ?????? ????? ??????? ????????? ???? ??????? ?? ?????????.
      10. ?? ????? ???? ?????- SQLServerName ???? ? ???? ??? ????? .
      11. ???? ??? ?????? ?????? ??? ?????? ???? ??? ????????, ??? ?? ???? ??? ??? ?????? .
      12. ????? ?????? ??? ???? ??? ???? ?????? ????? ????? ?????? ?? ?????? ?????? ?? ???? ??? ???? ?????? ??? ?????????.
    ????? ?? ???? ?????? ?? ?????? ???? SQL Server ???? ????? ????? ???? ?????? ?????? ?? ????????? ???? ??? ???? ??????. ??? ????? ?? ???????? ?? ???? ?????? ?? ???? ???? SQL ???? ?? ??? ????? ??????.

?????

?????? ??? ???? ?? ?????????, ????? ????? ????? ??? Microsoft Developer Network (MSDN) ???????:
????? osql Script ??????? ???????? Transact-SQL
http://msdn2.microsoft.com/en-us/library/aa213087(SQL.80).aspx

SetConsoleCtrlHandler
http://msdn2.microsoft.com/en-us/library/ms686016.aspx

HandlerRoutine
http://msdn2.microsoft.com/en-us/library/ms683242.aspx

???????

???? ???????: 843282 - ????? ??? ??????: 21/????/1428 - ??????: 3.2
????? ???
  • Microsoft SQL Server 2000 Developer Edition
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 2000 Enterprise Edition
  • Microsoft SQL Server 2000 Personal Edition
  • Microsoft SQL Server 2000 Enterprise Edition
  • Microsoft SQL Server 2000 Workgroup Edition
  • Microsoft SQL Server 2000 Desktop Engine (Windows)
  • Microsoft SQL Server 2000 Developer Edition
  • Microsoft SQL Server 2000 Enterprise Edition 64-bit
????? ??????: 
kbbug kbfix kbkern32dll kbqfe kbsqlserv2000presp4fix kbhotfixserver KB843282 KbMtar kbmt
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????. ??? ?? ???? ??? ??????? ????? ?? ???????? ?? ??? ???????? ?????? ????? ????????? ??????? ???? ??? ???????
???? ??? ????? ??????? ?????? ??????????843282

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

 

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