accesser2003
Registered User.
- Local time
- Today, 11:34
- Joined
- Jun 2, 2007
- Messages
- 124
I have a stored procedure "BuildAttendanceEvents_GroupByEmp". It has two parameters: @loadfrom datetime, @loadto datetime.
I want to execute this procedure with the two parameters:
LoadFrom: "30/12/2007"
LoadTo: "15/01/2008"
When I write the following SQL statement to execute the stored procedure:
exec BuildAttendanceEvents_GroupByEmp "30/12/2007","15/01/2008";
The following error appeared:
Server: Msg 8114, Level 16, State 4, Procedure BuildAttendanceEvents_GroupByEmp, Line 0
Error converting data type nvarchar to datetime.
How can I execute it without error?
I want to execute this procedure with the two parameters:
LoadFrom: "30/12/2007"
LoadTo: "15/01/2008"
When I write the following SQL statement to execute the stored procedure:
exec BuildAttendanceEvents_GroupByEmp "30/12/2007","15/01/2008";
The following error appeared:
Server: Msg 8114, Level 16, State 4, Procedure BuildAttendanceEvents_GroupByEmp, Line 0
Error converting data type nvarchar to datetime.
How can I execute it without error?