I needed to migrate the bank of an application made in vba using the access. The database was native to access and I switched to SQL Server.
In access, as everything is native everything worked perfectly, but in migration a problem that is giving me a lot of headache is the conversion of dates.
The access displays and saves the records in the format dd / mm / yyyy
25/06/1987
SQL Server however has the format yyyy-mm-dd hh: MM: ss
1987-06-25 00:00:00
With some configuration changes to the default date format (in SQL Server) I only succeeded in inserting data. However, I was not able to return the date in dd / mm / yyyy in any way.
I'm currently having to prepare the application always before inserting, formatting the dates into the SQL Server format, as well as in queries also formatting the date back to the Access format.
In addition to not being a "pretty" solution I have not been able to fix all the bugs that this causes in the system. Sometimes I do not have full control of what access wants to save or return from the database and the dates in the fields are in the wrong format.
Anyway. The question is:
Is there any way to configure SQL Server dates to receive and return data in the format dd / mm / yyyy?
Or is there any solution to this in access itself that spares me the trouble of handling all queries?