Solved

Change SQL Srvr 2005 Authentication modes

Posted on 2010-11-21
12
417 Views
Last Modified: 2012-05-10
I have a SQL 2005 db that the software vendor has set up with SQL Authentication.  The System DSN on the cllent machines uses the SA account to connect to the DB.

When I tried to explain to the software vendor that we should use Windows Authentication, they had no idea what I was talking about.  

Is there a simple trustworthy way to change the security on the DB to use Windows Authentication instead of SQL.
0
Comment
Question by:mbkitmgr
  • 6
  • 3
  • 2
  • +1
12 Comments
 
LVL 7

Accepted Solution

by:
macentrap earned 125 total points
ID: 34185807
in SQL 2005, if its using SQL mode its already using mixed mode ( SQL server and Windows).

There are only two options in properties:
Windows authentication and mixed mode.

to use windows authentication you would have to create users in security group
SQL-Security.png
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 34185816
Yes, In property of Server in SSMS,  change authentication mode. PAge
0
 
LVL 7

Expert Comment

by:macentrap
ID: 34185817
misinterpretd the question:

you would like to change the system DSN on client machine

just select option for windows authentication and create that user as part of security -> logins

it should work!!
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 7

Assisted Solution

by:macentrap
macentrap earned 125 total points
ID: 34185830
from server it looks fine... how about security logins ... are the domain users' created.

or do you need help from System DSN on client machine
0
 
LVL 7

Expert Comment

by:macentrap
ID: 34185858
link to guide through create ODBC connection

http://www.truthsolutions.com/sql/odbc/creating_a_new_odbc_dsn.htm
0
 
LVL 5

Author Comment

by:mbkitmgr
ID: 34185875
I guess I need to clarify the issue.

+ The System DSN on the existing client machines are using the SA credential, which isnt an AD account
+ When I try to configure System DSN on a new machine with the SA credential, it fails with an error that the username and password are incorrect
+ When I check the Logins under the Instance, there is no SA acc listed
+ When I check the Database properties SA is listed as the owner
+ I cant find a user SA in the database Users either.

I had hoped by switching to Windows Authentication we could do away with the SA paradox
0
 
LVL 7

Assisted Solution

by:macentrap
macentrap earned 125 total points
ID: 34185943
SA is default sql server account (sql adminstrator)
This wont be part of AD
System dsn got sql method checked to connect at database

When sytem dsn is created it ask for how you would like to conect to database
I.e. Windows nt or sql
Thts where u got sql


Regarding setup on new machine wht error do you get?

Does your existing client work with initial setup of SA?


0
 
LVL 7

Expert Comment

by:macentrap
ID: 34186610
you wont find user SA in database user, there will be dbo

I assume u are trying to find it in
DatabaseEngine<InstanceName> -> databases<databaseName> -> security -> logins

whereas it is in

DatabaseEngine<InstanceName>- > security -> logins

image attached for ref.




sql-sec-2005.png
0
 
LVL 2

Expert Comment

by:marat-oz
ID: 34193472
If your Vendors application is not win app there is no way you can use win authentication; otherwise create win login, give it necessary server/DB access privileges and ask Vendor to change login account for application.
If all your users and apps are using Windows you can set Win authentication mode on server otherwise keep it mixed.
sa account has administrative rights on server and this could be security issue.
If your Vendor app isn't Windows app you can create SQL Server account with less access privileges than sa but with all necessary privileges for Vendors app and ask your Vendor to change app login account to newly created one.
0
 
LVL 2

Expert Comment

by:marat-oz
ID: 34193697
PS
"ask Vendor to change login account for application."
"ask your Vendor to change app login account to newly created one."

Actually, I believe you can do it yourself, all you need is to ask vendor what Server/DB access privileges this account needs.
0
 
LVL 5

Author Comment

by:mbkitmgr
ID: 34296208
Hi Guys,

An Update on the issue - the initial problem with the creation of the OBDC Sys DSN has been resolved.  It seems the OEM image was the problem.  I deleted the OEM install of Win7, re-installed Win7 from the OEM media kit and "hey presto" the ODBC connection now works.  

The app was Lawware. I have also expressed to the vendor that under the current settings any user with Excel can query the db and obtain user-names and passwords because the DSN is using the sa login.  Sadly some vendors don't consider the risk this poses.

So for now the problem has receded, and I have left the vendor to make their own decision on how Lawware's ODBC connector authenticates.
0
 
LVL 5

Author Closing Comment

by:mbkitmgr
ID: 34296247
perhaps my description of the issue was insufficient to deliver an answer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQl server restarts itself 6 40
MS SQL 2005 Srink database in chunks 4 65
Set the max value for a column 7 39
Need help debbuging stored procedure 21 44
This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 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