安裝和配置SQL Server 2014

來源:互聯網
上載者:User

標籤:sql server 2014;install;configuration

安裝和配置SQL Server 2014


準備:


1. SQL Server 2014是需要.NET Framework 3.5.1支援,點擊“Server Manager”,選擇“Features”,右側選擇“Add Features”。


650) this.width=650;" title="clip_image002" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image002" src="http://s3.51cto.com/wyfs02/M01/59/FA/wKioL1TxmwryhciVAACfhQxXYlM977.jpg" border="0" height="294" />

 

2. 選擇“.NET Framework 3.5.1 Features”屬性,安裝。


650) this.width=650;" title="clip_image004" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image004" src="http://s3.51cto.com/wyfs02/M02/59/FA/wKioL1Txmwuzdd3mAAD4WKijCYE802.jpg" border="0" height="215" />

 

安裝SQL Server 2014


1. 下載64位SQL Server 2014英文企業版安裝包:en_sql_server_2014_enterprise_edition_x64_dvd_<xxxxxxx>.iso

 

2. 解壓縮或用虛擬光碟機掛載後,點擊setup.exe


650) this.width=650;" title="clip_image006" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image006" src="http://s3.51cto.com/wyfs02/M00/59/FA/wKioL1TxmwvCfRKWAACcMhP-dRQ446.jpg" border="0" height="366" />

 

3. 在“Installation”菜單選擇“New SQL Server stand-alone installation or add features to an existing installation”


650) this.width=650;" title="clip_image008" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image008" src="http://s3.51cto.com/wyfs02/M01/59/FA/wKioL1TxmwziLAEkAADyO51sZPY925.jpg" border="0" height="211" />

 

4. 選擇下一步,直到“Installation Type”菜單,選擇“Perform a new installation of SQL Server 2014”。


650) this.width=650;" title="clip_image010" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image010" src="http://s3.51cto.com/wyfs02/M02/59/FA/wKioL1Txmw3z5iQ7AADxVgw9Z4c579.jpg" border="0" height="201" />

 

5. 選擇下一步,直到“Setup Role”菜單,選擇“SQL Server Feature Installation”。


650) this.width=650;" title="clip_image012" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image012" src="http://s3.51cto.com/wyfs02/M00/59/FB/wKioL1Txmw6RwyU-AAEpM-_VGdI996.jpg" border="0" height="269" />

 

6. 選擇下一步,在“Feature Selection”菜單,選擇要安裝的屬性,並設定執行個體安裝的根目錄。

 

7. 選擇下一步,在“Instance Configuration”菜單,選擇“Default instance”。

 

8. 選擇下一步,在“Server Configuration”菜單,設定所安裝的各個服務的啟動帳號和啟動類型,並選擇定序。筆者在這裡設定SQL Server Database Engine的啟動帳號為與帳號Domain\SqlService,SQL Server Agent的啟動帳號為Domain\SqlAgent,均為自動啟動。字元集設定為Chinese_PRC_CI_AS。

 

9. 選擇下一步,在“Database Engine Cofiguration”菜單中:

    a) 配置“Server Configuration”為“Mixed Mode”,並輸入sa的密碼。添加SQL Server管理員帳號。

    b) 配置“Data Directories”,設定“Data root directory”為安裝的資料檔案的目錄。

    c) 配置是否啟用“FILESTREAM”。

 

10. 如果有安裝分析服務,將會在“Analysis Services Configuration”菜單中:

    a) 配置“Server Configuration”,設定管理員模式為Cube和資料倉儲模式或表格模式。添加分析服務的管理員帳號。

    b) 配置“Data Directories”,設定分析服務的資料檔案的目錄。

 

11. 如果有安裝報表格服務,將會在“Reporting Services Configuration”菜單中,根據安裝的報表格服務的模式,進行選擇。

 

12. 完成配置之後,到“Ready to Install”菜單,顯示配置輸出。

 

13. 點擊安裝,在“Installation Progress”菜單顯示安裝的進度。

 

