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.
我正在尝试将nvarchar格式的值转换3/7/2013为,datetime但我无法弄清楚。我正在使用 SQL Server 2008 并不断获得
nvarchar
3/7/2013
datetime
将表达式转换为数据类型日期时间的算术溢出错误
错误。
这工作正常:
SELECT CAST (N'3/7/2013' as datetime)