--Create a login account for the 'test' user execute sp_addlogin 'test','1234','Northwind',null go --Create a group execute sp_addgroup 'testgroup' go --Add the test user to Database execute sp_adduser 'test','test','testgroup' go grant update,insert on customers -- YOU CAN DEFINED WHICH TABLE YOU WANT GRANT TO TEST USER to testgroup
execute sp_addlogin 'test','1234','Northwind',null
go
--Create a group
execute sp_addgroup 'testgroup'
go
--Add the test user to Database
execute sp_adduser 'test','test','testgroup'
go
grant update,insert
on customers -- YOU CAN DEFINED WHICH TABLE YOU WANT GRANT TO TEST USER
to testgroup