Sql server 从字符串错误消息转换日期和/或时间时,转换失败

Sql server 从字符串错误消息转换日期和/或时间时,转换失败,sql-server,sql-insert,Sql Server,Sql Insert,这是在SSMS中 我试图插入以下虚拟测试语句及其失败 INSERT INTO Client ( [name], [address], [DOB], [Mobile], [Email], [profession], [refby] ) VALUES ( 'Toby Keith', '8 big dog daddy lane oklahoma 40518', '28/06/2010

这是在SSMS中

我试图插入以下虚拟测试语句及其失败

INSERT INTO Client 
(
     [name], 
     [address], 
     [DOB], 
     [Mobile], 
     [Email], 
     [profession], 
     [refby]
)
VALUES 
(
     'Toby Keith', 
     '8 big dog daddy lane oklahoma 40518', 
     '28/06/2010', 
     '0424 280 185', 
     'tk@hotmail.com', 
     'Country Superstar', 
     'Willie'
)
我得到的信息是:

Msg 241, Level 16, State 1, Line 2
Conversion failed when converting date and/or time from character string.

现在我已经用了很多次了,毫无疑问我遗漏了什么愚蠢的小东西?

使用
ISO
日期时间格式-

INSERT INTO Client 
(
     [name], 
     [address], 
     [DOB], 
     [Mobile], 
     [Email], 
     [profession], 
     [refby]
)
VALUES 
(
     'Toby Keith', 
     '8 big dog daddy lane oklahoma 40518', 
     '20100628', 
     '0424 280 185', 
     'tk@hotmail.com', 
     'Country Superstar', 
     'Willie'
)

您是否像往常一样使用同一用户运行查询?或者你改变了你的语言设置了吗?天哪,我真是个白痴,我没有设置日期时间格式,而是用int来代替nvarchar!!对不起,各位浪费了你们的时间