SQL Server Consulting Services

    For teams running Microsoft SQL Server in production, on-premises, in Azure or on AWS. Queries slow down and CPU climbs, the per-core licence bill grows with every server, and the version upgrade keeps slipping. DharmOps finds the cause, fixes it or runs the upgrade, and stays on to support it.

    An engineer replies within 24 hours. Or describe the problem first, and see our SQL Server case study.

    Common SQL Server Problems We Fix

    Most teams don't call it a database problem at first. They notice a slow screen, a report that times out or a licence renewal that costs more than last year. Support and upgrade details are from Microsoft's SQL Server lifecycle pages and its compatibility level and Query Store guidance.

    Queries slow down and CPU sits near 100%

    Pages that returned in milliseconds now take seconds and reports time out. The usual causes are execution plans built for the wrong parameter values, missing or duplicated indexes, statistics that have gone stale, and parallelism settings still at their defaults. A bigger server helps for a few weeks, then the same queries catch up.

    The licence bill keeps growing

    SQL Server is licensed per core, so every core added for headroom adds licence cost. Common leaks: Enterprise edition on servers that use no Enterprise features, cores sized for a peak that never comes, paid editions on development and test servers, and cloud instances where licensing was bought twice.

    The version is near or past end of support

    Microsoft supports each SQL Server version for about ten years: five of mainstream support, then five of security fixes only. After that, security updates only come through paid Extended Security Updates, billed per core each year. Every year the upgrade waits, it crosses more versions.

    Queries got slower after the last upgrade

    A database keeps its old compatibility level after an upgrade. Raising it turns on a newer query optimizer, and most queries get faster, but a few critical ones can pick a much worse plan. Without a Query Store baseline taken first, nobody can see which plans changed.

    Blocking, deadlocks and timeouts at peak

    Month-end, payroll or a busy morning brings blocking chains, deadlock errors and application timeouts. Long transactions, missing indexes on foreign keys and reports running against the same tables as order entry are the usual reasons. Restarting the service clears it until the next peak.

    Logs, tempdb and maintenance jobs eat the night

    The transaction log grows until the disk fills, tempdb runs out of space under concurrent reports, and nightly index rebuilds spill into business hours without making anything faster. Often the fix is log backups, tempdb files sized to the workload, and targeted statistics updates instead of blanket rebuilds.

    SQL Server Consulting at DharmOps

    SQL Server consulting is diagnosing, fixing, upgrading and supporting the Microsoft SQL Server databases your applications and reports run on: the queries and indexes, the settings, maintenance, availability and backups, the version, and the licences it runs under. It is part of our database engineering work.

    SQL Server Health Check & Diagnostic

    • Top queries and regressed plans from Query Store
    • Wait statistics: what the server spends its time on
    • Memory, MAXDOP and cost threshold for parallelism
    • Indexes: missing, unused and duplicated
    • tempdb, log files and maintenance jobs
    • Backups, availability groups and failover review

    Performance Tuning

    • Slow queries traced through actual execution plans
    • Parameter sniffing fixes that hold
    • Blocking chains and deadlock graphs resolved
    • Covering and filtered indexes
    • Statistics updates in place of blanket rebuilds
    • Reporting moved off the transactional workload

    How we debug a slow SQL query

    Version Upgrades

    • In-place or side-by-side upgrades, crossing several versions
    • Compatibility level raised after a Query Store baseline
    • Plan regressions found and fixed before users notice
    • Deprecated features and drivers checked first
    • Rehearsal on a copy at production size
    • Windows Server and SQL Server upgrades planned together

    Licensing & Cost Review

    • Edition fit: Enterprise features you use, or don't
    • Core counts matched to measured load
    • Developer edition for development and test
    • Consolidation, and where it stops saving
    • Licence-included vs bring-your-own in the cloud
    • Extended Security Updates vs upgrading, costed

    High Availability & Recovery

    • Always On availability groups and failover cluster instances
    • Replicas that fall behind or stop synchronizing
    • Log shipping and disaster recovery sites
    • Backups restored, not just taken
    • Written recovery time and data loss targets

    Database backup and recovery

    Migration & Hosting

    • Azure SQL Managed Instance, Azure SQL Database or SQL Server on Azure VMs
    • Amazon RDS for SQL Server or EC2
    • SQL Server to PostgreSQL, with T-SQL converted
    • SQL Agent jobs, SSIS packages and linked servers inventoried first
    • Row counts and checksums compared before cutover

    What a database migration costs

    Vector Search, AI & Reporting

    • Vector search in SQL Server and Azure SQL
    • Readable secondaries for reports and AI tools
    • Read-only logins scoped to what each tool needs
    • Change Data Capture to a warehouse instead of the primary
    • Resource Governor limits on heavy readers

    Operations & Ongoing Support

    • Fixes when a query, job or failover breaks
    • Planned cumulative updates and version upgrades
    • Capacity and licence planning as load grows
    • Query and schema review for new features
    • Ongoing support from the engineers who did the work

    Who It's For

    Companies whose products, ERP or internal systems run on SQL Server and who see slow queries, high CPU, blocking or growing logs. Also teams facing a version near end of support, or a licence bill that grows faster than the business.

    What It Solves

    Slow screens and reports, timeouts at peak, disks filling overnight, upgrades that keep slipping, licences paid for features nobody uses, and a database that only one person understands.

    How It Starts

    With a diagnostic, not more cores or a quote. The diagnostic decides whether to tune what you have, upgrade first, change editions, move to a cloud service, or move part of the load elsewhere.

    What It Isn't

    We don't resell licences or hosting, and we don't take over routine administration such as login requests. SSIS pipelines and warehouses sit with Data Engineering, and Power BI dashboards with Data Analytics.

    Where It Sits in Your Stack

    SQL Server often sits under the ERP, the line-of-business applications and the reports finance relies on, all at once. When a screen is slow or a report times out, the cause is often a plan, a missing index or blocking from another workload, not the application that sent the query.

    What Changes When SQL Server Is Fixed

    What DharmOps puts in place in a SQL Server consulting engagement and what it means for you
    What we put in placeWhat it means for you
    Queries, indexes and settings tuned to your real workloadPages and reports get faster without buying more cores, and more licences with them
    Editions and core counts matched to what you useThe licence bill reflects your workload, not the last hardware refresh
    A supported version, upgraded on a rehearsed planSecurity fixes keep arriving without paying Extended Security Updates
    A Query Store baseline before every compatibility level changeUpgrades stop bringing surprise slowdowns, and any regression is fixed in minutes
    Log backups, tempdb sizing and maintenance that earns its timeDisks stop filling overnight and maintenance stops running into business hours
    Availability groups and restores tested, with runbooksYou know how long recovery takes and how much data is at risk before you need to

    What You Receive and What You Provide

    What You Receive

    Diagnostic output

    A written assessment of your SQL Server: top queries, waits, settings, indexes, tempdb and logs, maintenance jobs, backups, availability groups and version status, with fixes ranked by impact and effort.

    Licensing review

    Each instance's edition, cores and the Enterprise features it uses, with the options to reduce licence cost and the risk of each. We don't sell licences, so the numbers aren't tied to a sale.

    Upgrade plan

    If your version is near or past end of support, the target version, in-place or side-by-side, the compatibility level plan, deprecated features to fix, the rehearsal plan, and a cutover plan with a rollback.

    Performance fixes

    Index, query, statistics and configuration changes, each tied to the query or wait it improves and measured against the baseline.

    Recovery setup

    Availability groups, failover and backups set up or fixed, a restore that has been tested, and written recovery time and data loss targets.

    Monitoring and alerts

    Query Store regressions, long-running queries, blocking, deadlocks, log and tempdb growth, failed jobs and replica health, with alerts that point to a runbook.

    Runbooks

    Step-by-step procedures for failover, restore, upgrades, a full transaction log and blocking incidents, written so a junior engineer could follow them alone at 2am.

    Documentation and training

    Why each setting, index and design choice is the way it is, and sessions for the developers who write queries against it.

    Ownership

    The scripts, configuration, jobs and documentation belong to you. Nothing proprietary sits between your application and your database.

    What You Provide

    1. A monitoring login with VIEW SERVER STATE (VIEW SERVER PERFORMANCE STATE on newer versions), not sysadmin, and Query Store turned on for the databases that matter.
    2. People who own the application: someone who knows which queries, reports and jobs matter most and who depends on them.
    3. Your licensing records: editions, core counts, and whether you have Software Assurance or a cloud subscription, if a licensing review is in scope.
    4. Your current setup: SQL Server versions and editions, data size, availability groups, and where it runs: on-premises, Azure, AWS or another cloud.
    5. Infrastructure and security contacts who can approve network, access and change requests.
    6. Early notice of regulated data such as health, financial or personal data, so handling is agreed before work starts.

    How an Engagement Works

    Six steps, in order. Each ends with something you can see, and nothing moves on until you've approved it.

    1. Discovery call
    2. Diagnose
    3. Prioritize
    4. Fix
    5. Stay

    Discovery Call

    We talk through what you're seeing in SQL Server, the versions and editions you run, and what you've already tried.

    • You receive: a clear answer on whether SQL Server consulting is the right next step
    • You provide: a short description of the symptoms, your SQL Server versions and where they run
    • Approval: both sides agree there is something to diagnose

    Diagnostic

    The step after the discovery call, and the gate before any scope is set. Using a monitoring login, we review your top queries, waits, settings, indexes, maintenance, backups, availability groups, versions and, if in scope, licensing.

    • You receive: a written plan ranking fixes by impact and effort, an upgrade plan if your version is near end of support, and the cost and risk behind each option
    • You provide: the monitoring login, Query Store turned on, and time with the people who own the application
    • Approval: you approve the plan

    Scope is quoted after this step, not before

    Design

    We design the changes: indexes, queries, settings, maintenance, availability and, for upgrades or migrations, the method and cutover plan.

    • You receive: a design document covering each change, its expected effect and how it is rolled back
    • You provide: sign-off from your infrastructure and security contacts
    • Approval: you sign off on the design before any change starts

    Fix and rehearse

    We apply the fixes found in the diagnostic, measured against the baseline. Upgrades and migrations are rehearsed on a copy at production size until the cutover holds no surprises.

    • You receive: changes delivered as versioned scripts, rehearsal results, and documentation written as we go
    • You provide: a named contact who answers questions promptly, and decisions on any change we flag
    • Approval: each change is accepted against criteria agreed in the design

    Cut over

    For upgrades and migrations, the cutover runs in the window you chose, with row counts, checksums and Query Store plans compared before traffic moves. The old instance stays available until you approve retiring it.

    • You receive: matching data, query timings compared against the baseline, and a log of what was done
    • You provide: someone on your side to confirm the application, jobs and reports behave as expected
    • Approval: you approve retiring the old version or instance

    Ongoing support

    Support starts at cut over, with the same engineers who did the work. The first weeks get closer attention, because that is when production surprises appear.

    • You receive: fixes when something breaks, planned cumulative updates and upgrades, capacity and licence planning, query review for new features, and runbooks that stay current
    • You provide: a named contact, and early notice when traffic, data size or features are about to change
    • Approval: support scope is agreed in writing before support begins

    Continues after cut over, with the same engineers

    Timeline

    How Timing Works

    The diagnostic produces a timeline with milestones, each tied to something you can verify, not only a date. Dates move when a dependency on either side moves, and we tell you the same day it happens. The dependencies that matter most:

    • Instances: how many SQL Server instances and databases are involved, and how large the biggest ones are.
    • Version gap: how many versions an upgrade crosses, and how many deprecated features and old drivers come with it.
    • Dependencies: SQL Agent jobs, SSIS packages, linked servers, replication and reports that have to keep working.
    • Availability: availability groups, failover cluster instances and disaster recovery sites that have to move with the primary.
    • Hosting: on-premises, Azure SQL, Amazon RDS or VMs in either cloud, and whether that changes as part of the work.
    • Change windows: how often the business can accept a maintenance window, and any compliance review it needs first.

    An Engagement on SQL Server

    A city traffic platform running SQL Server and PostgreSQL

    Situation
    SQL Server reports used by traffic operations staff timed out during the morning and evening commute, when the data mattered most.
    What we did
    Updated statistics that hadn't been refreshed since deployment, rewrote the reporting queries and added covering indexes, added tempdb data files to remove allocation contention, and replaced full ETL exports with Change Data Capture. Query Store now flags regressions before staff notice them.
    Result
    SQL Server reports 12x faster with timeouts gone, and 99.9% uptime held with no downtime for changes.

    Read the traffic platform case study

    More on our work in all case studies.

    Why Teams Bring DharmOps In for SQL Server

    We diagnose before we recommend.We read your Query Store, wait statistics and settings through a monitoring login before suggesting more cores, a new version, a cloud move or a different engine. The written plan comes before any timeline or price.

    We don't sell licences.Our licensing advice isn't tied to a reseller margin or a cloud commitment. If the cheapest option is to keep your current licences and tune the workload, the plan says so.

    We work on the engines around it too.If SQL Server runs next to PostgreSQL or Oracle, or you're weighing a move to PostgreSQL, one team covers both sides and can tell you what the move really involves. Our engineers bring hands-on, cross-platform database expertise.

    You own it, and we stay.Scripts, jobs, configuration and runbooks are yours, whether SQL Server runs on your servers or in a cloud. After the work, DharmOps stays on to support it.

    How We Handle Your Systems

    Your SQL Server holds your customers', finance and operations data. Giving an outside team access to it is a serious decision. These are the rules we work by.

    • NDA before any access. Signed before we see anything.
    • Least access. A monitoring login first. Elevated access only for approved changes.
    • Approval before access. You approve each access level before we use it.
    • Your data stays where it lives. We work inside your environment, in the cloud or on-premises.
    • Deletion we verify. When work ends, anything we held is deleted and the deletion is confirmed.
    • Written incident procedure. If something goes wrong, there is a documented process, not improvisation.

    SQL Server Questions Teams Ask Before Booking

    What does a SQL Server consultant do?

    A SQL Server consultant diagnoses and fixes the database your applications and reports run on: slow queries, high CPU, blocking and deadlocks, tempdb and log growth, availability groups and backups. They also plan version upgrades, review licensing, and move SQL Server to Azure, AWS or PostgreSQL. DharmOps also stays on to support the database after the work is done.

    How long is a SQL Server version supported?

    Microsoft supports each SQL Server version for about ten years: around five years of mainstream support with cumulative updates, then about five years of extended support with security fixes only. After extended support ends, security updates are only available through paid Extended Security Updates. The exact dates for each version are on Microsoft's lifecycle pages.

    What are SQL Server Extended Security Updates?

    Extended Security Updates (ESU) are paid critical security fixes for a SQL Server version after its extended support has ended. They are bought for a year at a time, priced per core, and the price rises each year. They contain security fixes only, no bug fixes or new features. ESUs are included at no extra charge for SQL Server running on Azure virtual machines.

    Why are queries slower after a SQL Server upgrade?

    Usually because the database compatibility level was raised, which turns on a newer query optimizer and cardinality estimator. Most queries improve, but some pick worse plans. Microsoft's documented approach is to upgrade, keep the old compatibility level, capture a Query Store baseline, then raise the level and force the last good plan for any query that regresses.

    How is SQL Server licensed?

    Enterprise is licensed per core. Standard can be licensed per core or per server plus a client access licence (CAL) for each user or device. Core licences are sold in 2-core packs, with a minimum of four cores per physical processor or per virtual machine. Developer edition is free for development and test, and Express is free with limits on size and resources.

    What is the difference between SQL Server Enterprise and Standard?

    Enterprise costs several times more per core than Standard. Standard caps how many cores and how much memory SQL Server will use, and its Basic Availability Groups allow one database per group and two replicas. Enterprise removes those limits and adds features such as online index operations and readable secondary replicas. Many servers run Enterprise without using any of them.

    How can we reduce SQL Server licensing costs?

    Check which Enterprise features each server actually uses and move the rest to Standard. Match core counts to measured load after tuning, since every core removed is a licence saved. Run development and test on the free Developer edition. In the cloud, compare licence-included pricing with bringing your own licences. Consolidating instances only saves money if the new host doesn't need more cores.

    What is parameter sniffing in SQL Server?

    SQL Server builds an execution plan using the parameter values from the first call of a query or stored procedure, then reuses it. If those values were unusual, the cached plan can be very slow for everyone else. Fixes range from better indexes and query hints such as OPTIMIZE FOR or RECOMPILE to forcing a known good plan with Query Store. The right one depends on how often the query runs.

    Why does the SQL Server transaction log keep growing?

    The most common cause is a database in the full recovery model with no regular log backups, so the log can never be reused. Other causes are long-running or open transactions, an availability group replica or replication that has fallen behind, and large index rebuilds. Shrinking the file only treats the symptom. Finding what holds the log, shown in sys.databases as log_reuse_wait_desc, fixes it.

    Should we move SQL Server to Azure SQL Managed Instance, Azure SQL Database or AWS?

    Azure SQL Managed Instance keeps most instance-level features, such as SQL Agent and cross-database queries, so it suits lift-and-shift. Azure SQL Database is a single managed database and suits applications that don't depend on instance features. Amazon RDS for SQL Server is managed with some feature limits, and SQL Server on a VM in either cloud keeps full control. The diagnostic checks which features your databases depend on before you choose.

    Should we migrate from SQL Server to PostgreSQL?

    Sometimes. Licence savings are real, but most of the work is in what depends on the database: T-SQL stored procedures, SQL Agent jobs, SSIS packages, linked servers, reports, data type and collation differences, and rebuilt monitoring, backup and failover. We inventory those first, so the migration budget is set against the licence savings before you decide.

    Can SQL Server be used for vector search?

    Yes. Recent versions of SQL Server and Azure SQL include a native vector data type and functions such as VECTOR_DISTANCE, so embeddings can be stored and searched next to the rows they describe, with the same backups and security. Large vector workloads need planning for indexes, memory and the load they put on the primary.

    How is SQL Server consulting priced?

    Scope is quoted after the diagnostic, once we have looked at your instances, and before you commit. Cost depends on the number of instances and databases, data size, the version gap for upgrades, availability groups and hosting, whether a licensing review is included, compliance requirements and whether support continues afterward.

    What happens after the work is done?

    The same engineers stay on. They fix breaks, run planned cumulative updates and version upgrades, plan capacity and licences as load grows, and review queries and schema changes for new features. The runbooks and documentation stay current, so your database doesn't depend on one person.

    Support policies are from Microsoft's lifecycle pages, upgrade guidance from its compatibility level and Query Store documentation, and licence models from Microsoft's SQL Server pricing page.

    Database Engineering Use Cases by Industry

    A slow or fragile database costs different things in different industries: a missed report deadline, a failed recovery, a checkout that stalls at peak. The cause is usually in the queries, the configuration or the recovery plan.

    Database Engineering for Banking & Insurance

    Moving off Oracle for licensing cost is a large project. We fix the design problems first so they don't move with you, and rehearse the migration in full against a copy of production before the cutover.

    Database Engineering for Healthcare

    Clinical and claims systems can't afford an untested recovery. We rehearse failover and test restores, and write the runbooks, so recovery doesn't depend on someone remembering the steps.

    Database Engineering for Retail & eCommerce

    A product page or checkout that slows at peak usually traces to a query plan or a connection limit, not the size of the server. We measure it and fix the cause before adding hardware.

    Database Engineering for SaaS & Software

    Dashboards that were fast at launch slow down as customer data grows. We find the query and index causes, and every change lands in your repository for your engineers to review.

    Database Engineering for Manufacturing

    End-of-day reports that run for hours can block order entry. We trace the heaviest reports to their queries and processing logic, and fix them without changing what the report shows.

    Database Engineering for Logistics

    Shipment and fleet data arrives in constant high-volume writes. We tune ingestion and keep peak-hour reports finishing, with the work tested before it reaches production.

    Start With a Conversation About Your SQL Server

    If your queries are slowing down, your licence bill keeps rising, or a version upgrade keeps slipping, the first step is a 30-minute discovery call.

    Microsoft, SQL Server and Azure are trademarks of the Microsoft group of companies.