{"id":5616,"date":"2016-03-31T13:19:55","date_gmt":"2016-03-31T05:19:55","guid":{"rendered":"http:\/\/rmohan.com\/?p=5616"},"modified":"2016-03-31T13:19:55","modified_gmt":"2016-03-31T05:19:55","slug":"reset-sa-password-in-sql-server-2012","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5616","title":{"rendered":"Reset SA Password in Sql Server 2012"},"content":{"rendered":"<div id=\"post-body-5066459908732424134\" class=\"post-body entry-content\">\n<div dir=\"ltr\">\nStep 1:-<br \/>\nChange SQL SA password from a command prompt<\/p>\n<p>Go to the command prompt of the server and type in command prompt osql \u2013L<br \/>\nC:\\Users\\Administrator&gt;osql -L<\/p>\n<p>Servers:<br \/>\nlocalhost<\/p>\n<p>Step 2:-<br \/>\nCopy full name of SQL Server and type: OSQL -S &lt;insert_servername_here&gt; -E<br \/>\nC:\\Users\\Administrator&gt;osql -S localhost -E<\/p>\n<p>Step 3:-<br \/>\nExecute the following query: sp_password NULL, &#8216;&lt;insert_new_password_here&gt;&#8217;, &#8216;sa&#8217;<br \/>\n1&gt; sp_password NULL, &#8216;,pjam#&#8217;,&#8217;sa&#8217;<br \/>\n2&gt; GO<\/p>\n<p>Done, the sa password has been reset.<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> Step 1:- Change SQL SA password from a command prompt<\/p>\n<p>Go to the command prompt of the server and type in command prompt osql \u2013L C:\\Users\\Administrator&gt;osql -L<\/p>\n<p>Servers: localhost<\/p>\n<p>Step 2:- Copy full name of SQL Server and type: OSQL -S &lt;insert_servername_here&gt; -E C:\\Users\\Administrator&gt;osql -S localhost -E<\/p>\n<p>Step 3:- Execute the following query: sp_password [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5616"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5616"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5616\/revisions"}],"predecessor-version":[{"id":5617,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5616\/revisions\/5617"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}