c# - Confused with user management in SQL Server -


i have created wpf application connects sql server database directly (not through services), located on database server. need create user management, each user have own log in credentials (not windows authentication). how thought of doing it:

  1. during application installation, db administrator provide me account contains enough permissions create database

  2. using these credentials connect sql server, execute script create database, , execute script create 1 default admin user database, have full permissions.

  3. i use new user manage users , roles database.

  4. for each user in application need create user in database.

questions:

  • is correct way of doing it?

  • i confused how manage this. if have table users , roles in database, , need create users , roles on database level, looks duplicating stuff?

or missing something?

there minor overlap. in users table store username matches sql account, username overlap. other information stored in users table.

i don't see problem doing way, downside required have admin account considerable amount of access on whatever sql server it's installed on, sounds have taken consideration.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -