i am confronting a problem while entering data into sql database through vb application. infact when user enter data including date through vb application form, it does not create any problem if the date is entered in mm/dd/yyyy but if he enter date in british format like dd/mm/yyyy then it creates error as " conversion of varchar data into dateformat resulted in out range value" please help


Reply With Quote


), the semantic difference between Cast and Convert is largely irrellavent. We all knew what JB meant and that's enough for me (and I suspect the OP as well). What's important is the the functional difference in the platform the OP is using... and in SQL Server there really isn't one. In fact SQL Server implements a Cast as a Convert. The only real difference is that Cast is Ansi standard so will work on any Ansi compliant DBMS but Convert is a little more flexible because it's SQL Server specific so can deal with SQL Server specific types. 