- ?create a user in sqlserver
- server -> security - > right click logins?->? new login
- in General page,
- fill login name
- sql server authentication (radio button)
- uncheck Enforce pass policy
- drop down list
- default DB -> select your DB ?(could leave it)
- default language -> English ?
- Add the new user to be your DB user ?(create a user to a certain DB,this user is not real DB owner,but could set permission as owner. Set the real DB owner see bottom,if set a real owner,could skip this step )
- your DB -> security -> right click user -> new user
- in General page
- fill the User name
- put your new created user to Login name
- don't select schema
- in DB Role membership ->? check the DB owner
- set the server authentication type
- right click server -> property -> security in left Panel
- select?the SQL server and Windows Authentication mode (radio button)
set up?your program?configuration file
- connection string
- user,role provider
- create the membership user role table (createUserWizard in web app)
- use ASP.net adminstrator configuration?tool (add,edit,delete user and role)
Set the DB Owner (normally leave as the default) select the certain DB,right click property,in left page,click Files,browse for a owner. then OK. ?(this could replace step 2)
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|