Hi @SLLindleyFX2TW,
Replacing a MDF file within Steel Content with a modified file having the same name is a scenario that normally works and is well supported for Advance Steel.
- First please make sure to edit the database with the apropriate version of SQL Server for compatibility:
AS 2022 and 2023 use SQL Server 2014 (version 12.0.6024.0)
AS 2024 and 2025 use SQL Server 2019 (version 15.0.4153.1)
Avoid upgrading AS 2022 and 2023 databases to a later SQL Server version as this is not reversible.
- Then, please make sure the MDB file wasn't corrupted. Always remember to disconnect and remove all pending connections to a database file after you're done editing it inside Microsoft SQL Server Management Studio, before closing the Studio environment.
- Ensure that the instance of SQLLocalDB is stopped before replacing the MDF file, this can be done using the sqllocaldb command line utility.
sqllocaldb i AdvanceSteel[YEAR] // Example: sqllocaldb i AdvanceSteel2024
- If it shows up as running, make sure to close all instances of Advance Steel you are working on, then stop it using this command
sqllocaldb stop AdvanceSteel[YEAR] // Example: sqllocaldb stop AdvanceSteel2024
Another note, the LDF file must be deleted before starting Advance Steel. Replacing the MDB and letting the old LDF file remain on disk has the potential to create inconsistencies in or even corrupt the data contained in the MDF file.
If you're still encountering issues, please attach a sample of a changed MDF file that results in the error.