Dates in SQL server has always something I've managed to avoid like the plage as I know how many people have trouble with them. I'm now in a situation where I have to drive into this subject and get it right. I can't!
This is my SQL string that I'm using from an ASP;
I get;
I've tried without the '' around the dates, it runs the command but enters 01/01/1900 into the date. I think the region settings on the server are correct, I changed the default and rebooted. does anyone know how I can do this the way I want it and not MS's way.
This is my SQL string that I'm using from an ASP;
Code:
INSERT INTO po_line_schedule (po_number, po_line, acknowledged, vendor, acknowledged_date, po_user_id, active, ship_qty, delivery_date) VALUES (830875,1,'Y',8209,'29/09/2005',13,'Y',1,'05/10/2005')
I get;
Code:
'The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.'
I've tried without the '' around the dates, it runs the command but enters 01/01/1900 into the date. I think the region settings on the server are correct, I changed the default and rebooted. does anyone know how I can do this the way I want it and not MS's way.