{"id":1392,"date":"2017-07-27T15:19:40","date_gmt":"2017-07-27T05:19:40","guid":{"rendered":"http:\/\/ntsblog.homedev.com.au\/?p=1392"},"modified":"2024-06-08T20:24:55","modified_gmt":"2024-06-08T10:24:55","slug":"grant-connect-sql-server-tsql","status":"publish","type":"post","link":"https:\/\/ntsblog.homedev.com.au\/index.php\/2017\/07\/27\/grant-connect-sql-server-tsql\/","title":{"rendered":"Grant Connect SQL Server &#8211; TSQL"},"content":{"rendered":"<div id=\"ntsbl-3675249418\" 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>\n<h2 class=\"wp-block-heading\">The issue<\/h2>\n\n\n\n<p>You are having connection problems to the database and all the permissions look correct but you cannot login.<br>Fire up the SSMS and expand the Security tree at the individual database and you notice that your login is there but with a little red down arrow.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Fix<\/h2>\n\n\n\n<p>You need to grant &#8220;Connect&#8221; to your user.<\/p>\n\n\n\n<p>Assume your user is a domain account DOMAIN\\username<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql line-numbers\">use MyDatabase\nGO\n\nGrant Connect to [DOMAIN\\username];<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The issue You are having connection problems to the database and all the permissions look correct but you cannot login.Fire up the SSMS and expand [&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,28,1],"tags":[],"class_list":["post-1392","post","type-post","status-publish","format-standard","hentry","category-sql-server","category-t-sql","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1392","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=1392"}],"version-history":[{"count":0,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1392\/revisions"}],"wp:attachment":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}