Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hello,
Microsoft Copilot Studio limits SQL or Synapse knowledge-source retrieval to 2,048 rows per table, and this limit cannot be configured or increased. The platform does not perform live SQL queries; instead, it samples rows (up to ~2,048), converts them into text, and uses them for RAG-style grounding. This design exists because large language models are not intended to reason over very large structured datasets. As a result, Copilot Studio does not support pagination, full-table queries, or text-to-SQL execution when SQL/Synapse is used as a knowledge source.
For large datasets, Microsoft recommends alternative architectures such as exposing the database through APIs or tools (e.g., Azure Functions, custom connectors, or MCP servers) so the agent can query only the required data. Other options include pre-aggregating data to stay under the row limit or using a hybrid approach where SQL knowledge provides schema context while APIs retrieve actual data. This approach ensures scalability, accuracy, and proper handling of large structured datasets.
This behavior is by design.