Microsoft
Software
Hardware
Network
Question : Convert varchar data to datetime
I have two tables in MS SQL Server. The source field is a varchar data type and has data that I need to move to another table field of DateTime data type. I need to convert the varchar to a DateTime format. The data in the source file is in the format yyyymmdd. How can I get the data to append to the new table without getting data type errors?
Answer : Convert varchar data to datetime
you dont really need any sort of explicit conversion if your date is in YYYYmmdd format, sql will automatically convert it to the curresponding date
Random Solutions
Multiple COUNT functions using one SELECT
Slow Logon
Data Type Mismatch in Criteria Expression - Using DateDiff function
how to format date with Html.TextBoxFor helper ?
How to generate a sql report with dynamic report filter and display the results dynamically?
windows 3d application launcher gadget
Run application in safe mode (run key doesnot work?)
VBA Macro to edit .bat file
Terminal Server 2008 TSWEB Opening more than one App
Access SQL DatePart or different method do display date range as month only