spMFDropAllClassTables¶
Signature¶
EXEC dbo.spMFDropAllClassTables
@IncludeInApp = 1,
@Debug = 0;
- Returns
1 = Success
-1 = Error
- Parameters
- @IncludeInApp int
Required (no default)
Drop only tables with IncludeInApp value: the tables of the classes whose MFClass.IncludeInApp equals this value
NULL matches no class, so the procedure drops nothing
- @Debug smallint (optional)
Default = 0
1 = Standard Debug Mode
101 = Advanced Debug Mode
Purpose¶
Drop all class tables.
Only the class tables are dropped. MFClass (including IncludeInApp and TableName) and MFClassProperty are left unchanged, so spMFCreateAllMFTables with the same IncludeInApp value creates the tables again from the same MFClassProperty rows. A metadata synchronization run while the tables are dropped removes the rows with IsAdditional = 1 (see spMFCreateTable). Tables of classes with another IncludeInApp value, or none, are not touched.
Examples¶
EXEC [spMFDropAllClassTables] 1, 0
Changelog¶
Date |
Author |
Description |
2026-11-16 |
AC |
Document what is dropped, what is kept and the NULL value |
2019-08-30 |
JC |
Added documentation |