Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Windows Authentication Security issue?

Author  Topic 

REDTAIL_CODEGUY
Starting Member

17 Posts

Posted - 2011-11-29 : 13:27:43
I'm on the following:
SQL SERVER 2008 R2 EXPRESS
SQL SERVER 2008 MANAGEMENT STUDIO
SBS 2003 (SMALL BUSINESS SERVER)

The database was set up with "Windows Authentication" only.

I've got a software program that can't access the database, due to login issues. I can run the program only when I log on as the network Admin. or if I use the "runas" method and type in the Admin. password.

So, I added the non-admin user that needs to be able to run this program, to sql server via right-clicking the security folder in Management Studio/new/user. But, that still doesn't let the program access the db when logged on as that user.

What do I need to do to allow this program to run under this user, using Windows Authentication for sql server?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-11-29 : 22:23:28
Please show us the error.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

REDTAIL_CODEGUY
Starting Member

17 Posts

Posted - 2011-11-30 : 08:05:35
I get "Failed to connect to data source".

I'm using:
ConnectionString = "server=SBS2003SERVER\DATABASE_NAME;Trusted_Connection=yes;database=DATABASE_NAME"

Works fine if I'm logged on to the workstation as an admin.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-11-30 : 19:47:43
Unfortunately that's not enough of an error message for us to be able to help. You'll need to run SQL Profiler and add the exception event to the trace. Capture the exception and let us know what you got.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

REDTAIL_CODEGUY
Starting Member

17 Posts

Posted - 2011-12-01 : 06:58:18
I've never used that utility before; not sure if I have it...

Perhaps we could focus on SQL/Windows Authentication. How do you tell SQL that a certain user should be granted full access? Other than the original/initial user setup? Are there specific permissions/parameters/capabilities that can be added? Where/how do I do that?
Go to Top of Page

jeffw8713
Aged Yak Warrior

819 Posts

Posted - 2011-12-01 : 13:51:13
You have to add the user (domain\username that the user logs into the PC with) as a login, then you create a new user in each database and map that user to the login and grant permissions.

You need to look at how the network admin login is setup, as well as what databases that login has access to and the permissions for each database.

Jeff
Go to Top of Page

REDTAIL_CODEGUY
Starting Member

17 Posts

Posted - 2011-12-02 : 08:17:12
Thanks Jeff,

Do I do that in SQL SERVER 2008 MANAGEMENT STUDIO? Do you have any documentation on that?

- Red.
Go to Top of Page

jeffw8713
Aged Yak Warrior

819 Posts

Posted - 2011-12-02 : 13:50:52
This is all available in Books Online - the help for SQL Server. Yes, you can do this through SSMS or you can do this with SQL - lookup CREATE LOGIN and CREATE USER in the help system.
Go to Top of Page
   

- Advertisement -