Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
I have a table that has a column called COCDAT which has contains dates in vachar(8) mmddyyyy format. So the data looks like 11012009 as an example. The clients want data to be stored that way. But, I have an access log that I want to do date comparison. I need to convert varchar(8) to datetime, 101 to compare dates. I pull the data into a view to convert but I always get an 'out of range datetime value'. Please Help!