<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Work with backend state stores on Dapr Docs</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/</link><description>Recent content in Work with backend state stores on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/index.xml" rel="self" type="application/rss+xml"/><item><title>Azure Cosmos DB</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/query-cosmosdb-store/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/query-cosmosdb-store/</guid><description>&lt;p>Dapr doesn&amp;rsquo;t transform state values while saving and retrieving states. Dapr requires all state store implementations to abide by a certain key format scheme (see &lt;a href="https://v1-18.docs.dapr.io/reference/api/state_api/">the state management spec&lt;/a>. You can directly interact with the underlying store to manipulate the state data, such as:&lt;/p>
&lt;ul>
&lt;li>Querying states.&lt;/li>
&lt;li>Creating aggregated views.&lt;/li>
&lt;li>Making backups.&lt;/li>
&lt;/ul>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 Azure Cosmos DB is a multi-modal database that supports multiple APIs. The default Dapr Cosmos DB state store implementation uses the &lt;a href="https://docs.microsoft.com/azure/cosmos-db/sql-query-getting-started">Azure Cosmos DB SQL API&lt;/a>.

&lt;/div>

&lt;h2 id="connect-to-azure-cosmos-db">Connect to Azure Cosmos DB&lt;/h2>
&lt;p>To connect to your Cosmos DB instance, you can either:&lt;/p></description></item><item><title>Redis</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/query-redis-store/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/query-redis-store/</guid><description>&lt;p>Dapr doesn&amp;rsquo;t transform state values while saving and retrieving states. Dapr requires all state store implementations to abide by a certain key format scheme (see &lt;a href="https://v1-18.docs.dapr.io/reference/api/state_api/">the state management spec&lt;/a>. You can directly interact with the underlying store to manipulate the state data, such as:&lt;/p>
&lt;ul>
&lt;li>Querying states.&lt;/li>
&lt;li>Creating aggregated views.&lt;/li>
&lt;li>Making backups.&lt;/li>
&lt;/ul>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 The following examples uses Redis CLI against a Redis store using the default Dapr state store implementation.

&lt;/div>

&lt;h2 id="connect-to-redis">Connect to Redis&lt;/h2>
&lt;p>You can use the official &lt;a href="https://redis.io/topics/rediscli">redis-cli&lt;/a> or any other Redis compatible tools to connect to the Redis state store to query Dapr states directly. If you are running Redis in a container, the easiest way to use redis-cli is via a container:&lt;/p></description></item><item><title>SQL server</title><link>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/query-sqlserver-store/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/building-blocks/state-management/query-state-store/query-sqlserver-store/</guid><description>&lt;p>Dapr doesn&amp;rsquo;t transform state values while saving and retrieving states. Dapr requires all state store implementations to abide by a certain key format scheme (see &lt;a href="https://v1-18.docs.dapr.io/reference/api/state_api/">the state management spec&lt;/a>. You can directly interact with the underlying store to manipulate the state data, such as:&lt;/p>
&lt;ul>
&lt;li>Querying states.&lt;/li>
&lt;li>Creating aggregated views.&lt;/li>
&lt;li>Making backups.&lt;/li>
&lt;/ul>
&lt;h2 id="connect-to-sql-server">Connect to SQL Server&lt;/h2>
&lt;p>The easiest way to connect to your SQL Server instance is to use the:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://docs.microsoft.com/sql/azure-data-studio/download-azure-data-studio">Azure Data Studio&lt;/a> (Windows, macOS, Linux)&lt;/li>
&lt;li>&lt;a href="https://docs.microsoft.com/sql/ssms/download-sql-server-management-studio-ssms">SQL Server Management Studio&lt;/a> (Windows)&lt;/li>
&lt;/ul>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 When you configure an Azure SQL database for Dapr, you need to specify the exact table name to use. The following Azure SQL samples assume you&amp;rsquo;ve already connected to the right database with a table named &amp;ldquo;states&amp;rdquo;.

&lt;/div>

&lt;h2 id="list-keys-by-app-id">List keys by App ID&lt;/h2>
&lt;p>To get all state keys associated with application &amp;ldquo;myapp&amp;rdquo;, use the query:&lt;/p></description></item></channel></rss>