Tôi đã giao diện thủ tục sau đây:Lỗi loại chuyển đổi dữ liệu nvarchar sang datetime
Create procedure [dbo].[InsertItemDetails]
@TimeItemAdded datetime
Khi tôi gọi nó theo cách này:
EXEC [dbo].[InsertItemDetails]
@TimeItemAdded = N'20/07/2012 00:00:00';
tôi nhận được lỗi này:
Msg 8114, Level 16, State 5
Error converting data type nvarchar to datetime.
giá trị gì bạn đang đi đến '@TimeItemAdded' tham số trong 'InsertItemDetails'? – LittleBobbyTables
20/07/2012 00:00:00 theo ngày và giờ –