Hello,
I migrated a databse from access to sql server200.Frontend is in access and backend in sqlserver.Problem is if I enter dates its send to sqltable as datetime..How do I fix this to insert just dates from access to sql server?
Thanks
SQL Server 2000 only has the datetime and smalldatetime types for storing date information. However, if you only supply the date portion and not the time, then SQL Server will automatically append the time of midnight (00:00:00.000) to the date when storing. This can work perfectly well in your situation; just ignore the time portion of the datetime field, or use the Convert function as dbomrrsm did to "cut out" the time portion and return the date as a varchar.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.