Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> SQL Server

ขั้นตอนติดตั้ง Microsoft SQL Server 2019 บน Windows 10

คู่มือติดตั้ง SQL Server 2019 Developer Edition (ฟรีสำหรับพัฒนา) บน Windows 10

1. ดาวน์โหลดและเริ่มติดตั้ง

  • ดาวน์โหลดจากเว็บ Microsoft เลือก Developer edition
  • รันไฟล์ติดตั้ง เลือก Custom → เลือกตำแหน่งติดตั้ง (ต้องการพื้นที่ ~9 GB) → Install
  • ดาวน์โหลดแพ็กเกจติดตั้ง (ต้องอินเทอร์เน็ต)

2. ขั้นตอนติดตั้งหลัก (Installation Center)

  • แท็บ Installation → New SQL Server stand-alone installation
  • Product Key: เลือก Specify a free edition → Developer
  • ยอมรับ License Terms → Microsoft Update (ติ๊กใช้ Microsoft Update)
  • Install Rules → Feature Selection: เลือก Database Engine Services และฟีเจอร์ที่ต้องการ
  • Instance Configuration: Default instance หรือ Named instance
  • Server Configuration: ใช้ค่าเริ่มต้นหรือปรับ Service Accounts
  • Database Engine Configuration: Authentication Mode (Windows/Mixed) → Add Current User เป็น admin → ตั้งรหัสผ่าน sa
  • Data Directories: แยก Data files และ Log files ไปดิสก์ต่างกันเพื่อประสิทธิภาพ
  • TempDB: ปรับจำนวนไฟล์ data files (แนะนำหลายไฟล์)
  • Analysis Services, Integration Services, Distributed Replay: เพิ่ม Current User เป็น admin
  • ยอมรับติดตั้ง R และ Python (Machine Learning Services)
  • Ready to Install → Install (ใช้เวลา 15-45 นาที)

3. ติดตั้ง SSMS (SQL Server Management Studio)

จาก Installation Center → Install SQL Server Management Tools → ดาวน์โหลดและติดตั้ง SSMS แยกต่างหาก

4. ทดสอบการเชื่อมต่อ

เปิด SSMS → Connect (Server name: . หรือ localhost) → New Query → รัน SELECT @@VERSION ตรวจสอบเวอร์ชัน