{"id":1248,"date":"2025-06-03T03:30:49","date_gmt":"2025-06-03T03:30:49","guid":{"rendered":"https:\/\/cbi-focus.com\/?post_type=docs&#038;p=1248"},"modified":"2025-06-10T01:09:29","modified_gmt":"2025-06-10T01:09:29","password":"","slug":"setting-up-read-access-to-the-sql-server-database","status":"publish","type":"docs","link":"https:\/\/cbi-focus.com\/en\/documentation\/for-editors\/setting-up-read-access-to-the-sql-server-database\/","title":{"rendered":"Setting Up Read Access to the SQL Server Database"},"content":{"rendered":"\n<p>When setting up the data source in Power BI, it is recommended to connect to the underlying SQL Server database using the DirectQuery mode (see <a href=\"https:\/\/cbi-focus.com\/docs\/system-requirements\/#0-toc-title\">here<\/a>). This ensures that after the write-back process, all visuals included in the report are automatically updated.<\/p>\n\n\n\n<p>After selecting the SQL Server data source in Power BI Desktop, authentication is performed using the previously configured READ user. This user has read access to the relevant tables in the database and is used solely for data import into Power BI.<\/p>\n\n\n\n<p><strong>Logging in with the READ User:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list olOverwrite\">\n<li class=\"olOverwrite\">In Power BI Desktop, select the option &#8220;Import data from SQL Server\u201d.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<ol start=\"2\" class=\"wp-block-list olOverwrite\">\n<li class=\"olOverwrite\">Enter the connection details for the server and ensure that &#8220;DirectQuery&#8221; is selected as the connection mode.<\/li>\n<\/ol>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-2-1-1024x609.png\" alt=\"\" class=\"wp-image-1529\" srcset=\"https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-2-1-980x583.png 980w, https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-2-1-480x286.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1024px, 100vw\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<ol start=\"3\" class=\"wp-block-list olOverwrite\">\n<li class=\"olOverwrite\">Use the designated login method for access (e.g., &#8220;Database&#8221; with the login credentials of a database user) and establish the connection.<\/li>\n<\/ol>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1299\" height=\"639\" src=\"https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-3-3.png\" alt=\"\" class=\"wp-image-1531\" srcset=\"https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-3-3.png 1299w, https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-3-3-1280x630.png 1280w, https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-3-3-980x482.png 980w, https:\/\/cbi-focus.com\/wp-content\/uploads\/2025\/06\/Loggin-in-with-the-READ-User-Step-3-3-480x236.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1299px, 100vw\" \/><\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When setting up the data source in Power BI, it is recommended to connect to the underlying SQL Server database using the DirectQuery mode (see here). This ensures that after the write-back process, all visuals included in the report are automatically updated. After selecting the SQL Server data source in Power BI Desktop, authentication is [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"doc_category":[32],"doc_tag":[],"class_list":["post-1248","docs","type-docs","status-publish","hentry","doc_category-for-editors"],"year_month":"2026-04","word_count":141,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Yuki Shiono","author_nicename":"yuki","author_url":"https:\/\/cbi-focus.com\/en\/author\/yuki\/"},"doc_category_info":[{"term_name":"For Editors","term_url":"https:\/\/cbi-focus.com\/en\/documentation\/for-editors\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/docs\/1248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/comments?post=1248"}],"version-history":[{"count":4,"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/docs\/1248\/revisions"}],"predecessor-version":[{"id":1533,"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/docs\/1248\/revisions\/1533"}],"wp:attachment":[{"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/media?parent=1248"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/doc_category?post=1248"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/cbi-focus.com\/en\/wp-json\/wp\/v2\/doc_tag?post=1248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}