当前位置:网站首页>Sqlserver SQL Server Management Studio and transact SQL create accounts and create read-only users to access the specified database
Sqlserver SQL Server Management Studio and transact SQL create accounts and create read-only users to access the specified database
2022-06-30 19:16:00 【But don't ask about your future】
List of articles
Preface
1. Create a Login
sqlserver Create user
Transact-SQL Create user
The document describes using SQL Server Management Studio (SSMS) and Transact-SQL2 Ways of planting , The first way to create a read-only account ;
2. Create a read-only user accessing the specified database
(1) Use Microsoft SQLServer Management Studio, Log in with an administrator account 
(2) Click on 【 Security 】->【 Login name 】, choice 【 New login 】
(3) stay 【 routine 】 Options 【 Login name 】 Enter the user name in cz. Authentication options 【SQL Server Authentication 】, Input password , Uncheck the 【 Enforce password policies 】
(4) Click on the options page 【 User mapping 】->【 The login name of the user mapped to this 】, Choose to create cz User operable database . For every database , Below 【 Database role membership 】 Check membership in , You can obtain the permission corresponding to the identity , Such as read-only permission , Check 【db_datareader】. meanwhile 【 The default Architecture 】 Also check in 【db_datareader】

(6) Read only users cz Create success 
Successful connection :
Modify the datagram error :
remarks : Server role

bulkadmin check box
Members of the bulkadmin fixed server role can run the BULK INSERT statement.
dbcreator check box
Members of the dbcreator fixed server role can create, alter, drop, and restore any database.
diskadmin check box
Members of the diskadmin fixed server role can manage disk files.
processadmin check box
Members of the processadmin fixed server role can terminate processes running in an instance of the Database Engine.
public check box
All SQL Server users, groups, and roles belong to the public fixed server role by default.
securityadmin check box
Members of the securityadmin fixed server role manage logins and their properties. They can GRANT, DENY, and REVOKE server-level permissions. They can also GRANT, DENY, and REVOKE database-level permissions. Additionally, they can reset passwords for SQL Server logins.
serveradmin check box
Members of the serveradmin fixed server role can change server-wide configuration options and shut down the server.
setupadmin check box
Members of the setupadmin fixed server role can add and remove linked servers, and they can execute some system stored procedures.
sysadmin check box
Members of the sysadmin fixed server role can perform any activity in the Database Engine.
边栏推荐
- Lenovo Yoga 27 2022, full upgrade of super configuration
- Swin-Transformer(2021-08)
- Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
- ForkJoinPool
- 充值满赠,IM+RTC+X 全通信服务「回馈季」开启
- 删除排序链表中的重复元素 II[链表节点统一操作--dummyHead]
- Full recharge, im+rtc+x full communication service "feedback season" starts
- 10 statistical methods commonly used for "dry goods" data analysis, with key application scenarios attached
- VS 常用的快捷键指令
- mysql函数获取全路径
猜你喜欢

Dlib库实现人脸关键点检测(Opencv实现)

Cloud Native Landing Practice Using rainbond for extension dimension information

openGauss数据库源码解析系列文章—— 密态等值查询技术详解(上)

Adhering to the concept of 'home in China', 2022 BMW children's traffic safety training camp was launched

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system

Detailed single case mode

System integration project management engineer certification high frequency examination site: prepare project scope management plan

链表中环的入口结点-链表专题

Dlib library for face key point detection (openCV Implementation)

Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology (Part 1)
随机推荐
System integration project management engineer certification high frequency examination site: prepare project scope management plan
挖财账号开户安全吗?是靠谱的吗?
Influence and requirements of different manufacturing processes on the pad on PCB
开发那些事儿:如何在视频中添加文字水印?
一套十万级TPS的IM综合消息系统的架构实践与思考
详解单例模式
Construction and practice of full stack code test coverage and use case discovery system
Evolution of screen display technology
Leader: who can use redis expired monitoring to close orders and get out of here!
mysql 递归
C WinForm program interface optimization example
com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
MySQL modify data type_ MySQL modify field type [easy to understand]
mysql下载和安装详细教程
[Collection - industry solutions] how to build a high-performance data acceleration and data editing platform
MySQL事务并发问题和MVCC机制
Memory Limit Exceeded
期货怎么开户安全些?现在哪些期货公司靠谱些?
Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
全栈代码测试覆盖率及用例发现系统的建设和实践