Md.*_*med 1 sql-server datetime
select top 10
FormANo, Created, Changed
from
FormA
where
Created >= convert(datetime, '2015-07-05 14:04:11.000')
and Created <= convert(datetime, '2016-04-21 20:13:08.280')
Run Code Online (Sandbox Code Playgroud)
当我运行查询时,出现以下错误
消息 242,级别 16,状态 3,第 4 行
varchar 数据类型到 datetime 数据类型的转换导致值超出范围。
如何在 SQL Server 2014 中使用原始 SQL 查询解决这个问题?