I have a database which I need to have an option to compact it via a button and then code behind that. I have found some code in this forum which I believe would work which is below.
DBEngine.RepairDatabase "C:\craig\Incident Management System - DEVELOPMENT\SJA-IMS"
The code is run from a seperate DB so the SJA-IMS isn't open. When I run it I get the error:
Operation is not supported for this type of object
Can anybody help please.
Thanks
DBEngine.RepairDatabase "C:\craig\Incident Management System - DEVELOPMENT\SJA-IMS"
The code is run from a seperate DB so the SJA-IMS isn't open. When I run it I get the error:
Operation is not supported for this type of object
Can anybody help please.
Thanks