Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 sqlserver2008 r2 中创建了我的数据库,我想将其降级为 sqlserver2005。我在生成脚本时将“服务器版本的脚本”选项设置为 2005,但是我在包含日期数据类型的列的表中出现错误。
只需手动将脚本从 更改date为datetime或smalldatetime。不幸的是,SQL Server 不会自动为数据类型执行此操作。
date
datetime
smalldatetime