{"id":1765,"date":"2014-09-10T09:03:04","date_gmt":"2014-09-10T09:03:04","guid":{"rendered":"http:\/\/www.isunshare.com\/blog\/?p=1765"},"modified":"2023-04-17T03:22:09","modified_gmt":"2023-04-17T03:22:09","slug":"how-to-access-to-sql-after-lost-sql-server-database-sa-password","status":"publish","type":"post","link":"https:\/\/www.isunshare.com\/blog\/how-to-access-to-sql-after-lost-sql-server-database-sa-password\/","title":{"rendered":"How to Access to SQL after Lost SQL Server Database SA Password"},"content":{"rendered":"<p>Maybe you have faced such an issue of <a href=\"https:\/\/www.isunshare.com\/blog\/how-to-access-to-sql-after-lost-sql-server-database-sa-password\/\"><strong>losing SQL Server SA password<\/strong><\/a>.\u00a0 SQL Server SA password was ever set for protecting database, however, now it has become a problem for us to login SQL Server and access data in SQL Server. <em>How to access SQL Server no logon password?<\/em><\/p>\n<p>If you are a computer novice, the easiest way is undoubtedly easy-to-use and safe password recovery tool. <strong>SQL Password Genius<\/strong> is one of such effective recovery tools for SQL Server 2000\/2005\/2008\/2012\/2014. Now please see how does it help to <strong>access SQL Server when you don\u2019t have SA password<\/strong>?<\/p>\n<h2>First Way: Access SQL Server by Recovery Tool without SA Password<\/h2>\n<p><strong>Step 1:<\/strong> Download and install <a href=\"https:\/\/www.isunshare.com\/sql-password-recovery.html\">SQL Password Genius<\/a> on computer where you run SQL Server.<\/p>\n<p><strong>Step 2:<\/strong> Run SQL Password Genius and import SQL master database.<\/p>\n<p><strong>Tips:<\/strong> Please stop SQL Server Service in SQL configuration tool before running SQL password recovery tool. Otherwise, <strong>reset lost SQL sa password<\/strong> would be not so easy, perhaps failed at last.<\/p>\n<p><a href=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/reset-lost-sql-sa-password.png\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"524\" class=\"alignnone size-full wp-image-1770\" src=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/reset-lost-sql-sa-password.png\" alt=\"reset lost sql sa password\" srcset=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/reset-lost-sql-sa-password.png 601w, https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/reset-lost-sql-sa-password-300x261.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p>Click <strong>Open File<\/strong> button on program to browse master file in computer and open it. Master file route would be shown in a file box, and all the users available for this database are listed, see the picture below.<\/p>\n<p><strong>Step 3:<\/strong> Select SQL Server SA account and reset password.<\/p>\n<p>Generally, SQL Server SA account is in the first place of user box. User Name and Password status would let us know whether the user&#8217;s password should be reset. If its password status is &#8220;Unknown&#8221; , select &#8220;sa&#8221; account and click <strong>Reset<\/strong> button.<\/p>\n<p>Instantly, a dialog pops up and asks us to set a new password for it. Type a new password and click OK. Then the new password for sa account would appear in user box.<\/p>\n<p><a href=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-with-new-sa-password.png\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"524\" class=\"alignnone size-full wp-image-1771\" src=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-with-new-sa-password.png\" alt=\"access sql with new sa password\" srcset=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-with-new-sa-password.png 601w, https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-with-new-sa-password-300x261.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p>Now, exit SQL Password Genius, restart SQL Server Services in configuration tool, you will be able to start SQL Server and access it with sa account and its new password.<\/p>\n<h2>Second Way: Access SQL Server in Single User Mode<\/h2>\n<p>If you have a member there is a member of the Windows admin group, this way also would help you to <strong>access SQL Server with Windows credentials<\/strong>. It can be used for SQL Server 2005\/2008(R2).<\/p>\n<p>To start SQL Server in single user mode is very simple like the steps below (take SQL Server 2008 as example:<\/p>\n<p><strong>Step 1:<\/strong> Go to\u00a0<strong>SQL Server Configuration Manager<\/strong>\u00a0and click on\u00a0<strong>SQL Server 2008 Services<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-server-in-single-user-mode.png\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"414\" class=\"alignnone size-full wp-image-1776\" src=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-server-in-single-user-mode.png\" alt=\"access sql server in single user mode\" srcset=\"https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-server-in-single-user-mode.png 601w, https:\/\/www.isunshare.com\/blog\/wp-content\/uploads\/2014\/09\/access-sql-server-in-single-user-mode-300x206.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p><strong>Step 2:<\/strong> Click on\u00a0<strong>desired SQL Server instance<\/strong>\u00a0and right click go to\u00a0<strong>properties<\/strong>.<\/p>\n<p><strong>Step 3:<\/strong> On the <strong>Advanced<\/strong> table enter param &#8216;<strong>-m;<\/strong>&#8216; before existing params in\u00a0<strong>Startup Parameters<\/strong>\u00a0box.<\/p>\n<p>Make sure that you entered semi-comma after <strong>-m<\/strong>. Once that is completed, restart SQL Server services to take this in effect. You would see a message &#8220;SQL Server started in single-user mode.&#8221;<\/p>\n<p>Once this is done, now you will be only able to connect SQL Server using sqlcmd utility with Windows authentication.<\/p>\n<p><strong>Tips:<\/strong> In the whole process, probably you have found there is so much downtime. If you want to make it faster, download <a href=\"http:\/\/technet.microsoft.com\/en-us\/sysinternals\/bb897553.aspx\">PSExec<\/a>.<\/p>\n<p><a href=\"https:\/\/www.isunshare.com\/sql-server\/how-to-set-sql-server-access-with-single-user-mode.html\">How to set SQL Server access with single user mode<\/a><\/p>\n<p>However, this way is disaster recovery, so only had better be used when no other recovery method is available. It allows Windows administrator override within SQL Server. And it requires following intrusive actions during the process:<\/p>\n<ol>\n<li>Stop SQL Server and restart it in single-user mode<\/li>\n<li>Connect to SQL Server using Windows credentials<\/li>\n<\/ol>\n<p><strong>Related Articles:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.isunshare.com\/sql-password\/four-effective-ways-to-change-sql-server-sa-password.html\">Four Effective Ways to Change SQL Server SA Password<\/a><\/li>\n<li><a href=\"https:\/\/www.isunshare.com\/sql-password\/how-to-decrypt-database-file-in-sql-server-express.html\">How to Decrypt Database File in SQL Server Express<\/a><\/li>\n<li><a href=\"https:\/\/www.isunshare.com\/access-password\/how-to-access-locked-access-2013-database.html\">How to Access Locked Access 2013 Database <\/a><\/li>\n<li><a href=\"https:\/\/www.isunshare.com\/blog\/how-to-open-access-database-without-access-privileges\/\">How to Open Access Database without Access Privileges<\/a><\/li>\n<li><a href=\"https:\/\/www.isunshare.com\/blog\/how-to-retrieve-important-data-after-deleted-or-lost-accidently\/\">How to Retrieve Important Data after Deleted or Lost Accidently<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Maybe you have faced such an issue of losing SQL Server SA password.\u00a0 SQL Server SA password was&#8230;<\/p>\n","protected":false},"author":1,"featured_media":126329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-1765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql-server"],"_links":{"self":[{"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/posts\/1765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/comments?post=1765"}],"version-history":[{"count":5,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/posts\/1765\/revisions"}],"predecessor-version":[{"id":6996,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/posts\/1765\/revisions\/6996"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/media\/126329"}],"wp:attachment":[{"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/media?parent=1765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/categories?post=1765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.isunshare.com\/blog\/wp-json\/wp\/v2\/tags?post=1765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}