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
MS ACCESS SQL QUERY - Export Access Query Results to Excel Worksheet
Embedding an MSI inside the Setup.exe in Visual Studio
Can we install SCCM in the same machine where the Domain is setup.
Excel #VALUE error fix required
Outlook rule that filters messages containing words in the subject line
The recipient's mailbox is full and can't accept messages now.
Refer to Control on Main Form
Can outlook 2003 email be imported to windows 7 through mitec ?
DllRegisterServer entry point was not found
SBS2008/Exchange2007/Pop3 Client Errors