Rx_
Nothing In Moderation
- Local time
- , 19:01
- Joined
- Oct 22, 2009
- Messages
- 2,803
The opinion of other Access designers using a SQL Server back end is requested.
Was this the best option for the situation? Is it a risky option?
This could be of interest to anyone that migrates an Access Database into SQL Server.
In SQL Server, while in a Table Design view, a field was changed to Allow Nulls. The SQL Server SSMS error "Saving changes is not permitted..."
SQL Server expected the entire table to be dropped and recreated for this change.
Instead, the SQL Server Tool Options "Prevent saving changes that require table re-creation" was turned off.
Then the Table Design allowed the "allow Nulls".
The Tool Options "Prevent saving changes that require table recreation" was put back into normal.
History: This change came from migrating an Access table into SQL Server five years ago. The table and data were inherited from a previous developer. The past developer wan't consistent with the Allow Nulls.
The Access Front End checked for data before transactions could be run on the entire row. So, this Allow Nulls was not an issue for many years.
This week, new regulatory requirements boiled down to the need for Allow Nulls on a few fields in this table.
The attachment shows the error message on top if the Allow Nulls are checked in the Table Design and saved.
To turn off this Warning, the Options dialogue box is shown in the center.
Important: In the Table Properties: Change Tacking, if either of these had been set to True, research shows the above results could have been catastrophic (a bad outcome).
Conclusion: Since most MSACCESS users migrate the database to SQL Server where the Change Tracking is false, this process is an acceptable way to change Allow Nulls in SQL Server without dropping and recreating the table.
It is not the intention to mislead anyone. If others can review this and comment, it would be greatly appreciated!
Was this the best option for the situation? Is it a risky option?
This could be of interest to anyone that migrates an Access Database into SQL Server.
In SQL Server, while in a Table Design view, a field was changed to Allow Nulls. The SQL Server SSMS error "Saving changes is not permitted..."
SQL Server expected the entire table to be dropped and recreated for this change.
Instead, the SQL Server Tool Options "Prevent saving changes that require table re-creation" was turned off.
Then the Table Design allowed the "allow Nulls".
The Tool Options "Prevent saving changes that require table recreation" was put back into normal.
History: This change came from migrating an Access table into SQL Server five years ago. The table and data were inherited from a previous developer. The past developer wan't consistent with the Allow Nulls.
The Access Front End checked for data before transactions could be run on the entire row. So, this Allow Nulls was not an issue for many years.
This week, new regulatory requirements boiled down to the need for Allow Nulls on a few fields in this table.
The attachment shows the error message on top if the Allow Nulls are checked in the Table Design and saved.
To turn off this Warning, the Options dialogue box is shown in the center.
Important: In the Table Properties: Change Tacking, if either of these had been set to True, research shows the above results could have been catastrophic (a bad outcome).
Conclusion: Since most MSACCESS users migrate the database to SQL Server where the Change Tracking is false, this process is an acceptable way to change Allow Nulls in SQL Server without dropping and recreating the table.
It is not the intention to mislead anyone. If others can review this and comment, it would be greatly appreciated!