{"id":1924,"date":"2015-02-24T23:02:57","date_gmt":"2015-02-24T23:02:57","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1924"},"modified":"2015-02-24T23:02:57","modified_gmt":"2015-02-24T23:02:57","slug":"change-sql-server-mssql-password","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/24\/change-sql-server-mssql-password\/","title":{"rendered":"Change SQL Server (MSSQL) Password"},"content":{"rendered":"<p>If you&#8217;ve forgotten the sa password for your SQL server, you are probably in a panic. Fear not, for you can change the password and once again have access to the powers of the SA account using Windows Authentication mode.<\/p>\n<p>Login into SQL Server using Windows Authentication.<\/p>\n<p>In Object Explorer, open Security folder, open Logins folder. Right click on SA account and go to Properties.<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/sql-server-management.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/sql-server-management.gif\" alt=\"sql-server-management\" width=\"400\" height=\"400\" class=\"alignnone size-full wp-image-1925\" \/><\/a><\/p>\n<p>Change SA password, and confirm it. Click OK.<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/change-sql-server-password.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/change-sql-server-password.gif\" alt=\"change-sql-server-password\" width=\"500\" height=\"447\" class=\"alignnone size-full wp-image-1926\" \/><\/a><\/p>\n<p><strong>Change SQL Server Password Using SQL Script<\/strong><\/p>\n<p>    Open the SQL Server Management Studio.<br \/>\n    Open a New Query.<\/p>\n<p>    Copy, paste, and execute the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    GO\n    ALTER LOGIN &#x5B;sa] WITH DEFAULT_DATABASE=&#x5B;master]\n    GO\n    USE &#x5B;master]\n    GO\n    ALTER LOGIN &#x5B;sa] WITH PASSWORD=N&#039;NewPassword&#039; MUST_CHANGE\n    GO\n\n<\/pre>\n<p>where NewPassword is the password you wish to use for the sa account.<\/p>\n<p>Option 3: Change SQL Server Password with Third Party Software<\/p>\n<p>    Download SQL Server Password Changer on your local PC, install and launch it.<\/p>\n<p>    Click the Open File button. Select the SQL Server master database file (master.mdf). Typically it is located in the folder: C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Data.<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/open_sqlserver.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/open_sqlserver.png\" alt=\"open_sqlserver\" width=\"500\" height=\"351\" class=\"alignnone size-full wp-image-1927\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/02\/open_sqlserver.png 500w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/02\/open_sqlserver-300x211.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>The program will automatically decrypt the master database file and display all user accounts in your SQL Server. Select the SA account, click the Change Password button. Type a new password and click OK.<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/sqlserver_pwd.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/02\/sqlserver_pwd.png\" alt=\"sqlserver_pwd\" width=\"500\" height=\"344\" class=\"alignnone size-full wp-image-1928\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/02\/sqlserver_pwd.png 500w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/02\/sqlserver_pwd-300x206.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>The program will replace the existing password with your new password, and also unlock your SA account if it&#8217;s already locked out or disabled.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve forgotten the sa password for your SQL server, you are probably in a panic. Fear not, for you can change the password and once again have access to the powers of the SA account using Windows Authentication mode. Login into SQL Server using Windows Authentication. In Object Explorer, open Security folder, open Logins &#8230; <a title=\"Change SQL Server (MSSQL) Password\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/24\/change-sql-server-mssql-password\/\" aria-label=\"Read more about Change SQL Server (MSSQL) Password\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[109,127],"tags":[],"class_list":["post-1924","post","type-post","status-publish","format-standard","hentry","category-sql-server","category-winserv"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1924"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1924\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}