Repairs and compresses the database using the Ms Access build in functionalities.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub CompactDatabase() |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As AccessStorage
instance.CompactDatabase()
|
| C# | |
|---|
public void CompactDatabase() |
| Managed Extensions for C++ | |
|---|
public: void CompactDatabase(); |
| C++/CLI | |
|---|
public:
void CompactDatabase(); |
Exceptions
| Exception | Description |
| FileNotFoundException | The database file couldn't be found. |
| IOException | The database file has been read-only. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also