{"title":"CompressionType Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-compressiontype-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-compressiontype-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-compressiontype-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies the compression type used.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":97,"chars":21},{"level":2,"title":"Property value","slug":"property-value","at":118,"chars":427},{"level":2,"title":"Syntax","slug":"syntax","at":545,"chars":65},{"level":2,"title":"Remarks","slug":"remarks","at":610,"chars":717},{"level":2,"title":"Example","slug":"example","at":1327,"chars":195},{"level":2,"title":"Related information","slug":"related-information","at":1522,"chars":320}],"text":"> Version: _Available or changed with runtime version 3.0._\nSpecifies the compression type used.\n## Applies to\n Table\n## Property value\nValue|Available or changed with|Description\nUnspecified|runtime version 3.0|Use the compression type that is specified externally on the table, for example, in SQL Server.\nNone|runtime version 3.0|Do not use compression on the table.\nRow|runtime version 3.0|Compress the table on a row-level.\nPage|runtime version 3.0|Compress the table on a page-level. This includes row, prefix, and dictionary compression.\n## Syntax\n```al\nCompressionType = None|Page|Row|Unspecified;\n```\n## Remarks\n> NOTE\n> The devenv-tabletype-property must be Normal. This property cannot be used on table extension objects.\nWith None, Page, and Row, the Business Central table synchronization process will make changes to table in SQL Server, overwriting the current compression setting in SQL Server, if any. Unspecified lets you control data compression directly on SQL Server or by specifying a database default compression level using the Set-NAVTenant cmdlet<https://learn.microsoft.com/powershell/module/microsoft.dynamics.nav.management/set-navtenant> with the `-Compression` parameter set.\nFor information about compression types, see Data Compression<../../administration/optimize-sql-data-access#readwrite>.\n## Example\nThe following code snippet sets page-level compression on table 50100.\n```al\ntable 50100 MyTable\n{\n    TableType = Normal;\n    CompressionType = Page;\n\n    fields\n    {\n       ...\n```\n## Related information\ndevenv-properties\n../devenv-page-object\nSet-NAVTenant cmdlet<https://learn.microsoft.com/powershell/module/microsoft.dynamics.nav.management/get-navtenant>\nStart-NAVDataCompression cmdlet<https://learn.microsoft.com/powershell/module/microsoft.dynamics.nav.management/start-navdatabasecompression>"}