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
help with Scalar-valued function
How can I change the default location where RDP tries to save it's default.RDP to?
Parameter dialog box unexpectedly pops up while dynamically linking unbound subforms to a main form
Visual basic version conflict
How to email an Access 2002 report in pdf format
count total lines or "returns" from a string of text
Outlook error 0x80040109 -
reverse string using SQL function
GridView-FormView Master-Detail Setup (Programmatic Solution)
SBS 2008 Can't connect to my RWW from outside my network