﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / Security (SS2K8)  / windows user is created and unable to connect to sqlserver / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 12:10:48 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>new users are at least a three step process:create the user in Active directory (you said that was done)create a login for the user in SQL Server(you said that was done)Create a user in the database to match the login(missing?)Assign the appropriate permissions/role so the user can access data(missing)[code]--creat the login for the Active Directory UserCREATE LOGIN [mydomain\NewUse] FROM WINDOWS;--switch to the right database: if more than one database, repeat for each oneUSE SandBox;GO--Create the user to match the loginCREATE USER [mydomain\NewUser] FROM LOGIN [mydomain\NewUser]--assign permissions--put the user in the correct permissions roleexec sp_addrolemember 'RoleAlreadyCreated', 'mydomain\NewUser'--an example in case you don't have the role with the right permissions yet:CREATE ROLE [AlmostOwners] EXEC sp_addrolemember N'db_ddladmin',   N'AlmostOwners'EXEC sp_addrolemember N'db_datareader', N'AlmostOwners'EXEC sp_addrolemember N'db_datawriter', N'AlmostOwners'--can the users EXECUTE procedures? comment out if falseGRANT EXECUTE TO [AlmostOwners]exec sp_addrolemember 'AlmostOwners', ' mydomain\NewUser'[/code]</description><pubDate>Wed, 14 Nov 2012 06:16:56 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>RE: windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>--deleted duplicate post.</description><pubDate>Wed, 14 Nov 2012 06:08:38 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>RE: windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>What kind of SQL login did you create?Windows Authentication? SQL Server Authentication?Did you enable it?</description><pubDate>Wed, 14 Nov 2012 05:38:27 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>windows id is created by windows team and by using sql administrator login  i created sql login but some times it says unable to connect in this case what should i do</description><pubDate>Wed, 14 Nov 2012 05:27:09 GMT</pubDate><dc:creator>naga.rohitkumar</dc:creator></item><item><title>RE: windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>You say the windows user is created but have you created a SQL Server login as well?</description><pubDate>Wed, 14 Nov 2012 03:59:47 GMT</pubDate><dc:creator>Abu Dina</dc:creator></item><item><title>RE: windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>How did you create the user?</description><pubDate>Wed, 14 Nov 2012 03:53:10 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>windows user is created and unable to connect to sqlserver</title><link>http://www.sqlservercentral.com/Forums/Topic1384484-1526-1.aspx</link><description>HI to all ,windows user is created and unable to connect to sqlserver management studio </description><pubDate>Wed, 14 Nov 2012 02:28:48 GMT</pubDate><dc:creator>naga.rohitkumar</dc:creator></item></channel></rss>