{"id":1135,"date":"2014-03-05T22:58:11","date_gmt":"2014-03-05T11:58:11","guid":{"rendered":"http:\/\/ntsblog.homedev.com.au\/?p=1135"},"modified":"2014-03-05T22:58:11","modified_gmt":"2014-03-05T11:58:11","slug":"sql-server-enable-user","status":"publish","type":"post","link":"https:\/\/ntsblog.homedev.com.au\/index.php\/2014\/03\/05\/sql-server-enable-user\/","title":{"rendered":"SQL Server Enable User"},"content":{"rendered":"<div id=\"ntsbl-3408358067\" class=\"ntsbl-before-content ntsbl-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6288941070289539\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px;\" \ndata-ad-client=\"ca-pub-6288941070289539\" \ndata-ad-slot=\"9356781486\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><h2>The problem<\/h2>\n<p>You have a SQL Login created for your account usr_test<br \/>\nEverything appears fine, but you cannot connect.<br \/>\nWhen you look in the users section of your database, the user appears with a disabled icon? (little red down arrow)<br \/>\n<a href=\"https:\/\/ntsblog.homedev.com.au\/wp-content\/uploads\/2014\/03\/usr_test_disabled.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1137\" data-permalink=\"https:\/\/ntsblog.homedev.com.au\/index.php\/2014\/03\/05\/sql-server-enable-user\/usr_test_disabled\/\" data-orig-file=\"https:\/\/ntsblog.homedev.com.au\/wp-content\/uploads\/2014\/03\/usr_test_disabled.png\" data-orig-size=\"74,22\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"usr_test_disabled\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/ntsblog.homedev.com.au\/wp-content\/uploads\/2014\/03\/usr_test_disabled.png\" data-large-file=\"https:\/\/ntsblog.homedev.com.au\/wp-content\/uploads\/2014\/03\/usr_test_disabled.png\" src=\"https:\/\/ntsblog.homedev.com.au\/wp-content\/uploads\/2014\/03\/usr_test_disabled.png\" alt=\"usr_test_disabled\" width=\"74\" height=\"22\" class=\"alignleft size-full wp-image-1137\" \/><\/a><br \/>\n<\/p>\n<h2>The issue<\/h2>\n<p>Your user does not have &#8220;CONNECT&#8221; permission and therefore shows as disabled.<\/p>\n<h2>The solution<\/h2>\n<p>In SQL management studio, do the following;<\/p>\n<ol>\n<li>Connect to your SQL Server<\/li>\n<li>Switch to the database having the issues<br \/>\n[sql]Use MyDatabase<br \/>\nGO<br \/>\n[\/sql]\n<\/li>\n<li>Execute the following statement<br \/>\n[sql]<br \/>\nGrant Connect to usr_test<br \/>\n[\/sql]\n<\/li>\n<p>Refresh the list of users and now the user looks normal and you can connect to the database<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The problem You have a SQL Login created for your account usr_test Everything appears fine, but you cannot connect. When you look in the users [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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":""},"categories":[13],"tags":[],"class_list":["post-1135","post","type-post","status-publish","format-standard","hentry","category-sql-server"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=1135"}],"version-history":[{"count":0,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1135\/revisions"}],"wp:attachment":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=1135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=1135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=1135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}