Petermcg001
asked on
Append from Access to SQL failing on date fields.
Hello,
I'm moving an Access database to SQL using the Wizard. All the tables convert OK apart from two. I've discovered it is related to date fields - if I copy the tables, remove all the date fields and then try it works fine.
I've tried migrating just the table structure and using an append query but this errors with an "Overflow" message. Again if I do the same with the date fields removed it works.
Can anyone suggest a solution for this.
Thanks
I'm moving an Access database to SQL using the Wizard. All the tables convert OK apart from two. I've discovered it is related to date fields - if I copy the tables, remove all the date fields and then try it works fine.
I've tried migrating just the table structure and using an append query but this errors with an "Overflow" message. Again if I do the same with the date fields removed it works.
Can anyone suggest a solution for this.
Thanks
in sql convert dates to a string in the format yyyy-mm-dd. In sql this format always works fine. Also, check between smalldatetime and datetime data types in sql server.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
It was data related with some very silly dates in the table. Feel pretty silly TBH!