Minty
AWF VIP
- Local time
- Today, 17:35
- Joined
- Jul 26, 2013
- Messages
- 10,624
I'm sure this has been mentioned before but I thought it had been addressed, or we had a workaround.
When importing data using SSMA that includes Boolean (Yes/No) fields, if you accepted the default mapping of Byte datatype then SSMA swapped all your lovely -1 data to +1's. Which meant that if you had any code checking for -1 (instead of <>0 ) it failed.
To ensure this doesn't affect legacy systems we always map Boolean fields to SmallInt datatypes, which can handle the negative value.
Only they don't appear to be converted correctly anymore. Or something else has changed...
In a recent import all the Boolean fields have been imported into a small int field as 1 or 0. Rendering hundreds of lines of legacy code useless, apart from when they are updated from Access which will chuck a -1 back where it should be.
I have tried submitting a bug report to the SSMA team but it was reject as spam!
The info from the bug report was:
Tool version: SSMA for Access 10.0.24283.1001
OS version: Microsoft Windows NT 10.0.22621.0
Correlation: 576223c1-a09b-40cb-92b5-7c3d794cd581
Anyone else experienced this, and have a simple solution?
When importing data using SSMA that includes Boolean (Yes/No) fields, if you accepted the default mapping of Byte datatype then SSMA swapped all your lovely -1 data to +1's. Which meant that if you had any code checking for -1 (instead of <>0 ) it failed.
To ensure this doesn't affect legacy systems we always map Boolean fields to SmallInt datatypes, which can handle the negative value.
Only they don't appear to be converted correctly anymore. Or something else has changed...
In a recent import all the Boolean fields have been imported into a small int field as 1 or 0. Rendering hundreds of lines of legacy code useless, apart from when they are updated from Access which will chuck a -1 back where it should be.
I have tried submitting a bug report to the SSMA team but it was reject as spam!
The info from the bug report was:
Tool version: SSMA for Access 10.0.24283.1001
OS version: Microsoft Windows NT 10.0.22621.0
Correlation: 576223c1-a09b-40cb-92b5-7c3d794cd581
Anyone else experienced this, and have a simple solution?