This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/db/3_sem/day_2/introduction_to_security.sql

25 lines
513 B
SQL

-- Queuries to create test table and change the permissions of the underpriviledged user
use IBZ;
create table SprechendeTiere
(
ID int identity(1,1) not null,
Tierame varchar(50)
constraint pk_sprechende_tiere primary key (ID)
);
insert into SprechendeTiere(Tierame)
values ('Einhorn');
-- Grant
grant select on SprechendeTiere to ibzadmin;
grant delete on SprechendeTiere to ibzadmin;
grant update on SprechendeTiere to ibzadmin;
grant all on SprechendeTiere to ibzadmin;