Skip to main content
Connect AnomalyArmor to any Microsoft SQL Server database. This guide covers on-premise SQL Server, Azure SQL Database, and Amazon RDS for SQL Server.

Supported Versions & Platforms

SQL Server 2008 and earlier are not supported. Please upgrade to SQL Server 2012+ for compatibility.

Connection Settings

Authentication Methods

SQL Server Authentication (username/password) is required. Windows Authentication and Azure AD are planned for future releases.

Creating a Read-Only User

Create a dedicated user with minimal permissions:

Verifying Permissions

Test that the user can access metadata:

Provider-Specific Instructions

Azure SQL Database

Connection Details:
  • Host: yourserver.database.windows.net
  • Port: 1433
  • SSL Mode: Encryption is always enabled (TLS 1.2+)
Firewall Configuration:
  1. Go to Azure Portal > SQL databases > Your database > Set server firewall
  2. Add a rule for each AnomalyArmor IP address (see Settings > Security)
  3. Or enable “Allow Azure services” if AnomalyArmor runs in Azure
Service Tiers: All tiers are supported:
  • Basic, Standard, Premium (DTU-based)
  • General Purpose, Business Critical, Hyperscale (vCore-based)
  • Serverless
Azure SQL Database enforces encrypted connections. The SSL mode setting is informational - Azure will always use TLS 1.2+.

What We Query

AnomalyArmor runs these types of queries:
Impact: Minimal. These are lightweight metadata queries using standard INFORMATION_SCHEMA views.

Excluded Schemas

AnomalyArmor automatically excludes system schemas:
  • sys - SQL Server system objects
  • INFORMATION_SCHEMA - ANSI standard metadata views
All user-created schemas are included by default.

Troubleshooting

Error: Login failed for user 'anomalyarmor'Causes:
  • Wrong username or password
  • SQL Server Authentication not enabled
  • User doesn’t have access to the specified database
Solutions:
  1. Verify username and password are correct
  2. Check SQL Server is in Mixed Mode authentication
  3. Ensure the login exists: SELECT name FROM sys.server_principals WHERE name = 'anomalyarmor'
  4. Ensure the user has database access
Error: Cannot open database 'mydb' requested by the loginCauses:
  • Database name is incorrect
  • User doesn’t have access to the database
  • Database doesn’t exist
Solutions:
  1. Verify database name (case-sensitive on some configurations)
  2. Check user permissions: SELECT name FROM sys.database_principals WHERE name = 'anomalyarmor'
  3. Grant access: USE mydb; CREATE USER anomalyarmor FOR LOGIN anomalyarmor;
Error: Cannot connect to SQL Server or connection timeoutCauses:
  • Firewall blocking the connection
  • Wrong hostname or port
  • SQL Server not listening on TCP/IP
  • SQL Server Browser service not running (named instances)
Solutions:
  1. Verify AnomalyArmor IPs are allowlisted
  2. Check firewall rules
  3. Ensure TCP/IP protocol is enabled in SQL Server Configuration Manager
  4. For named instances, ensure SQL Server Browser is running or specify the port
  5. Test connectivity: Test-NetConnection hostname -Port 1433
Error: Cannot connect - firewall rule or error 40615Causes:
  • AnomalyArmor IP not in Azure SQL firewall rules
  • Public access is disabled
Solutions:
  1. Go to Azure Portal > SQL databases > Set server firewall
  2. Add AnomalyArmor IP addresses to firewall rules
  3. Ensure “Deny public network access” is Off
Error: Error 18470 or “Windows authentication is required”Causes:
  • Server is configured for Windows Authentication only
  • SQL Server Authentication is disabled
Solutions:
  1. Enable Mixed Mode authentication in SQL Server properties
  2. Restart SQL Server service
  3. AnomalyArmor currently requires SQL Server Authentication
Causes:
  • User lacks SELECT permission on schemas
  • User lacks VIEW DEFINITION permission
  • All tables are in excluded schemas
Solutions:
  1. Grant schema access: GRANT SELECT ON SCHEMA::dbo TO anomalyarmor;
  2. Grant view definition: GRANT VIEW DEFINITION TO anomalyarmor;
  3. Test query: SELECT * FROM INFORMATION_SCHEMA.TABLES;

Common Questions

Which SQL Server versions and services does AnomalyArmor support?

SQL Server 2012+, Azure SQL Database (Single and Elastic Pool), Azure SQL Managed Instance, and Amazon RDS for SQL Server. SQL Server 2008 and earlier are not supported due to missing information-schema features.

Do I need a SQL login or Windows authentication for Azure SQL?

SQL login (username + password) is the recommended path for Azure SQL Database. Azure AD authentication is supported on Enterprise plans. Windows authentication is not supported for managed Azure SQL; for on-premise SQL Server, SQL auth is still the simplest setup.

What permissions does AnomalyArmor need on SQL Server?

Minimal read: grant the connection’s login CONNECT to the database, VIEW DEFINITION on the schemas to monitor (so information_schema returns your tables), and SELECT on those tables. No ALTER, INSERT, or sysadmin needed.

Does AnomalyArmor support Always Encrypted columns in SQL Server?

AnomalyArmor doesn’t decrypt Always Encrypted columns - nor does it need to. Schema drift and freshness work against encrypted columns because we only read metadata and aggregate over non-encrypted timestamp columns. If a column is Always Encrypted, we see its presence and type; its values stay encrypted end-to-end.

Next Steps

Run Discovery

Scan your SQL Server database

Set Up Alerts

Get notified of schema changes