14. 安裝完成後,在“Complete”菜單,顯示安裝完成的組件和服務。

 

15. 關閉安裝視窗。

 

配置SQL Server 2014


1. “Start | Run”,輸入secpol.msc。


650) this.width=650;" title="clip_image014" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image014" src="http://s3.51cto.com/wyfs02/M00/59/FE/wKiom1TxmgCz77FjAACTBQaVibw883.jpg" border="0" height="202" />

 

2. 在“Local Security Policy”視窗,選擇“Local Policies | User Rights Assignment”,在右側的“Lock pages in memory”和“Perform volume maintenance tasks”添加SQL Server Database Engine的啟動帳號。

 

3. 分別建立資料目錄SQL-DATA、日誌目錄SQL-LOG和備份檔案目錄SQL-BACKUP。

 

4. 授予SQL Server Database Engine的啟動帳號、SQL Server Agent的啟動帳號、Database Backup帳號等需要讀寫這些目錄的存取權限。

 

5. 開啟SSMS 2014,串連到安裝的執行個體。


650) this.width=650;" title="clip_image016" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image016" src="http://s3.51cto.com/wyfs02/M01/59/FE/wKiom1TxmgCz9JYAAADhoOWQyhI830.jpg" border="0" height="308" />

 

6. 在“Object Explorer”的執行個體節點上,右鍵選擇“Properties”。


650) this.width=650;" title="clip_image018" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image018" src="http://s3.51cto.com/wyfs02/M02/59/FE/wKiom1TxmgGTHiNGAAD6pgWK1jc125.jpg" border="0" height="463" />

 

7. 在“Memory”菜單,設定最大記憶體大小,預留部分記憶體給作業系統和其他應用。


650) this.width=650;" title="clip_image020" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px;" alt="clip_image020" src="http://s3.51cto.com/wyfs02/M00/59/FE/wKiom1TxmgKTwCCeAADKZkvtCyI241.jpg" border="0" height="255" />

 

8. 在“Database Settings”菜單,設定是否開啟壓縮備份,資料、日誌和備份檔案的預設路徑。

 

安裝SSDT


1. 下載.NET Framework 4.5.1(離線安裝程式),按需下載.NET Framework 4.5.1語言套件(離線安裝程式)  
http://support.microsoft.com/kb/2858728/

 

2. 安裝.NET Framework 4.5.1。

 

3. 下載Microsoft SQL Server Data Tools – Business Intelligence for Visual Studio 2013。  
http://www.microsoft.com/en-us/download/details.aspx?id=42313

 

4. 安裝SSDT,這個安裝包相容32位與64位,但是如果您已經安裝過SQL Server 的64位版本,則安裝時必須選擇“新執行個體”,否則會報一個“The CPU architecture of installing feature(s) is different than the instance specified. To continue, add features to this instance with the same architecture”的錯誤而無法安裝。


650) this.width=650;" title="clip_image022" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px;" alt="clip_image022" src="http://s3.51cto.com/wyfs02/M01/59/FE/wKiom1TxmgPw2xnPAAFUm6oX9x8558.jpg" border="0" height="375" />

 

問題匯總:


  1. SQL Server 2008/2008 R2中設計的SSIS包,調用的是“OLE DB provider”版本為“SQLNCLI10.1”,到SQL Server 2012/2014,需要修改SSIS包中的“Connection String”部分的版本為“SQLNCLI11”。若不修改,會產生如下錯誤:

    Error:The requested OLE DB provider SQLNCLI10.1 is not registered.if the 32-bit driver is not installed,run the package in 64-bit mode.Error code:0x00000000.An OLE DB record is available. Source:"Microsoft OLE DB Service Components" Hresult:
    0x80040154 Description:"Class not registered".
    Error:Consider changing the PROVIDER in the connection string to SQLNCLI11 or visit http://www.microsoft.com/downloads to find and install support for SQLNCLI10.1.



本文出自 “SQL Server Deep Dives” 部落格,請務必保留此出處http://ultrasql.blog.51cto.com/9591438/1616054

安裝和配置SQL Server 2014

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.