You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IF @Databases ISNOTNULLAND (NOTEXISTS(SELECT*FROM @SelectedDatabases) OREXISTS(SELECT*FROM @SelectedDatabases WHERE DatabaseName ISNULLOR DatabaseName =''))
556
+
IF @Databases ISNOTNULLAND (NOTEXISTS(SELECT*FROM @SelectedDatabases) OREXISTS(SELECT*FROM @SelectedDatabases WHERE DatabaseName ISNULLORDATALENGTH(DatabaseName)=0))
554
557
BEGIN
555
558
INSERTINTO @Errors ([Message], Severity, [State])
556
559
SELECT'The value for the parameter @Databases is not supported.', 16, 1
IF @CompressionAlgorithm NOTIN ('MS_XPRESS','QAT_DEFLATE')
1198
+
BEGIN
1199
+
INSERTINTO @Errors ([Message], Severity, [State])
1200
+
SELECT'The value for the parameter @CompressionAlgorithm is not supported. The allowed values are MS_XPRESS and QAT_DEFLATE.', 16, 1
1201
+
END
1202
+
1203
+
IF @CompressionAlgorithm ISNOTNULLANDNOT (@Version >=16)
1204
+
BEGIN
1205
+
INSERTINTO @Errors ([Message], Severity, [State])
1206
+
SELECT'The value for the parameter @CompressionAlgorithm is not supported. Specifying the compression algorithm is only supported in SQL Server 2022 and later.', 16, 2
1207
+
END
1208
+
1209
+
IF @CompressionAlgorithm ='QAT_DEFLATE'ANDNOT (SERVERPROPERTY('EngineEdition') IN(2, 3))
1210
+
BEGIN
1211
+
INSERTINTO @Errors ([Message], Severity, [State])
1212
+
SELECT'The value for the parameter @CompressionAlgorithm is not supported. Setting the compression algorithm to QAT_DEFLATE is only supported in Standard and Enterprise Edition.', 16, 3
1213
+
END
1214
+
1215
+
IF @CompressionAlgorithm ISNOTNULLAND @BackupSoftware ISNOTNULL
1216
+
BEGIN
1217
+
INSERTINTO @Errors ([Message], Severity, [State])
1218
+
SELECT'The value for the parameter @CompressionAlgorithm is not supported. Setting the compression algorithm is only supported with SQL Server native backup', 16, 4
IF @NumberOfFiles >32AND @URL LIKE's3%'AND @MirrorURL LIKE's3%'
1424
+
BEGIN
1425
+
INSERTINTO @Errors ([Message], Severity, [State])
1426
+
SELECT'The value for the parameter @NumberOfFiles is not supported. The maximum number of files when performing mirrored backups to S3 storage is 32.', 16, 10
IF @Databases ISNOTNULLAND (NOTEXISTS(SELECT*FROM @SelectedDatabases) OREXISTS(SELECT*FROM @SelectedDatabases WHERE DatabaseName ISNULLOR DatabaseName =''))
432
+
IF @Databases ISNOTNULLAND (NOTEXISTS(SELECT*FROM @SelectedDatabases) OREXISTS(SELECT*FROM @SelectedDatabases WHERE DatabaseName ISNULLORDATALENGTH(DatabaseName)=0))
433
433
BEGIN
434
434
INSERTINTO @Errors ([Message], Severity, [State])
435
435
SELECT'The value for the parameter @Databases is not supported.', 16, 1
IF @Databases ISNOTNULLAND (NOTEXISTS(SELECT*FROM @SelectedDatabases) OREXISTS(SELECT*FROM @SelectedDatabases WHERE DatabaseName ISNULLOR DatabaseName =''))
524
+
IF @Databases ISNOTNULLAND (NOTEXISTS(SELECT*FROM @SelectedDatabases) OREXISTS(SELECT*FROM @SelectedDatabases WHERE DatabaseName ISNULLORDATALENGTH(DatabaseName)=0))
525
525
BEGIN
526
526
INSERTINTO @Errors ([Message], Severity, [State])
527
527
SELECT'The value for the parameter @Databases is not supported.', 16, 1
0 commit comments