Solved

sql server 2008 permissions for user connecting from another machine on same network not as sysadmin

Posted on 2014-11-06
11
175 Views
Last Modified: 2014-11-16
I have 2 machines and 2 users for MS SQL server 2008 R2
Both machines belong to the same domain network.

machine A is a windows 7 pro pc trying to setup an odbc connection to machine B ( sql server)running
machine B windows 2008 r2 server running sql server

I am setting up an odbc on machine a to access machine b
       If i setup the connection as "sa" the connection works fine.
       If i setup the connection as "myuser" i cant connect to the server getting error

As a suggestion i tried adding "sysadmin" role to "myuser" and i am able to connect ok, but i dont think this is the right way to do it. Looking to see what actually needs to be setup for myuser to be able to connect not as a sysadmin.
0
Comment
Question by:Extreme66
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
11 Comments
 
LVL 2

Expert Comment

by:Beth Kludt
ID: 40427456
Did you grant "myuser" access to the target database in addition to creating its login?
0
 

Author Comment

by:Extreme66
ID: 40427570
Yes, thanks
0
 
LVL 50

Expert Comment

by:Vitor Montalvão
ID: 40428525
What's the message error?
0
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 

Author Comment

by:Extreme66
ID: 40428565
I should have put that in already, thanks
Connection failed:
SQLState: '28000'
SQL Server Error: 18456
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'myuser'.

I am able to login to enterprise manager with the myuser id however and see my databases.
0
 
LVL 50

Expert Comment

by:Vitor Montalvão
ID: 40428575
Enterprise Manager?
Shouldn't be Management Studio?
Enterprise Manager is from SQL Server 2000 and can't connect to superior versions of SQL Server.
0
 

Author Comment

by:Extreme66
ID: 40428814
Sorry had old terminology in my head, yes its Microsoft SQL Management Studio
0
 
LVL 50

Expert Comment

by:Vitor Montalvão
ID: 40432563
The error appears when you create the DSN in ODBC?
And which permissions has that user in the SQL Server instance?
0
 

Author Comment

by:Extreme66
ID: 40432677
Do you mean sql server permissions or windows permissions?
server roles -> public
user mapping -> db_datareader and public
status grant and enabled
no securables
0
 
LVL 50

Expert Comment

by:Vitor Montalvão
ID: 40432907
Apparently you have it well configured.
Can't figure out from here. Sorry.
0
 

Accepted Solution

by:
Extreme66 earned 0 total points
ID: 40435392
thanks for the help but i actually figured it out, after server hardening appearantly i needed to add this final grant.

GRANT CONNECT ON ENDPOINT::"TSQL Default TCP" TO "myuser"
0
 

Author Closing Comment

by:Extreme66
ID: 40445430
Hopefully this solution finds others, as it would have saved me TONS of time due to an non descriptive error
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question