เพิ่งเปลี่ยนมาใช้ SQL Server 2008 พอจะแก้ไข Table แล้วก็เจอ Error
Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.
ซึ่งเกิดจากระบบป้องกันการแก้ไข Table ของ SQL Server 2008 เอง เราสามารถปิด Option ตรงนี้ได้ครับ วิธีการดังนี้
- ดูที่ Tool bar ของ SQL Server 2008 ให้เลือก Tools >> Options
- จะมีหน้าต่างขึ้นมา ให้ดูทางด้านซ้าย ให้เลือก Designers
- มองหาคำว่า “Prevent saving changes that require table re-creation” แล้ว uncheck และกดปุ่ม OK ครับ
RSS Feed
Twitter
June 12th, 2010
admin | 2,118 views
Posted in
Tags: 
