Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto insert into Roles

Status
Not open for further replies.

InchHighPI

Technical User
Sep 12, 2003
2
PK
Hi,
I'm looking for a way to Auto insert a "NEW" employee into a designed Role depending on their discipline.
I am building a mobile phone construction DB.
There are 6 main user Roles (Not yet designed): RF, Transmission, Acquisiton, Construction etc etc.
When a "New" person is entered into the personnel section a user profile is built, depending on the Region, Zone and discipline. eg NORMANRF (North, Manchester, Radio Frequency) What I am looking for is an SP_ that will auto asign them to a certain Role depending on Right(UserProfile,2).
Any help will be most apreciated.
Tony
 
Lookup the SPs below in SQL BOL.

sp_addlogin

sp_addrole

sp_addrolemember

sp_adduser

sp_defaultdb

sp_defaultlanguage

sp_droplogin

sp_grantlogin

sp_helpuser

sp_password

sp_revokelogin

xp_logininfo

 
Thanx,
looks like I have some reading to do !!
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top