I am pulling records from an AS400 into a SQL server. I am trying to make the performance better in my SQL statements. I am using the Client Access ODBC driver and lined server within SQL server. the date field on our 400 is century date. so in my sql statement the only way I could get the records down to my sql server was to ask for DateField > 01030101 which is March 1st. as time goes on it starts to put a strain on my network. I want to only ask for the DateField = Date() Or Date -1..for todays and yesterdays records.. I have tryed the following :
DATE(DateField) = {FN CURDATE()})
everything I have tryed I get an ODBC error..
Can someone help me with this?
Thanks in Advance
DATE(DateField) = {FN CURDATE()})
everything I have tryed I get an ODBC error..
Can someone help me with this?
Thanks in Advance