{"id":16377,"date":"2024-01-26T18:50:54","date_gmt":"2024-01-26T18:50:54","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=16377"},"modified":"2024-01-26T18:50:54","modified_gmt":"2024-01-26T18:50:54","slug":"transfer-data-from-sql-server-to-redis-in-a-few-clicks","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/redisdatastudio\/transfer-data-from-sql-server-to-redis-in-a-few-clicks.html","title":{"rendered":"Transfer data from SQL Server to Redis in a few clicks"},"content":{"rendered":"<p>Want to transfer data from  <a href=\"https:\/\/www.microsoft.com\/en-us\/cloud-platform\/sql-server\">SQL Server<\/a>  to <a href=\"https:\/\/redis.com\">Redis<\/a> without programming?<\/p>\n<p>Using <a href=\"https:\/\/www.withdata.com\/redis-data-studio\/soon.html\">RedisDataStudio<\/a>, a native GUI tool, you can transfer data from SQL Server  to Redis easily and fast, just a few mouse clicks!<\/p>\n<p>Support Windows, Linux, macOS.<\/p>\n<h2>Transfer data from SQL Server  To Redis<\/h2>\n<p> Log in to SQL Server database.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/logon\/choose_sql-server_logon.png\" alt=\"Transfer data from SQL Server  To Redis - Choose SQL Server and logon\" width=\"430\" height=\"442\" style=\"max-width:100%;height:auto;display:block;\" \/><\/p>\n<p> Log in to Redis.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/logon\/redis_logon.png\" alt=\"Move data from SQL Server  To Redis - log in to Redis\" width=\"405\" height=\"250\" style=\"max-width:100%;height:auto;display:block;\" \/><\/p>\n<p>You can transfer data from SQL Server  table or sql query results to Redis, in 3 formats.<\/p>\n<p>For example, you have a SQL Server  table &#8220;users&#8221;, 2 records in it.<\/p>\n<table>\n<tr>\n<td>id<\/td>\n<td>name<\/td>\n<td>age<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Fred<\/td>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Tom<\/td>\n<td>28<\/td>\n<\/tr>\n<\/table>\n<p><strong>1<\/strong>. Store a record as JSON-encoded string in a single key.<\/p>\n<table>\n<tr>\n<td>Key<\/td>\n<td>Value<\/td>\n<\/tr>\n<tr>\n<td>user:1<\/td>\n<td>{&#8220;name&#8221;:&#8221;Fred&#8221;,&#8221;age&#8221;:25}<\/td>\n<\/tr>\n<tr>\n<td>user:2<\/td>\n<td>{&#8220;name&#8221;:&#8221;Tom&#8221;,&#8221;age&#8221;:28}<\/td>\n<\/tr>\n<\/table>\n<p><strong>2<\/strong>. Store a record as a Redis hash key, and each field of the record as a Redis hash key&#8217;s field.<\/p>\n<table>\n<tr>\n<td>Key<\/td>\n<td>Field<\/td>\n<td>Value<\/td>\n<\/tr>\n<tr>\n<td>user:1<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>name<\/td>\n<td>Fred<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>age<\/td>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>user:2<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>name<\/td>\n<td>Tom<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>age<\/td>\n<td>28<\/td>\n<\/tr>\n<\/table>\n<p><strong>3<\/strong>. Store each record as a JSON string in a Redis hash.<\/p>\n<table>\n<tr>\n<td>Key<\/td>\n<td>Field<\/td>\n<td>Value<\/td>\n<\/tr>\n<tr>\n<td>users<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>1<\/td>\n<td>{&#8220;name&#8221;:&#8221;Fred&#8221;,&#8221;age&#8221;:25}<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>2<\/td>\n<td>{&#8220;name&#8221;:&#8221;Tom&#8221;,&#8221;age&#8221;:28}<\/td>\n<\/tr>\n<\/table>\n<p>Transfer data from SQL Server  to Redis.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.withdata.com\/images\/temp\/db_to_redis.png\" ALT=\"Convert data from SQL Server  To Redis - transfer\" width=\"724\" height=\"573\" style=\"max-width:100%;height:auto;display:block;\" loading=\"lazy\" decoding=\"async\"><\/p>\n<p>Here you can <a href=\"https:\/\/www.withdata.com\/redis-data-studio\/soon.html\">Download RedisDataStudio<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to transfer data from SQL Server to Redis without programming? Using RedisDataStudio, a native GUI tool, you can transfer data from SQL Server to Redis easily and fast, just a few mouse clicks! Support Windows, Linux, macOS. Transfer data from SQL Server To Redis Log in to SQL Server database. Log in to Redis. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3136],"tags":[3134],"class_list":["post-16377","post","type-post","status-publish","format-standard","hentry","category-redisdatastudio","tag-redis"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/16377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=16377"}],"version-history":[{"count":1,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/16377\/revisions"}],"predecessor-version":[{"id":16378,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/16377\/revisions\/16378"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=16377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=16377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=16377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}