SV-276244r1149641_rule
V-276244
SRG-APP-000141-DB-000090
MSQL-00-006900
CAT II
10
Remove any demonstration and sample databases, database applications, objects, and files from the Azure SQL Managed Instance.
Drop Database Syntax: https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-database-transact-sql?view=azuresqldb-mi-current
Review vendor documentation and vendor websites to identify vendor-provided demonstration or sample databases, database applications, objects, and files.
Review the Azure SQL Managed Instance to determine if any of the demonstration and sample databases, database applications, or files are installed in the database or are included with the Azure SQL Managed Instance.
Run the following query to check for names matching known sample databases. Sample databases may have been renamed, so this is not an exhaustive list.
SELECT name
FROM sys.databases
WHERE name LIKE '%pubs%'
OR name LIKE '%northwind%'
OR name LIKE '%adventureworks%'
OR name LIKE '%wideworldimporters%'
OR name LIKE '%contoso%'
If any sample databases are found, this is a finding.
V-276244
False
MSQL-00-006900
Review vendor documentation and vendor websites to identify vendor-provided demonstration or sample databases, database applications, objects, and files.
Review the Azure SQL Managed Instance to determine if any of the demonstration and sample databases, database applications, or files are installed in the database or are included with the Azure SQL Managed Instance.
Run the following query to check for names matching known sample databases. Sample databases may have been renamed, so this is not an exhaustive list.
SELECT name
FROM sys.databases
WHERE name LIKE '%pubs%'
OR name LIKE '%northwind%'
OR name LIKE '%adventureworks%'
OR name LIKE '%wideworldimporters%'
OR name LIKE '%contoso%'
If any sample databases are found, this is a finding.
M
5711