473,378 Members | 1,475 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

SA to Windows Authentication

Hello,

We have a SQL 2000 installation (running on NT4 SP6a) with a database
accessed by a client application. Currently the application logs into the
database using a the SA account. I'd like to move the client access over to
Window Authentication. Each user has their own NT account. What steps do I
need to take to achieve this?

Any help would be greatly appreciated.

James G.
Jul 20 '05 #1
1 1325
Below are the basic steps you'll need to perform in order to implement
Windows authentication. This assumes you plan to use role-based security in
order to simplify security administration tasks.

1) Add user database roles:

USE MyDatabase
sp_addrole 'PowerUsers'
sp_addrole 'RegularUsers'

2) Grant object permissions:

USE MyDatabase
GRANT ALL ON MyTable TO PowerUsers
GRANT SELECT ON MyTable TO RegularUsers

3) Grant Windows accounts access to SQL Server

EXEC sp_grantlogin 'MyDomain\Account1'
EXEC sp_grantlogin 'MyDomain\Account2'

4) Add these accounts to needed database(s)

USE MyDatabase
EXEC sp_grantdbaccess 'PowerUsers'
EXEC sp_grantdbaccess 'RegularUsers'

5) Add users to roles

EXEC sp_addrolemember 'PowerUsers', 'MyDomain\Account1'
EXEC sp_addrolemember 'RegularUsers', 'MyDomain\Account2'
--
Hope this helps.

Dan Guzman
SQL Server MVP

"James Goodwill" <ja************@virgin.net> wrote in message
news:pf************@newsfe3-gui.ntli.net...
Hello,

We have a SQL 2000 installation (running on NT4 SP6a) with a database
accessed by a client application. Currently the application logs into the
database using a the SA account. I'd like to move the client access over
to
Window Authentication. Each user has their own NT account. What steps do I
need to take to achieve this?

Any help would be greatly appreciated.

James G.

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
1
by: sherkozmo | last post by:
I have my SQL 7.0 server set for Mixed security. I see now (finally) the advantages of having windows authentication security for windows groups. I do most of my developing in Access Projects...
1
by: Mark | last post by:
When our staff are logged into a computer on our domain, they're still prompted for their domain login and password to get into our ASP.NET application in Internet Explorer when using Windows...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
6
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
8
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for...
10
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
4
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.