SCCM 2012 SQL 定序修改方法

來源:互聯網
上載者:User

標籤:sccm 2012 sql 定序 修改

SQL Server伺服器修改定序的方法

操作及驗證步驟:

1 登入資料庫後,查看當前安裝資料庫預設定序的兩種方式

方式一、使用SQL Server 2014 Management Studio登入資料庫後,右鍵點選連結資料庫伺服器,點擊屬性,在伺服器屬性—>常規—>伺服器定序

 

650) this.width=650;" alt="查看SQL Server伺服器定序" height="563" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357240.png" width="440" style="border-width:0px;padding:0px;margin:0px;list-style:none;height:560px;width:437.655px;" />

 

圖1

 

650) this.width=650;" alt="查看SQL Server伺服器定序" height="631" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357241.png" width="693" style="border-width:0px;padding:0px;margin:0px;list-style:none;height:560px;width:615.024px;" />

 

圖2 資料庫屬性

方式二 在查詢分析器中,輸入SELECT SERVERPROPERTY(‘Collation’) ,擷取伺服器定序

 

650) this.width=650;" alt="查看SQL Server伺服器定序" height="215" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357242.png" width="449" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:449px;height:215px;" />

 

圖3

2 查看當前伺服器資料庫安裝版本:查詢分析器輸入 SELECT @@VERSION

 

650) this.width=650;" alt="這裡寫圖片描述" height="186" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357243.png" width="712" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:630px;height:164.579px;" />

 

圖4 查看資料庫伺服器版本

3 請確認當前資料庫預設安裝版本及預設安裝檔案目錄,請根據自己版本記錄資料庫預設安裝目錄。

序號

No 資料庫版本

(Windows Service) 預設安裝目錄

1 SQL Server 2008 C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release

2 SQL Server 2012 C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\SQLServer2012

3 SQL Server 2014 C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\SQLServer2014

4 SQL Server 2016 C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQLServer2016

4 使用管理員權限開啟DOS命令列:

 

650) this.width=650;" alt="開啟DOS目錄" height="254" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357244.png" width="786" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:630px;height:203.588px;" />

 

圖5 進入DOS 命令列

5 使用 CD + 預設安裝目錄路徑進入對應版本資料庫安裝檔案目錄

 

650) this.width=650;" alt="這裡寫圖片描述" height="281" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357245.png" width="1200" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:630px;height:146.669px;" />

 

圖 6 進入SQL Server 安裝目錄

6 使用 Net stop mssqlserver 語句關閉SQL Server 後台服務

 

650) this.width=650;" alt="關閉SQL服務" height="325" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357246.png" width="1200" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:630px;height:166.735px;" />

 

圖7 關閉SQL Server 服務

8 運行語句 Setup /QUIET /ACTION=REBUILDDATABASE /instancename=MSSQLSERVER /SQLSYSADMINACCOUNTS=administrator /[email protected] /sqlcollation=Chinese_PRC_CS_AS

格式說明:

Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=InstanceName

/SQLSYSADMINACCOUNTS=accounts / [ SAPWD= StrongPassword ]

/SQLCOLLATION=CollationName)

注意: accounts 使用者使用電腦管理使用者,CollationName 為需要變更的排序格式

 

650) this.width=650;" alt="修改資料庫排序" height="229" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357247.png" width="1200" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:630px;height:119.726px;" />

 

圖8 修改語言格式

9 輸入語句Net start mssqlserver 啟動SQL Server 服務

 

650) this.width=650;" alt="啟動SQL服務" height="270" src="http://www.2cto.com/uploadfile/Collfiles/20170405/20170405092357248.png" width="1138" style="border-width:0px;padding:0px;margin:0px;list-style:none;width:630px;height:149.473px;" />

 

圖9 啟動SQL Server服務

10 驗證定序是否生效,請重複步驟1 查看。


本文出自 “老莫” 部落格,請務必保留此出處http://2717799802.blog.51cto.com/9071389/1923908

SCCM 2012 SQL 定序修改方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.