---
title: "The Two Hybrid Searches in Microsoft SQL"
url: https://daily.dev/posts/the-two-hybrid-searches-in-microsoft-sql-hhfmi7plf
source_url: https://devblogs.microsoft.com/azure-sql/two-hybrid-search
type: article
source: "DevBlogs"
published: 2026-08-18T18:41:57.246Z
updated: 2026-08-18T19:20:53.020Z
tags: ["azure", "rag", "microsoft-sql-server", "vector-search", "full-text-search"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Two Hybrid Searches in Microsoft SQL

**[DevBlogs](https://daily.dev/sources/devblogs)** · 4 min read · 0 upvotes · 0 comments

## Summary

Microsoft SQL supports two forms of hybrid search: combining full-text keyword search (BM25-based FREETEXTTABLE) with vector search, and dynamically switching between exact kNN and approximate ANN (DiskANN-based) vector search depending on data scale. The piece covers FREETEXTTABLE() syntax, VECTOR_SEARCH() syntax, model integration via sp_invoke_external_rest_endpoint and AI_GENERATE_EMBEDDINGS, and how Reciprocal Rank Fusion combines full-text and vector rankings into a single RAG-ready retrieval pipeline inside SQL.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/azure-sql/two-hybrid-search>

## Questions this post answers

### What is the difference between kNN and ANN vector search in SQL Server's VECTOR_SEARCH function?

kNN is exact vector search that compares a query vector against all available vectors and returns the closest matches, but its cost grows with data set size. ANN, implemented via DiskANN, trades some accuracy for speed and scales to millions or billions of vectors without heavy memory use. SQL dynamically switches between the two based on cost and selectivity.

_See how daily.dev surfaces practical guidance for engineers tuning vector search performance in SQL._

### How do I combine full-text search and vector search results in SQL Server for hybrid search?

Full-text search finds relevant words while vector search finds semantic meaning; each produces its own ranked result set. Reciprocal Rank Fusion (RRF) then merges those two rankings into a single ordered result set, optionally weighting one search type more heavily than the other, enabling a hybrid search workflow entirely inside SQL.

_daily.dev helps developers compare retrieval techniques like RRF when designing hybrid search pipelines._

### How can I call external REST APIs like GPT or Cohere from T-SQL in Azure SQL?

Use the sp_invoke_external_rest_endpoint stored procedure, introduced in Azure SQL in 2022, which lets T-SQL call REST services directly, with credentials protected inside SQL and access limited by an allowlist of approved domains including Microsoft Foundry, Microsoft Graph, Power BI, and major Azure services. Extending beyond the allowlist requires services like API Management.

_Developers wiring RAG pipelines into SQL often track integration patterns like this on daily.dev._

## Similar posts on daily.dev

- [Vector Index DiskANN Embeddings for AI Solutions](https://daily.dev/posts/vector-index-diskann-embeddings-for-ai-solutions-ghudmc57k) · DevBlogs · 0 upvotes · 0 comments

---

Tags: [#azure](https://daily.dev/tags/azure), [#rag](https://daily.dev/tags/rag), [#microsoft-sql-server](https://daily.dev/tags/microsoft-sql-server), [#vector-search](https://daily.dev/tags/vector-search), [#full-text-search](https://daily.dev/tags/full-text-search)

[View this post on daily.dev](https://daily.dev/posts/the-two-hybrid-searches-in-microsoft-sql-hhfmi7plf)
