Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to find if the sql server supports compression for backup using vb.net.

What I have tried:

I tried the following code
BACKUP DATABASE KGMERP_SHANTHI To DISK = 'F:\KGM\ManualBackup\SHANTHI_KGM_07-09-2018 18 48 24 SQL_2012 Express Edition.bak' WITH  NOFORMAT, NOINIT, NAME = 'KGMERP_SHANTHI', SKIP, COMPRESSION


It supports on 2012 enterprise edition and not works on express edition.
Posted
Updated 7-Sep-18 5:01am
Comments
Richard MacCutchan 7-Sep-18 10:36am    
You should check the documentation for the product you are trying to use.

1 solution

Could not find that information for SQL 2012

The 2016 version comparison chart (linked below) shows that Backup Compression is only supported on the Standard and Enterprise versions; the Web, Express, and Express Advanced versions do not
Editions and supported features of SQL Server 2016 | Microsoft Docs[^]
 
Share this answer
 
Comments
Richard Deeming 7-Sep-18 11:25am    
The 2012 version is still around, and says the same thing:
Features Supported by the Editions of SQL Server 2012 | Microsoft Docs[^]

Microsoft certainly don't make it easy to find! :)
MadMyche 7-Sep-18 12:36pm    
Agreed
kgmmurugesh 8-Sep-18 0:50am    
Thanks, Is there any sql command to check whether the server supports compression, because each customer using different version of sql server. It is more helpful, if i find it in sql command.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900