Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 从字符串转换日期和/或时间时转换失败_Sql Server_Datetime - Fatal编程技术网

Sql server 从字符串转换日期和/或时间时转换失败

Sql server 从字符串转换日期和/或时间时转换失败,sql-server,datetime,Sql Server,Datetime,我正在尝试执行以下查询,它在标题中显示了错误,我没有在这里转换日期或时间。不确定为什么会显示错误 select * from [dbo].[Data] where [Report Month] between '2015-05-01' and '2015-06-31' and [FTE Status]='Inactive' 提前谢谢 没有6月31日。没有6月31日。我的错,谢谢你,巴德!我的错,谢谢你,巴德!

我正在尝试执行以下查询,它在标题中显示了错误,我没有在这里转换日期或时间。不确定为什么会显示错误

select *    
from [dbo].[Data]    
where [Report Month] between '2015-05-01' and '2015-06-31'     
  and [FTE Status]='Inactive'

提前谢谢

没有6月31日。

没有6月31日。

我的错,谢谢你,巴德!我的错,谢谢你,巴德!