I have problem to convert CHAR data to smalldatetime.
My data value in table in format like "09-AUG-2000", this field size is CHAR(11). When I run ISDATE function to determine what's wrong, i have result 0, nothing wrong. I was able to convert to DATETIME after running same procedure for a few times. But I was not able to convert from datetime to smalldatetime not using alter table and do select into new table with CONVERT function. We keep dates in smalldateformat, it's a company policy. Is any trick I need to now. I have tried both functions: CONVERT and CAST. Please help!!!!!!!!
My data value in table in format like "09-AUG-2000", this field size is CHAR(11). When I run ISDATE function to determine what's wrong, i have result 0, nothing wrong. I was able to convert to DATETIME after running same procedure for a few times. But I was not able to convert from datetime to smalldatetime not using alter table and do select into new table with CONVERT function. We keep dates in smalldateformat, it's a company policy. Is any trick I need to now. I have tried both functions: CONVERT and CAST. Please help!!!!!!!!