Microsoft SQL Server vs CockroachDB: when each one fits
SQL Server fits Microsoft-centered estates that depend on T-SQL and the bundled SSIS, SSRS, SSAS and Master Data Services components, while CockroachDB fits teams that need a distributed SQL database and accept the CockroachDB Software License terms. A renewal, a license question or a data residency rule usually forces the choice, and it turns on four points: the license events that trigger cost or term changes, where the data must physically sit, whether the workload needs distributed SQL at all, and which staff will run the system after go-live.
Start with license triggers, since they are the facts a quote will not volunteer. On the SQL Server side, cost sits in per-core packs, server and CAL licensing or subscriptions, and Microsoft's SQL Server 2022 pricing page is the starting reference for list figures. On the CockroachDB side, the Enterprise Free license is free of charge only for businesses with less than $10M in annual revenue, counting the parent company and all affiliates, and it must be renewed every year. Free and Trial clusters are throttled when they stop sending telemetry, so check whether any environment would sit on those terms. Confirm which CockroachDB release you would run, because the CockroachDB Software License covers version 24.3.0 and later, and ask how the September 15, 2026 announcement that new source code will no longer be published affects your patching and build process.
Next, test whether the workload needs distributed SQL at all. SQL Server Standard supports basic availability groups of two replicas with one database, while Always On availability groups are an Enterprise edition feature, so a single-site estate with one primary and one standby may never need a distributed database. If the requirement is writes that must continue across sites, CockroachDB deserves a proof of concept on your own schema, and you should measure the result on that schema. If residency rules name specific countries or facilities, confirm for each deployment option, self-hosted or CockroachDB Cloud, where every replica and backup will live. Finally, count the people. Your DBAs know T-SQL, SSIS packages and SQL Agent jobs, while running a distributed cluster demands different skills, so the staffing answer can carry as much weight as the license terms.
Which scenarios favor SQL Server and which favor CockroachDB
This table matches common buyer situations to the option that usually fits better, with the condition that ends each advantage. Read the Why column before acting, since most advantages depend on a license tier, a revenue threshold, a size limit or a renewal date. Check each condition against current contract terms and your own environment.
| Scenario | Better fit | Why |
|---|---|---|
| Existing T-SQL estate with SSIS or SSRS packages | SQL Server | T-SQL code and SSIS or SSRS packages depend on SQL Server components. The advantage ends once the packages are rewritten for another platform. |
| Always On availability groups | SQL Server Enterprise | Availability groups are an Enterprise feature; Standard allows only basic groups with two replicas and one database. Advantage ends if you drop to Standard. |
| Organization under $10M annual revenue testing CockroachDB Enterprise Free | CockroachDB | Free license applies below $10M annual revenue, counting parent and affiliates, and renews yearly. It ends when revenue reaches the threshold or renewal lapses. |
| Distributed SQL across multiple sites | CockroachDB | Built as a distributed SQL database. SQL Server's multi-site high availability usually means Enterprise availability groups. Ends if one standby site suffices. |
| Preference for a vendor-hosted cloud service | CockroachDB Cloud | Standard lists $0.092 and Mission Critical $0.162 per vCPU-hour on Cockroach Labs' pricing page. Confirm current rates; the advantage ends if you must self-host. |
| Development or test work | SQL Server Developer edition (free) | Developer includes all Enterprise functionality but is licensed for development and test only. The advantage ends when the database serves production. |
| Small application within Express limits | SQL Server Express | Express caps databases at 10 GB, the lesser of 1 socket or 4 cores, and 1,410 MB buffer pool. Ends once any limit is exceeded. |
Microsoft SQL Server vs CockroachDB pricing: how each one charges
Microsoft SQL Server and CockroachDB charge on different units: cores, servers, client access licenses, subscription terms, vCPU hours and company revenue. The six cards below set out each charging model, the published figures, what drives the bill, and what to confirm before budgeting. Figures are estimated list prices from the vendors' pricing pages and may not match your contract.
SQL Server one-time licenses
Microsoft SQL Server can be licensed as a one-time purchase. Enterprise is priced per 2-core pack at an estimated open no-level retail price of $15,123. Standard is listed at $3,945 for a 2-core pack. Alternatively, Standard server licensing is $989 per server plus $230 per client access license (CAL). The bill is driven by core count, server count and CAL count, so growth in users or cores raises it. Confirm with Microsoft how the Standard per-core wording applies to your core count, and what update coverage the purchase includes, before you budget.
SQL Server 2022 pricingSQL Server subscription licenses
SQL Server can also be licensed on an annual subscription. The pricing page lists $5,434 a year per 2-core Enterprise pack and $1,418 a year for Standard. The bill is driven by the subscription term and core count, and a multi-year need is paid one renewal at a time, so the cost recurs for as long as the workload runs. Ask Microsoft or your reseller whether the Standard subscription uses the same unit as the Enterprise pack, and how renewal prices are set, before you compare it with a one-time purchase.
Pay-as-you-go through Azure Arc
Azure Arc bills SQL Server by the month through an Azure subscription, with no up-front purchase. The pricing page lists $274 per core per month for Enterprise and $73 for Standard. The bill is driven by core count and the months each core is billed, so it follows the capacity you run each month. Confirm the per-core unit for Standard, and any Azure charges for running Arc itself, before you compare this with a one-time purchase.
CockroachDB Enterprise Free license
The Enterprise Free license is free of charge for businesses with less than $10M in annual revenue, counting the parent company and all affiliates. It must be renewed every year. Free clusters are throttled 30 days after the license expires, and throttling caps open SQL transactions at 5. The qualifying test is revenue across the whole group, so a subsidiary may not qualify on its own revenue. Check your group revenue against the $10M threshold and the annual renewal rule in the licensing FAQ before you rely on it for production.
CockroachDB licensing FAQsPaid CockroachDB Enterprise licenses
Organizations above the Free threshold buy a paid Enterprise license. Request a written quote before budgeting. Ask which unit the quote is based on, how the term and renewal are set, and what support is included. Paid Enterprise licenses are never throttled. Confirm with Cockroach Labs whether the same license covers both self-hosted and Cloud deployments, since the bill and the operating model can differ between them.
CockroachDB Cloud plans
CockroachDB Cloud is billed per vCPU-hour. The Standard plan is listed at $0.092 per vCPU-hour, about $203 a month for 2 vCPUs and 100 GB. Mission Critical is listed at $0.162 per vCPU-hour. New Cloud organizations get a 30-day trial with $400 in credit. The bill is driven by vCPU hours and storage, so a cluster that runs at full size all month costs more than one scaled down. Confirm every other charge with Cockroach Labs before you compare it with a self-hosted cluster.
CockroachDB pricingMicrosoft SQL Server vs CockroachDB capabilities side by side
This table compares Microsoft SQL Server and CockroachDB across licensing, deployment, free use, high availability, bundled components, lifecycle, developer use and operating effort. Where a CockroachDB detail is not covered here, the cell names what to confirm in Cockroach Labs documentation. The main takeaway is that SQL Server's high availability and free-use limits depend on edition, while CockroachDB's free terms depend on annual revenue, telemetry and yearly license renewal.
| Capability | Microsoft SQL Server | CockroachDB |
|---|---|---|
| License model | Proprietary, sold per core or per server plus CALs, with subscription options through Microsoft. | CockroachDB Software License for releases from 24.3.0 onward, plus patch fixes for 23.1 to 24.2 from that date. |
| Deployment options | Self-hosted on your own servers, with pay-as-you-go licensing through Azure Arc. | Self-hosted or as a cloud service. Confirm supported platforms and regions in Cockroach Labs documentation. |
| Free use and its limits | Express is free with a 10 GB database cap, the lesser of 1 socket or 4 cores, and a 1,410 MB buffer pool. | Enterprise Free for businesses under $10M annual revenue, renewed yearly. Free clusters throttle without telemetry or after expiry. |
| High availability | Always On availability groups are Enterprise only. Standard supports basic availability groups with two replicas and one database. | Replication and failover model not covered here. Confirm replica, quorum and failover behavior in Cockroach Labs documentation. |
| Bundled analytics and integration components | Analysis Services for OLAP, Reporting Services, Integration Services and Master Data Services are part of the SQL Server suite. | Bundled tooling not covered here. Confirm included tools and any separate products in Cockroach Labs documentation. |
| Lifecycle and release policy | Fixed lifecycle dates per version. SQL Server 2016 extended support ended July 15, 2026, with paid ESUs through July 17, 2029. | Announced on September 15, 2026 that new source code will no longer be published publicly. Confirm support windows in documentation. |
| Developer use | Developer edition includes all Enterprise features but is licensed only for development and test. | Confirm whether development and test clusters fall under the Free license and its telemetry and throttling terms. |
| Operating effort | Your team handles patching, backups, failover testing and tracking lifecycle dates for each version you run. | Confirm sizing, upgrade and backup procedures in Cockroach Labs documentation. Free use needs a yearly license renewal. |
Where data lives and what leaving SQL Server or CockroachDB involves
Each card covers one place the data lives or one change that affects exit. Together they show where control sits for self-managed SQL Server, the SQL Server 2016 support deadline, CockroachDB Cloud hosting, the self-hosted license limits and the change to the public source repository. Use the list to decide what to ask each vendor for in writing before a renewal or migration starts.
Self-managed SQL Server
Self-managed SQL Server runs on servers or virtual machines you operate, so you decide where data sits and where backups go. Native backups and bulk exports leave the database in formats you can restore elsewhere, but the larger work is dialect rewriting, since T-SQL stored procedures, triggers and SQL Agent jobs need equivalents on the target database. Ask for written confirmation of your license basis, whether per core, per server and CAL, or subscription, and any Software Assurance terms. Azure Arc pay-as-you-go is billed through Azure, so confirm in writing what that connection requires and who owns the Azure billing account.
SQL Server 2022 pricingSQL Server 2016 extended support
Extended support for SQL Server 2016 ended at 6:59 AM Pacific Time on July 15, 2026. Paid Extended Security Updates are offered in yearly terms from July 15, 2026 to July 17, 2029, and without a purchased term, the server no longer receives security updates. The ESU decision does not change export or dialect work, but it sets the deadline for it. Ask the vendor in writing for the price of each yearly term, the license basis for the servers covered, whether ESUs require Software Assurance or an active subscription, and coverage if a term lapses.
Microsoft lifecycle pageCockroachDB Cloud hosting
CockroachDB Cloud has Cockroach Labs host the database, so data is hosted by the vendor in the regions and deployment you select. Cockroach Labs prices it per vCPU-hour, with Standard listed at $0.092 and Mission Critical at $0.162 per vCPU-hour on its pricing page. Moving data out means planning an export path and a SQL rewrite before you commit, because the application's queries, transactions and schema must run on the target. Ask in writing for the regions and subprocessors that hold data, backup retention and restore steps, export format, any data transfer charges, and how vCPU-hour rates may change at renewal.
CockroachDB pricingSelf-hosted CockroachDB license
Self-hosted CockroachDB runs on your infrastructure under the CockroachDB Software License, which sets the terms for each license type. Trial clusters must send telemetry, and Free and Trial clusters are throttled after 7 days without it, with open SQL transactions capped at 5. Enterprise Free is free for businesses under $10M in annual revenue, counting the parent and all affiliates, and must be renewed every year. Application code that opens several transactions at once needs review against that cap before any throttled cluster is used. Request in writing the license type for each cluster, the telemetry and throttle behavior for your deployment, the renewal steps, and the revenue test as it applies to your group.
Licensing FAQsPublic source repository change
On September 15, 2026, Cockroach Labs said new CockroachDB source versions will no longer be published to its public repository, and the existing repository will no longer be maintained. Self-hosted patching then depends on binaries and release notes from the vendor, and a fork started from the last public source will not get later fixes unless someone maintains it. Export and dialect work are separate from this change, but every upgrade still needs testing against your schema and queries. Request in writing which versions will receive security fixes and for how long, whether source access is included in your agreement, your rights to build or fork internally, and how binary access works at renewal.
Cockroach Labs blog postHow to choose between SQL Server, CockroachDB and self-hosted PostgreSQL or MySQL
The diagram starts at a renewal, a license change or a data residency requirement and asks five questions. First, does the workload need distributed SQL across sites? If it does, check the Enterprise Free revenue threshold, which counts the parent company and all affiliates, and whether a vendor-hosted cloud is required. If it does not, check whether the estate depends on T-SQL and bundled Microsoft components, and if not, test whether a general relational workload runs on PostgreSQL or MySQL. Confirm each answer against your license terms and residency rules before you commit, because licensing terms change.
Decision path from a renewal or residency trigger to four database outcomes.
When PostgreSQL or MySQL fits better than either product
Neither product is the right answer when the workload is a general relational database that does not need distributed SQL, or when license terms are the main driver. In that case, PostgreSQL is the usual starting point. It is released under the PostgreSQL License, a liberal open source license similar to the BSD or MIT licenses, so the license adds no per-core or per-server charge. PostgreSQL releases a new major version about once a year, ships minor releases at least once every three months, and supports each major version for 5 years after its initial release. The supported majors are 15 to 18, and PostgreSQL 14 support ended on November 12, 2026, so any cluster still on 14 needs a planned upgrade now. Confirm the major version of every instance before you compare costs.
MySQL Community Edition is the freely downloadable version of MySQL, available under the GPL. Its releases follow two tracks, and the track you choose sets your support window. The LTS track is supported under the Oracle Lifetime Support Policy, with 5 years of premier support and 3 years of extended support. The Innovation track is supported only until the next Innovation release, so production systems on it must upgrade to each new release. The download page currently lists 9.7.2 LTS and 8.4.11 LTS alongside 26.7.0 Innovation. Features can only be added or removed in the first release of an LTS series, such as 8.4.0, and later LTS point releases carry only necessary fixes, so check any feature your application needs against the series you pick. For production, start from an LTS series and confirm its end dates in the Oracle Lifetime Support Policy. Have counsel confirm what the GPL requires if you distribute modified MySQL code.
Running either engine yourself moves the operating work onto your team. Minor releases do not change the internal storage format, so updating means replacing executables and restarting, but someone must schedule them. Major upgrades need a plan: pg_dumpall with restore, pg_upgrade and logical replication each carry a different downtime and rollback profile, as described in the PostgreSQL upgrade documentation. Design high availability and failover before go-live, because a primary with replicas does not give you the distributed behavior CockroachDB provides by default. Test backups by restoring them, and do not treat a successful job status as proof. Monitor replication lag, connections and disk. Finally, run your own workload tests, since T-SQL, PL/pgSQL and MySQL's SQL dialect differ in stored procedures, identity handling, date functions and isolation behavior. Neither engine is a drop-in replacement for T-SQL or CockroachDB, so confirm the fit with your own tests before committing.
What a move between SQL Server and CockroachDB involves
The sequence turns a renewal decision into a tested migration with a rollback path. The effort depends on the number of applications, the amount of dialect-specific code and the operational skills available, and each tool choice should be confirmed against its official documentation. It produces an inventory, a dated license calendar, a tested target and a signed cutover record.
Inventory databases, procedures, jobs and dialect use
The DBA or platform team lists every SQL Server instance, database, stored procedure, function, trigger, linked server and SQL Server Agent job, plus the application connection strings that use them. Each object gets an owner and a flag for T-SQL-specific syntax, such as SQL Server-specific functions and procedural code that a target database may not run unchanged. Reporting and integration packages, including Reporting Services reports and Integration Services packages, go on the same list. The step is done when every object maps to an owner and an application, and no object is left unclassified.
Check license, support and renewal dates
The finance and licensing owner records each SQL Server license type, core count and renewal date, along with any Software Assurance or subscription term. Microsoft's lifecycle page shows SQL Server 2016 extended support ending on July 15, 2026, with paid Extended Security Updates offered in yearly terms through July 17, 2029, so any 2016 instance needs a dated decision. On the CockroachDB side, the Free license is for businesses under $10M in annual revenue including affiliates, must be renewed every year, and Free or Trial clusters are throttled after 7 days without telemetry, limiting open SQL transactions to 5. The step is done when every date sits in one calendar with a named owner.
Choose the target and test it
The architecture owner compares the inventory against candidate targets, which may include CockroachDB and self-hosted PostgreSQL or MySQL, and records which features each one needs, such as stored procedures, scheduled jobs and the transaction patterns your applications use. A workload test then replays representative queries, transactions and reporting jobs against the chosen target at production-like data sizes, with failover and restart behavior checked as part of the run. Confirm the target version and its supported features in the vendor's documentation before the test starts. The step ends with a written result for each workload and a go or no-go decision signed by the application owners.
Convert schema and code to the target dialect
Developers rewrite the T-SQL that the target does not run as written, including stored procedures, functions, triggers and SQL Server Agent jobs, which move to the target's scheduler or to the application layer. Schema changes are reviewed for data types, identity columns, collations and indexing differences, and each change is tracked in version control. Application queries that depend on SQL Server-specific behavior are listed and tested. The step is done when every converted object passes unit tests and a reviewer has signed off on each rewrite.
Move schema and data with documented tools
The data platform team selects export or replication tools only after checking that the target's official documentation lists them as supported for the source version and the target version. They run a full load into a staging copy first, then, if the chosen tool supports ongoing change capture, keep the target in sync until cutover. Row counts, checksums on key tables and sample query results are compared between source and target, and any mismatch is investigated before the next run. The step is done when a staging copy matches the source on every compared check, and the tool choice and its documented version are recorded in the runbook.
Run parallel reads on both systems
Read-only traffic, such as reporting queries and non-critical API calls, is sent to both systems in parallel, and results are compared at the application level. Test suites run against both databases on the same data, with timing and error rates logged for each. Differences in transaction isolation, error codes, time zone handling and rounding are logged as defects and assigned to an owner. The step is done when the agreed comparison window has ended with no open blocking defect, and the owners have signed the comparison report.
Test the rollback plan before cutover
The operations lead writes the rollback procedure before any production switch. It covers who decides to roll back, what the decision point is, and how writes made on the new database are reconciled back to SQL Server if the cutover fails. The team rehearses it on the staging copy, points the test application back to SQL Server, and checks the data afterward. SQL Server licensing and support must still be active for the whole rollback window, so the license calendar from earlier is checked again here. The step is done when a rehearsal restores service on SQL Server and the result is signed by the decision owner.
Cut over after the rollback test passes
The cutover runs in the agreed window, with the application connection strings switched, writes frozen on SQL Server during the final sync, and the sequence checked against the runbook. Post-cutover checks compare row counts, error logs and key business reports against the parallel results. SQL Server stays read-only and available for the rollback window before decommissioning starts, and the decommission date is set only after the business owner accepts the target. The step is done when the business owner signs the cutover record, and the source is archived under the retention rules that apply to your data.
Microsoft SQL Server vs CockroachDB questions buyers ask before hiring help
How much does Microsoft SQL Server cost compared with CockroachDB?
Both bills depend on sizing, edition and deployment, so no single number applies. Microsoft's SQL Server 2022 pricing page lists estimated retail prices of $15,123 per 2-core pack for Enterprise, $989 per server for Standard server licensing and $230 per CAL, plus subscriptions of $5,434 a year per 2-core pack for Enterprise. Edition, core count, server and CAL counts, and the choice between perpetual licenses, subscriptions or pay-as-you-go through Azure Arc all change the total. Cockroach Labs' pricing page lists CockroachDB Cloud Standard at $0.092 per vCPU-hour and Mission Critical at $0.162 per vCPU-hour, so the cloud bill follows vCPU count, storage and tier. Self-hosted use of paid Enterprise features is priced by Cockroach Labs, so request those terms in writing. For both options, add the recurring costs outside the license: hardware or cloud spend, backup storage, staff time and support.
How long does a migration from SQL Server to CockroachDB take?
The timeline depends on the work, and no reliable figure exists until the inventory is complete. Start by counting databases, T-SQL objects such as stored procedures, triggers and functions, SQL Agent jobs, Integration Services and Reporting Services packages, and every application that connects. Schema conversion, data type mapping, query rewrites and testing for correctness and performance each add time, and they grow with the number of applications. Cutover design can add the most time: how much downtime the business accepts, how data stays synchronized until cutover, and how rollback works. Estates with a few well-understood applications and a tolerance for a planned outage move faster than estates with many dependencies, strict uptime targets or heavy reporting. Ask any provider for a timeline in the written scope after the inventory, not before it.
Can our team migrate from SQL Server to CockroachDB alone?
A team with strong database and application skills can do it alone, but three factors decide whether it should. The first is dialect use: list every T-SQL feature your applications rely on and check each one against the target's documentation, since stored procedures, triggers, linked servers and SQL Agent jobs are where moves stall. The second is high availability: Microsoft Learn states that Always On availability groups are an Enterprise edition feature, so decide which availability design you need and who will test failover. The third is staff skills: engineers who have operated distributed SQL, and who can own backup restores and failover drills, lower the risk considerably. A small, well-documented estate with an internal team and a tested plan is a reasonable self-service project. A large estate, regulated data or a tight cutover window usually justifies an outside team working to a written scope.
Does CockroachDB Enterprise Free apply to my company?
Enterprise Free applies only when your business has less than $10M in annual revenue, counting the parent company and all affiliates. Cockroach Labs' licensing FAQ states that the license is free of charge below that threshold and must be renewed every year. Affiliates count toward the total, so a small subsidiary inside a larger group may not qualify. Confirm the figure with finance, covering the parent and every affiliate, before you deploy. Renewal is recurring work, so add it to your yearly license calendar with a named owner. Throttling matters if a renewal lapses: Free licenses throttle 30 days after expiration, and Free clusters that stop sending telemetry for 7 days are limited to 5 open SQL transactions. Paid Enterprise licenses are never throttled. If you are near or above the threshold, get paid license terms in writing and have a legal or licensing contact review your group structure.
Is CockroachDB still open source after version 24.3.0?
No. From version 24.3.0 onward, CockroachDB is licensed under the proprietary CockroachDB Software License, and so are patch fixes for versions 23.1 through 24.2 released from that date, according to Cockroach Labs' licensing FAQ. Check the license file that ships with each version you run, since the terms that apply depend on the release. Cockroach Labs also announced a second change in a September 15, 2026 blog post: new versions of the source code will no longer be published to the public repository, and that repository will no longer be maintained. For teams that fork, audit or rebuild the code, the public source will stop tracking new releases. Ask Cockroach Labs in writing how security fixes will reach you, and whether any terms change for your use case.
What do we need to provide before a database migration engagement starts?
Bring four things: access to the inventory, named workload owners, a decision on the target, and a written scope agreed before work starts. The inventory should list databases and their sizes, T-SQL objects and jobs, the applications and reports that connect, and current backup and recovery practice. Named owners for each workload approve test results and cutover windows, so decisions do not stall while someone searches for the right approver. The target decision covers the database you will run, where it will run (your cloud accounts, data centers or air-gapped networks) and the license terms you accept. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Whether a CockroachDB target is in scope must be confirmed in that written scope, and a quote follows from it.
How DeployOpen helps evaluate options and implement a self-hosted alternative
DeployOpen starts with a written scope that tests whether Microsoft SQL Server workloads can move to a self-hosted option such as PostgreSQL, or whether CockroachDB remains the right fit for the workload. Work then moves through building, testing, documentation and handover inside your own cloud accounts, data centers or air-gapped networks. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory SQL Server editions, versions and features in use, including Always On, SSIS packages and SSRS reports.
- Confirm which CockroachDB license covers each version in use, since 24.3.0 and later fall under the CockroachDB Software License.
- Write the scope, deliverables and acceptance tests in writing before any work starts, so the engagement has defined boundaries.
How we build
- Map T-SQL stored procedures, triggers and functions to PL/pgSQL, and test each converted object against expected results.
- Design high availability with PostgreSQL replication and Patroni or CloudNativePG, checked against your recovery targets.
- Rehearse cutover with a data copy test and reconciliation reports that compare row counts and checksums.
How we hand over
- Deliver runbooks for backup, restore, failover, patching and upgrades, with restore tests recorded as evidence.
- Document configuration, access model, audit logging and data handling so security and compliance teams can review them.
- Prepare compliance readiness evidence for your assessor. DeployOpen does not issue audit reports, attestations or certifications.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover.
- Plan PostgreSQL minor releases, which keep the storage format and mean replacing executables and restarting.
- Confirm your target major version is still in support, since PostgreSQL 14 support ended November 12, 2026.

