-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathelastic-scale-faq.yml
More file actions
68 lines (58 loc) · 4.05 KB
/
elastic-scale-faq.yml
File metadata and controls
68 lines (58 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
### YamlMime:FAQ
metadata:
title: Elastic Scale FAQ
description: Frequently Asked Questions about Azure SQL Database Elastic Scale.
services: sql-database
ms.service: azure-sql-database
ms.subservice: scale-out
ms.custom: sqldbrb=1
ms.topic: faq
author: WilliamDAssafMSFT
ms.author: wiassaf
ms.reviewer: bgavrilovic, mathoma
ms.date: 06/13/2025
monikerRange: "=azuresql || =azuresql-db "
title: Elastic database tools frequently asked questions (FAQ)
summary: |
[!INCLUDE[appliesto-sqldb](../includes/appliesto-sqldb.md)]
sections:
- name: Ignored
questions:
- question: |
If I have a single-tenant per shard and no sharding key, how do I populate the sharding key for the schema info?
answer: |
The schema info object is only used to split merge scenarios. If an application is inherently single-tenant, then it does not require the Split Merge tool and thus there is no need to populate the schema info object.
- question: |
I've provisioned a database and I already have a Shard Map Manager, how do I register this new database as a shard?
answer: |
See [Adding a shard using Elastic Database tools](elastic-scale-add-a-shard.md).
- question: |
How much do elastic database tools cost?
answer: |
Using the elastic database client library does not incur any costs. Costs accrue only for the databases in Azure SQL Database that you use for shards and the Shard Map Manager, as well as the web/worker roles you provision for the Split Merge tool.
- question: |
Why are my credentials not working when I add a shard from a different server?
answer: |
Do not use credentials in the form of "User ID=username@servername", instead simply use "User ID = username". Also, be sure that the "username" login has permissions on the shard.
- question: |
Do I need to create a Shard Map Manager and populate shards every time I start my applications?
answer: |
No—the creation of the Shard Map Manager (for example, [ShardMapManagerFactory.CreateSqlShardMapManager](/dotnet/api/microsoft.azure.sqldatabase.elasticscale.shardmanagement.shardmapmanagerfactory.createsqlshardmapmanager)) is a one-time operation. Your application should use the call [ShardMapManagerFactory.TryGetSqlShardMapManager()](/dotnet/api/microsoft.azure.sqldatabase.elasticscale.shardmanagement.shardmapmanagerfactory.trygetsqlshardmapmanager) at application start-up time. There should be only one such call per application domain.
- question: |
I have questions about using elastic database tools, how do I get them answered?
answer: |
Please reach out to us on the [Microsoft Q&A question page for SQL Database](/answers/topics/azure-sql-database.html).
- question: |
When I get a database connection using a sharding key, I can still query data for other sharding keys on the same shard. Is this by design?
answer: |
The Elastic Scale APIs give you a connection to the correct database for your sharding key, but do not provide sharding key filtering. Add `WHERE` clauses to your query to restrict the scope to the provided sharding key, if necessary.
- question: |
Can I use a different SQL Database edition for each shard in my shard set?
answer: |
Yes, a shard is an individual database, and thus one shard could be a Premium edition while another be a Standard edition. Further, the edition of a shard can scale up or down multiple times during the lifetime of the shard.
- question: |
Does the Split Merge tool provision (or delete) a database during a split or merge operation?
answer: |
No. For **split** operations, the target database must exist with the appropriate schema and be registered with the Shard Map Manager. For **merge**
operations, you must delete the shard from the shard map manager and then delete the database.
[!INCLUDE [elastic-scale-include](../includes/elastic-scale-include.md)]