Azure SQL Database vs SQL Managed Instance: Check What Runs After Hours

Azure SQL Database is a good starting point for an application that can run within one database and manage scheduling outside the SQL Server instance. Azure SQL Managed Instance is often the closer fit for an existing system that depends on instance-level features such as SQL Server Agent or native queries across databases on the same instance. Both are managed services. The deciding evidence often comes from jobs that run after the application’s users go home.
Table of Contents
Follow a month-end close all the way to its recipient
A distributor has a ledger database, a reporting database and a nightly reconciliation job. During office hours its order screens query one database. At midnight a stored procedure joins both databases, a scheduled job produces an extract, and an operator checks that accounting received it. A trial migration that only opens an order screen could pass while the business loses its reconciliation process.
| Dependency | Azure SQL Database | SQL Managed Instance |
|---|---|---|
| Tables, indexes and ordinary T-SQL inside one database | Natural fit. Test compatibility and performance. | Also supported. These features alone give little reason to select an instance. |
| Native three-part references across user databases | Assess redesign or a supported external-query pattern. An elastic pool does not enable native instance-style joins. | Same-instance cross-database queries are a closer match. Verify permissions and actual references. |
| SQL Agent schedules | Move suitable T-SQL work to elastic jobs or another scheduler. Rebuild credentials, retries and alerts. | Agent is included. Verify the specific step types and external dependencies. |
| Jobs that launch a local executable or assume a server drive | Move that work to a separate execution environment. | Managed Instance also restricts host access. A successful database restore cannot validate the executable. |
Inventory behavior outside the database backup
For each closing step, record its owner, trigger, identity, input, output, retry behavior and latest acceptable finish time. Include reporting tools and jobs owned by another team. Inspect runtime history over a period containing an actual close. Searching stored procedure definitions alone can miss dynamically generated SQL and commands initiated from an outside scheduler.
A useful pilot deliberately stops after the report has been written but before the delivery record is updated. On retry, does accounting receive the file twice? Preserve the business result even when a job moves to a different scheduler. Also test network access from the new environment to every external destination.
Put a price on preserving compatibility
Suppose making the workload database-contained requires 180 extra engineering hours at $80 per hour. That is $14,400 in transition work. If comparable regional estimates show the redesigned option saves $600 per month, the simple crossover is 24 months. Those figures are illustrative inputs, not Azure rates. Include scheduler operations, networking, licensing assumptions, minimum capacity, storage and support in the recurring estimates. If the monthly saving disappears, the rewrite has no cost-only payback.
For a new application without legacy jobs, a managed database and an application-owned schedule can be a clean starting point. For the distributor, choose Managed Instance if the close works there and the alternative rewrite costs more than it returns over the system’s remaining life. If both targets fail an indispensable host-level requirement, evaluate moving that dependency or retaining SQL Server on a VM before promising a cutover.
Sources and further reading
Recent articles
Our editorial approach
Clear explanations, practical guidance and responsible research.





