{"id":7150,"date":"2023-04-06T23:54:34","date_gmt":"2023-04-06T18:24:34","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7150"},"modified":"2023-04-06T23:59:21","modified_gmt":"2023-04-06T18:29:21","slug":"how-to-reset-the-sa-user-password-of-a-microsoft-sql-server-instance-on-a-windows-server-with-plesk","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-reset-the-sa-user-password-of-a-microsoft-sql-server-instance-on-a-windows-server-with-plesk\/","title":{"rendered":"How to reset the &#8216;sa&#8217; user password of a Microsoft SQL Server instance on a Windows server with Plesk"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MSSQL is an open-source, relational database management system (RDBMS) based on structured query language (SQL). MSSQL is available on all major operating systems, including Windows, Linux, and Solaris. It is free to use for individuals and non-production environments under the GNU General Public License; however, if used commercially, a commercial license is required.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisite<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Windows server credentials<br>2. Plesk panel credentials<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: Connect the Windows server via the RDP client with the credentials<br><br><img fetchpriority=\"high\" decoding=\"async\" width=\"624\" height=\"332\" src=\"https:\/\/lh6.googleusercontent.com\/2kYB94xun-_mqLPDcl3smcsoHeyCIPXUfX-EVzN57gHoy5jhLgAzRbCHQJcyMzxIlZQ2uAwgZzdEpxhl6WlicVmr9uqH8BPASpvXaG3kx3Xt6EcsCgEruT2eu9GyzZvQTLOjnVqyX8fQXwsePG95U84\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Once the windows server has been connected, search the &#8220;SQL&#8221; to find the Microsoft SQL Management Studio<br><img decoding=\"async\" width=\"624\" height=\"551\" src=\"https:\/\/lh4.googleusercontent.com\/VsvSWdeRw0ahKKR-jAJWTmfmMvIOVdvaJyNNjLuTc9yyNYu0UHcOTMhc7WWKoLC3fgVqROuzzY7ZvzTDTD6brSMTGThOOoRkxv2i2PlZiDJ9st3r7BZ-MhcDtxS-QqNmLezrZHgYp0_ZoGVyH2ZnLUQ\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: Click on the SQL Server Management Studio Management Studio<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/S9R7UiqoNH3DCr4IK51Y3oEnsPVGl6LAvkVDCjKaM1mQ_MTNVEhzEQ5Hg3A3ZKp4EdQNOTJiN5Kip4kJMYoClJXPfP4YYbn-Hy1c34CEwEOIFvoAtmtWM5fF3T6kt-ROi6qtjRyZrEgBXNZb9fN5lrM\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Provide the Server name, select authentication as &#8220;Windows Authentication&#8221; and click on Connect to connect the Database.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/zli7GXn7_8RHL-QlU9fNZm-dVAYRd4gqSqClbIZy0_iG276D-Yp43fF5WKrrIX7Dpopp3kwrV7JtGbnJPWxD-jtfiQp3CwY7QwP-dREjxCrwR5rjcBNGak_9yTDp6tZVfKDbiQueHkAm74NeaqmJ4r8\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: In the Object Explorer, expand Security &gt; Logins &gt; right-click on sa to open its Properties<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><img decoding=\"async\" width=\"506\" height=\"742\" src=\"https:\/\/lh5.googleusercontent.com\/JQ6QlyNHWpND8AzQl1P-ErS5YVEwNQAF6KQpPlzXKVYcJ3ijt9tDP6RN5_IoESgrCW1S9Xz2H4A9lDLwcajJtw1W1j0UlN2oCx4By60JhTOFSYlRPKX2Q4Fjlr1RvWdSxGslSykHa4rnyr84w4c596Y\"><br><br><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"564\" src=\"https:\/\/lh5.googleusercontent.com\/fzJSS_UgLkJ_AFCqWiJlJMn5JK0mnSV86af2HtjO4nEJZShG0wczNGnWlhrB-BVv6DaZeAL40tdfYYJg94wdgsHRV6dkXoiufczAShJt7eD8VJGCNi8hiWSBROnqC1nhkEnvAbYa_TI4AQreB2p2xro\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 6: In the Properties window (General tab), set a new password for &#8220;sa&#8221;user and click OK to apply the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"727\" src=\"https:\/\/lh5.googleusercontent.com\/MXltBU_zLBOffW0ZtbYvpORY_Sx_HX6d5mi_aH37jrhqRfxKS_dbg6Q-Rl2UCspbJlCyodglipjI4mdtIPGSjoviu_ZkyFT9TohiDsmTvoTfdyAN8DZW2gB-U_m7uRZoWjCPIgqJKDzm3XBnB1VOrMg\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Note: The check box &#8220;Login is locked out&#8221; in the status should be enabled. If it is disabled, follow the below steps<br><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"408\" src=\"https:\/\/lh4.googleusercontent.com\/eRoGSChQDHVhsBNuBSde7U6uYL9PKXtb4XGTdwEWkkttX9VmerReWXJuZfbmo6-mvS0DI7ESlAwX7H2zmIbYGglP-EtoE7wR_xm3eYDAWnU_c1EjYI_qtPTkH48D1JnYO8UfUlhz6XcxnzoAQqUcl-s\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>(i) Click on New Query<br><br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/P_uGZWssI_FQbSir_blZoX-q4NkxcL9iRfT5fzz3R-CAsrU8tKK6Nz0IQIULFKZC-gvxbehVBercWkgKSht78S3_bdC33unoLmxqksLdTK2ZY-fPDNo1b97EDDRBuaXW79maF33lPburL4oMFaLyv78\" width=\"624\" height=\"135\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(ii) Execute the below query to enable the option &#8220;Login is locked out&#8221;.<br><br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>ALTER LOGIN sa WITH PASSWORD = &#8216;new_password&#8217; UNLOCK<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the new password with the password which is provided in Step 6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/wsS8xGZ0GwZc8QRIONZW1ijfX5yeIsNKBWzDFjJc4pYrQqz9i7BsuYweOb8Ax6VxAwothoYNnelUoixcvn09XMw_d9OsduynaqwPgIO3ZWFPUtvrenlKjeaaCg0Y69wrkdWkP_VF4ue4jIUN7KyyhU0\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 7: Restart the MSSQL server from the SQL Server 2017 Configuration Manager<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/CFNVY_s7ZZr7ZwYemB95zO-7jdx-5UWa1sUt0faVYfAdczBHaQ2xlLu5E26lHxDYfhPFYZsW8BuBZt_0glhQakCrlcHknKF_5c0HMPufzws-qFC8nTpOCGQbGz36aRN_8PeeLDvCFTdo8xQWRVOxdkI\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 8: Select the service &#8220;SQL server (MSSQL)&#8221; and click on restart<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/PRizc5UcG7ZEj9wgVv4Vx2rZ82IpqgywNPH6FtYTxVzkaaKqpDVgqDN2xlk8lT6YiT-kEgcCg85zGEOJcXd6uIR9IhatD4YscLZGKNklj4Dzd9iLPEg9fqG7MhbQ81_ddRTReWnswvtRtTwF2tQ6Rng\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 9: Restart the Windows server<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/Z5ImrbMPzPjyPdGJMV5kmFG7iJRmrh-F0aEhqI369bfq-dE-_fyP01VrcI5XCDTPqgWwLYALbO9fW4B4xjjV4gC5BEXvLUMAfedvQnpj3Pz81_hxZpXwDBPyYJLcJ3F30rR3fE9U6mjdNAvCwWktuPs\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 10: Once we get the Windows server connection back after restarting, log in to the Plesk panel with credentials. Navigate Tools &amp; Settings&gt; Database servers &gt; Microsoft SQL server&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/aLJXufnIk_B3HFzJxGlvxpXdIS3RyVLU_M3ZbTnoVo98q2dzSx-hgb2x_iez7BUGW6S85lLeQ51Xafipik1HvZnBEzWnMpGD9paN_kvHePChqrnc8QjDLd_o5UlguBrwsKiKtBDyh3vpBWAgD9AeW7o\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 11: Provide the updated password and click on Ok.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/roBZD1lA9wX-wBAkm4-R58uW5P3hlRS5XAvOGvXHYafrOKIZ8dNs7eA_Vv1aX5N-utZL_lhtz_beF1RttMfsCU-cfQMO4BDZnrRg2Pzadbd29L4FEMfol_90yVcbI5rFBU_tdQX9jwFCoj6irmkQaYg\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Step 12: Refresh the database server<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/stBRQ4UrM1Ol9gYHhB9AtTPeiKNMM40BPrczgeFbyHWSmzAbKsc7S5TopJ2IYIFv2td0PprB1-U4EVTo118_47OIznGzWQWkgvzVgHT8NHvkC-8E2Kf_4CHaRBRNq3pj1kKJEJU72k1DMlZW4Ctuf64\" alt=\"\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Introduction MSSQL is an open-source, relational database management system (RDBMS) based on structured query language (SQL). MSSQL is available on [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[973,35],"class_list":["post-7150","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-sql","tag-windows","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1Rk","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7150"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7150\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}