- 1 -
คมอการตดตงโปรแกรม SQL Server 2008 R2 Express Edition
ตดตง ระบบปฎบตการ
1. .NET Frame work 3.5 SP1 ทกระบบ 2. Windows Installer 4.5 ทกระบบ 3. Windows Power Shell 1.0 Windows XP , Windows 2003 Server 4. SQL Server 2008 R2 Express Edition ทกระบบ ** ทกระบบ หมายถง Win XP SP2 , Win XP SP3 , Win Vista , Win 7 , Win Server 2003 , Win Server 2008 Win Server 2003 R2 , Win Server 2008 R2 1. การตดตง .NET Frame work 3.5 SP1 1.1 ท าการ Execute File dotnetfx35-SP1.exe ใน Folder DotNetFrameWork 3.5 Redist
1.2 โปรแกรมจะท าการ Extract file เพอเตรยมตดตง ดงรป
1.3 โปรแกรมจะท าการ Load file เพอตดตง
- 2 -
1.4 ท าการ เลอกท I have read ACCEPT the terms of License Agreement จากนนกดปม Install
1.5 โปรแกรมจะท าการตดตง Microsoft .NET Framework 3.5 SP1
- 3 -
1.6 เมอท าการตดตงเสรจใหกดปม Exit เพอจบการตดตง .NET Framework 3.5 SP1
- 4 -
2. การตดตง Windows Installer 4.5 2.1 เขาไปใน Folder Windows Installer 4.5 และ เลอก File ทจะ Execute ตามระบบปฎบตการทตดตง
File name Operating System WindowsXP-KB942288-v3-x86 Win XP Windows6.0-KB942288-v2-x86 Win Vista , Win 7 , Win 2008 ( 32 Bit ) Windows6.0-KB942288-v2-x64 Win Vista , Win 7 , Win 2008 ( 64 Bit ) WindowsServer2003-KB942288-v4-x86 Win 2003 ( 32 Bit ) WindowsServer2003-KB942288-v4-x64 Win 2003 ( 64 Bit ) 2.2 เลอก I Agree จากนนกดปม Next
- 5 -
2.3 โปรแกรมจะท าการตดตง Windows installer 4.5
2.4 เมอตดตงเสรจสมบรณ กดปม Finish โปรแกรมกจะท าการ Restart Windows
- 6 -
3. การตดตง Windows Power Shell 1.0 ( เฉพาะ Windows XP และ Windows 2003 Server )
3.1 เขาไปใน Folder Windows PowerShell 1.0 และ เลอก File ทจะ Execute ตามระบบปฎบตการทตดตง File name Operating System
WindowsXP-KB926139-v2-x86-ENU Win XP ( 32 Bit ) WindowsServer2003-KB926139-v2-x86-ENU Win Server 2003 ( 32 Bit ) WindowsServer2003.WindowsXP-KB926139-v2-x64-ENU Win XP , Win 2003 ( 64 Bit )
3.2 กดปม Next เพอท าการตดตง
- 7 -
3.3 เลอก I Agree จากนนกดปม Next
3.4 โปรแกรมจะท าการตดตง Windows PowerShell 1.0
- 8 -
3.5 เมอตดตงเสรจสมบรณ กดปม Finish
- 9 -
4. การตดตง SQL Server 2008 R2 Express Edition 4.1 เลอก File ทจะ Execute ตามระบบปฎบตการทตดตง
File name Operating System SQLEXPRWT_x86_ENU Win XP SP2 , Win XP SP3 , Win Vista , Win 7 , Win Server 2003 ,
Win Server 2008 , Win Server 2003 R2 , Win Server 2008 R2 ( 32 Bit )
SQLEXPRWT_x64_ENU Win XP SP2 , Win XP SP3 , Win Vista , Win 7 , Win Server 2003 , Win Server 2008 , Win Server 2003 R2 , Win Server 2008 R2 ( 64 Bit )
4.2 โปรแกรมจะท าการ Extract file เพอเตรยมตดตง ดงรป
- 10 -
4.3 เลอกหวขอ New installation or add feature to an existing installation
4.4 เลอก I accept the license terms แลวกดปม Next
- 11 -
4.5 โปรแกรมจะท าการตรวจสอบระบบทตองการ เมอท าการตรวจสอบแลวใหกดปม Install
4.6 เลอก Component ทตองการ Install โดยการกดปม Select All และ เลอก Directory ทตองการจะตดตงโปรแกรม แลวกดปม Next
- 12 -
4.7 เลอก Name instance และ Instance ID เปน SQLExpress ดงรป แลวกดปม Next
4.8 ท าการเลอก Startup type ของ SQL Server Browser ใหเปน Automatic ดงรป
- 13 -
4.9 เลอก Tab Collation แลวกดปม Customize
4.10 ตงคา Collation ใหเปนดงรป จากนนกดปม OK
- 14 -
4.11 เลอก Authentication Mode เปน Mixed Mode แลวปอน Password ของ Sa ในชอง Enter password และ Confirm password กดปม Add Current User แลวกดปม Next
4.12 กดปม Next เพอตดตงโปรแกรม
- 15 -
4.13 ระบบจะท าการตดตงโปรแกรม
4.14 เมอท าการตดตงเสรจ ใหกดปม Close
- 16 -
4.15 ท าการ Configuration SQL Server 2008 R2 Express โดยการ กดปม Start ของ Windows แลวไปท Microsoft SQL Server 2008 R2 -> Configuration Tools -> SQL Server Configuration Manager
4.16 เลอก Protocols for SQLEXPRESS แลว Enable Protocol Shared Memory , Named Pipes และ TCP/IP โดยการ Click ขวา Protocol Name แลวเลอก Enabled เปน Yes แลวกด OK ดงรป
- 17 -
ตวอยางการ สราง และ Connect Database การอางถง Server Name ท าโดย 1. ชอ Server\SQLEXPRESS หรอ Server IP Address\SQLEXPRESS เชน
Server\SQLEXPRESS หรอ 192.168.0.1\SQLEXPRESS 2. สวน User Name ใช Sa และ Password ใชเหมอนกบตอนทตดตงโปรแกรม