我有以下程序界面:错误转换数据类型为nvarchar为datetime
Create procedure [dbo].[InsertItemDetails]
@TimeItemAdded datetime
当我打电话这样说:
EXEC [dbo].[InsertItemDetails]
@TimeItemAdded = N'20/07/2012 00:00:00';
我得到这个错误:
Msg 8114, Level 16, State 5
Error converting data type nvarchar to datetime.
你传递给在'InsertItemDetails'了''@TimeItemAdded参数什么价值? – LittleBobbyTables 2012-07-25 14:08:25
20/07/2012 00:00:00作为日期和时间 – 2012-07-25 14:08:51