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
 General SQL Server Forums
 New to SQL Server Programming
 Smalldatetime

Author  Topic 

Meta
Starting Member

1 Post

Posted - 2010-10-19 : 05:19:47
Syntax error converting character string to smalldatetime data type

kl error nya gt gmn cara ngatasinya?

trs cara pendeklarasian di insert into untuk tipe data ini gmn?

please help me

kishore_pen
Starting Member

49 Posts

Posted - 2010-10-19 : 05:25:14
Try like : select CONVERT (varchar (25), getdate())
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-19 : 05:38:09
Try to post in the english language.
Maybe then it is possible to help?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-19 : 12:52:18
that means the value in the field cannot be converted to smalldatetime. may be you've some spurious date values in field.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -