SQL Server 2017 (ra mắt 10/2017) tập trung vào: Linux support, Performance, Machine Learning, Graph DB, String functions mới.
1. Database Engine
- IDENTITY_CACHE (SCOPED CONFIGURATION): Tránh gap identity khi failover/restart.
- Adaptive Query Processing:
- Batch Mode Memory Grant Feedback: Tự điều chỉnh memory grant.
- Batch Mode Adaptive Joins: Chọn Hash/Nested Loop tại runtime.
- Interleaved Execution: Tạm dừng để tính chính xác cardinality cho multi-statement TVF.
- Automatic Tuning:
- Force Last Good Plan (Auto plan correction).
- Auto Index Management (Azure SQL DB): Tạo/xóa index tự động.
2. Graph Database
Node + Edge (relationship). Dùng MATCH clause để query. Phù hợp: hierarchical data, multiple parents, relationship analysis.
3. Always On Availability Groups (Cross-database / Cross-instance)
Hỗ trợ read-scale, distributed AG across SQL instances (SQL 2016 chỉ trong cùng instance).
4. DTA (Database Tuning Advisor) cải tiến
Thêm options cho tuning advisor.
5. String Functions mới
| Function | Mô tả | Ví dụ |
|---|---|---|
| TRANSLATE | Thay thế nhiều ký tự 1-1 | TRANSLATE('a[b{c}]', '[]{}', '()()') -> a(b(c)) |
| CONCAT_WS | Concatenate with separator | CONCAT_WS(',', 'a', 'b', 'c') -> a,b,c |
| TRIM | Xóa space đầu/cuối | TRIM(' abc ') -> abc |
| STRING_AGG | Aggregate string với separator | STRING_AGG(name, ';') WITHIN GROUP (ORDER BY name) |
6. SSRS (Reporting Services)
- Tách cài đặt riêng (không còn trong SQL Setup).
- Query Designer hỗ trợ DAX native.
- RESTful API / OpenAPI support.
- Comment có thể đính kèm file.
7. SSIS (Integration Services)
- Chạy trên Linux.
- Scale Out: Master + Workers phân tán package.
8. SSAS (Analysis Services)
- Get Data UI mới (giống Excel/Power BI), M query.
- Tabular mode nâng cấp lớn.
- Encoding hints cho large in-memory tables.
- PIVOT performance improvement.
9. Machine Learning Services
- R Services -> Machine Learning Services (hỗ trợ R + Python).
- Python trong stored procedure, remote execution.
- Thư viện:
revoscalepy(high-perf algorithms),microsoftml(ML algorithms). - Chưa hỗ trợ Linux (đợi bản sau).
10. Linux Support
- Core Database Engine trên Linux.
- IPv6, NFS, AD auth, Encryption.
- SSIS trên Linux.
- Tool
mssql-confcấu hình. - VS Code extension, cross-platform scripting.