{"id":784,"date":"2019-05-06T11:39:54","date_gmt":"2019-05-05T23:39:54","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=784"},"modified":"2019-12-02T21:41:21","modified_gmt":"2019-12-02T08:41:21","slug":"resetting-sa-password-for-sql-server-express","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=784","title":{"rendered":"Resetting sa password in SQL Server Express"},"content":{"rendered":"<ol>\n<li>Open the <strong>Services application<\/strong> and look for <strong>SQL Server (SQLEXPRESS)<\/strong>.\n<div><a href=\"https:\/\/nasnz.ronella.xyz\/wordpress\/wp-content\/uploads\/2019\/05\/sql-express-service.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-785\" src=\"https:\/\/nasnz.ronella.xyz\/wordpress\/wp-content\/uploads\/2019\/05\/sql-express-service-300x90.png\" alt=\"\" width=\"300\" height=\"90\" srcset=\"https:\/\/nasnz.ronella.xyz\/wordpress\/wp-content\/uploads\/2019\/05\/sql-express-service-300x90.png 300w, https:\/\/nasnz.ronella.xyz\/wordpress\/wp-content\/uploads\/2019\/05\/sql-express-service-768x231.png 768w, https:\/\/nasnz.ronella.xyz\/wordpress\/wp-content\/uploads\/2019\/05\/sql-express-service.png 912w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<\/li>\n<li><strong>Stop<\/strong> the <strong>SQL Server (SQLExpress)<\/strong> service.<\/li>\n<li><strong>Right-click<\/strong> the <strong>SQL Server (SQLExpress)<\/strong> service and select <strong>Properties<\/strong>.<\/li>\n<li>At the <strong>Start parameters<\/strong> field <strong>type<\/strong> in <strong>-m<\/strong>.<\/li>\n<li><strong>Click<\/strong> the <strong>Start <\/strong>button.<\/li>\n<li><strong>Close<\/strong> the <strong>Services application<\/strong>.<\/li>\n<li><strong>Open<\/strong> a <strong>Command Prompt<\/strong> in <strong>elevated mode<\/strong>.<\/li>\n<li><strong>Execute<\/strong> the following command:\n<div>\n<pre>osql -S &lt;LOCAL_PC_NAME&gt;\\SQLEXPRESS -E<\/pre>\n<p><em>Note: The &lt;LOCAL_PC_NAME&gt; must be changed appropriately.<\/em><\/p>\n<\/div>\n<\/li>\n<li>At the prompt generated by the previous command invoke the following commands in sequence:\n<div>\n<pre>sp_password NULL,'&lt;NEW_PASSWORD&gt;','sa'<\/pre>\n<p><em>Note: Change &lt;NEW_PASSWORD&gt; to your desired password.<\/em><\/p>\n<pre>go<\/pre>\n<pre>quit<\/pre>\n<\/div>\n<\/li>\n<li><strong>Close<\/strong> the\u00a0 elevated <strong>Command Prompt<\/strong>.<\/li>\n<li><strong>Repeat<\/strong> steps <strong>1<\/strong> to <strong>6<\/strong>, but on step <strong>4<\/strong> <strong>remove -m\u00a0 <\/strong>from the <strong>Start parameters field<\/strong>, if it exists.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Open the Services application and look for SQL Server (SQLEXPRESS). Stop the SQL Server (SQLExpress) service. Right-click the SQL Server (SQLExpress) service and select Properties. At the Start parameters field type in -m. Click the Start button. Close the Services application. Open a Command Prompt in elevated mode. Execute the following command: osql -S &lt;LOCAL_PC_NAME&gt;\\SQLEXPRESS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[58,46],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/784"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=784"}],"version-history":[{"count":2,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":787,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions\/787"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}