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.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Error Converting DataType forn Varchar to smalldat

Author  Topic 

freesoul
Starting Member

35 Posts

Posted - 2007-08-14 : 06:39:52
Getting error
Converting DataType forn Varchar to smalldatetime
when running a job (in SQL Server 2005 ) which calls a SP in the step...
this worked fine in SQL Server 7

the step is like this ....

exec spGet_Prism_Sales_History 'ABC', '2006-09-01', '2006-09-31', 1

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-14 : 07:12:20
That should be

exec spGet_Prism_Sales_History 'ABC', '2006-09-01', '2006-09-30', 1

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

freesoul
Starting Member

35 Posts

Posted - 2007-08-14 : 09:34:34
I did that change and tried to run it again , but again getting the same error ...

Error converting data type varchar to smalldatetime. [SQLSTATE 42000] (Error 8114). The step failed.

thanks for the reply ..
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-08-14 : 22:49:54
What's default date format on the server?
Go to Top of Page

freesoul
Starting Member

35 Posts

Posted - 2007-08-17 : 09:52:58
Thanks it got solved , it was what Madhivanan told ....

thanks a lot everyone
Go to Top of Page

ashley.sql
Constraint Violating Yak Guru

299 Posts

Posted - 2007-08-17 : 10:13:44
Good Eye Madhivan!


-----------------------------------------------------------------------------------------------
Ashley Rhodes
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-18 : 01:16:48
quote:
Originally posted by ashley.sql

Good Eye Madhivan!


-----------------------------------------------------------------------------------------------
Ashley Rhodes


Thanks

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -