มีปัญหาในการรัน sql
2 posters
หน้า 1 จาก 1
มีปัญหาในการรัน sql
ผมรัน sql ในบทที่ 19 แล้วมีปัญหาดังนี้
จากรูปที่ 19.8 มี error ดังนี้
Msg 325, Level 15, State 1, Line 3
Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.
จากรูปที่ 19.9 มี error ดังนี้
Msg 325, Level 15, State 1, Line 7
Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.
จากรูปที่ 19.8 มี error ดังนี้
Msg 325, Level 15, State 1, Line 3
Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.
จากรูปที่ 19.9 มี error ดังนี้
Msg 325, Level 15, State 1, Line 7
Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.
ssomchai- จำนวนข้อความ : 2
Join date : 04/05/2011
รันคำสั่ง
ให้รันคำสั่งต่อไปนี้ใน SSMS
ALTER DATABASE database_name
SET COMPATIBILITY_LEVEL = { 80 | 90 | 100 }
ALTER DATABASE database_name
SET COMPATIBILITY_LEVEL = { 80 | 90 | 100 }
หน้า 1 จาก 1
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ
|
|