USE master go CREATE LOGIN jiazhuang --用户名 WITH PASSWORD = 'sa', --密码 DEFAULT_DATABASE = JiaZhuan, --数据库名 CHECK_EXPIRATION = OFF, CHECK_POLICY = OFF go EXEC sp_addsrvrolemember 'JiaZhuan', 'sysadmin' --角色 go 要想成功访问 SQL Server 数据库中的数据, 我们需要两个方面的授权:一.…
1.创建User create user user01 identified by user01, 2.赋予连接数据库的权限 grant connect to user01; 3.把user00的表Emp表权限赋给user01 user00登录后,grant select to Emp to user01; 4.回收权限 revoke select to Emp from user01; 5.赋予增删改查的权限 grant select ,insert, delete,update on Emp…
步骤一:新建 步骤二:填写信息 对应SQL代码 -- Create the user create user WENT identified by "longrise" default tablespace NSEST temporary tablespace NSEST_TEMP profile DEFAULT; -- Grant/Revoke object privileges grant read, write on directory SYS.ZWGC to WENT with…