不区分大小写的MS SQL Server

时间:2011-03-28 18:21:21

标签: sql-server-2008

C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>Setup.exe /QUI
ET /ACTION=REBUILDDATABASE /INSTANCENAME=SQL2008 /SQLSYSADMINACCOUNTS=sa /SA
PWD=xxx /SQLCOLLATION=SQL_Latin1_General_CP1_CI_AS

Microsoft (R) SQL Server 2008 Setup 10.00.2731.00
Copyright (c) Microsoft Corporation.  All rights reserved.

The following error occurred:
The state of your SQL Server installation was not changed after the setup execut
ion. Please review the summary.txt logs for further details.

Error result: -2068643838
Result facility code: 1203
Result error code: 2

Please review the summary.txt log for further details

用户名,密码和实例都是正确的。我尝试使用本手册:

http://v-reality.info/2010/10/vcenter-server-and-microsoft-sql-server-collation-conflicts/

日志:

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2068643838
  Exit facility code:            1203
  Exit error code:               2
  Exit message:                  The state of your SQL Server installation was not changed after the setup execution. Please review the summary.txt logs for further details.
  Start time:                    2011-03-28 20:15:39
  End time:                      2011-03-28 20:16:11
  Requested action:              RebuildDatabase

Machine Properties:
  Machine name:                  MITJAB-NOTEBOK
  Machine processor count:       2
  OS version:                    Windows Vista
  OS service pack:               
  OS region:                     Slovenija
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Product features discovered:
  Product              Instance             Instance ID                    Feature                                  Language             Edition              Version         Clustered 
  Sql Server 2008                                                          Management Tools - Basic                 1033                 Standard Edition     10.50.1600.1    No        
  Sql Server 2008                                                          Management Tools - Complete              1033                 Standard Edition     10.50.1600.1    No        
  Sql Server 2008                                                          Client Tools Connectivity                1033                 Standard Edition     10.50.1600.1    No        
  Sql Server 2008                                                          Client Tools Backwards Compatibility     1033                 Standard Edition     10.50.1600.1    No        
  Sql Server 2008                                                          Client Tools SDK                         1033                 Standard Edition     10.50.1600.1    No        
  Sql Server 2008                                                          Integration Services                     1033                 Standard Edition     10.50.1600.1    No        

Package properties:
  Description:                   SQL Server Database Services 2008
  SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
  ProductName:                   SQL2008
  Type:                          RTM
  Version:                       10
  SPLevel:                       0
  Installation edition:          EVAL

User Input Settings:
  ACTION:                        RebuildDatabase
  CONFIGURATIONFILE:             
  HELP:                          False
  INDICATEPROGRESS:              False
  INSTANCENAME:                  SQL2008
  QUIET:                         True
  QUIETSIMPLE:                   False
  SAPWD:                         *****
  SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
  SQLSYSADMINACCOUNTS:           sa
  X86:                           False

  Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110328_201509\ConfigurationFile.ini

Detailed results:

Rules with failures:

Global rules:

There are no scenario-specific rules.

Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110328_201509\SystemConfigurationCheck_Report.htm

Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented

Exception type: Microsoft.SqlServer.Setup.Chainer.Workflow.NoopWorkflowException
    Message: 
        The state of your SQL Server installation was not changed after the setup execution. Please review the summary.txt logs for further details

2 个答案:

答案 0 :(得分:5)

如果您使用的是Sql Server 2008 R2,请尝试从以下位置运行setup.exe:

  

\ Program Files \ Microsoft SQL Server \ 100 \ Setup   Bootstrap \ SQLServer2008R2

如果命令行中的版本与正在运行的sql server的版本不匹配,您可以确定可能存在问题/不匹配 - 例如,Management Studio说它的版本为10.50.1600,而运行错误的< strong> setup.exe 显示10.00.2731.00版本。

答案 1 :(得分:1)

我今天浪费了太多时间来尝试正常的命令提示,提升的命令提示,SQL Server CD上的setup.exe,Bootstrap文件夹中的setup.exe等等。最后它结果是一个简单的答案:/ InstanceName参数实际上只是实例名称。

即:如果使用SSMS时连接到DevServer \ DevInstance,2433那么参数只是/ InstanceName = DevInstance

我已经从setup.exe(Microsoft(R)SQL Server 2008安装程序10.00.1600.22)的CD版本和C:\ Program Files \ Microsoft SQL Server \ 100 \ Setup Bootstrap中的setup.exe进行了测试发布(Microsoft(R)SQL Server 2008安装程序10.00.5500.00)。

我在任一地方的完整命令行是:

setup.exe /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=DevInstance /SQLSYSADMINACCOUNTS=BUILTIN\Administrators /SAPWD="..." /SQLCOLLATION=SQL_Latin1_General_Pref_CP1_CI_AS