Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
cajina
Starting Member
15 Posts |
Posted - 2007-12-14 : 16:51:16
|
I have this procedure and it can't convert this date to datetime type: Exec scnr.prc_tblScannersReemplazarClasificacion 'CERVEZA ', 'CERVEZA', 'ENV VAC ', 'ENVASE VACIO', 'NULL', 'NO aplica', 'NULL', 'NO aplica', '1-8-2007', '10-12-2007', 'ISCR\acajina';and after that i tried to execute it, but I changed the date like next:Exec scnr.prc_tblScannersReemplazarClasificacion 'CERVEZA ', 'CERVEZA', 'ENV VAC ', 'ENVASE VACIO', 'NULL', 'NO aplica', 'NULL', 'NO aplica', '8-1-2007', '12-10-2007', 'ISCR\acajina';and the procedure reseive this parameter:CREATE PROCEDURE scnr.prc_tblScannersReemplazarClasificacion( @tipoclasificacion varchar(200), @categoriaV varchar(200), @categoriaN varchar(200), @subcategoriaV varchar(200), @subcategoriaN varchar(200), @tipoV varchar(200), @tipoN varchar(200), @subtipoV varchar(200), @subtipoN varchar(200), @fechascanner datetime, @fechaingreso datetime, @usuarioscanner varchar(200) )The error is:Msg 8114, Level 16, State 5, Procedure prc_tblScannersReemplazarClasificacion, Line 0Error converting data type varchar to datetime.Why can't this procedure reseive these dates?What can I do?Help me... |
|
|
cajina
Starting Member
15 Posts |
Posted - 2007-12-14 : 17:03:13
|
Sorry people, I made a mistake. Now I know what happened.Thanks. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-12-15 : 01:30:30
|
quote: Originally posted by cajina
Sorry people, I made a mistake. Now I know what happened.Thanks.
What happened?MadhivananFailing to plan is Planning to fail |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-12-15 : 02:02:51
|
must be specifying wrong format for the date string. Always use ISO format YYYYMMDD to avoid such possible error. KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|
|
|