Answers for "sql grant select only"

SQL
0

sql grant select only

#You can use Create User to create a user
CREATE LOGIN sam
    WITH PASSWORD = '340$Uuxwp7Mcxo7Khy';
USE AdventureWorks;
CREATE USER sam FOR LOGIN sam;
GO 

#and to Grant (Read-only access) you can use the following
GRANT SELECT TO sam

#Credit: John Sansom
Posted by: Guest on January-18-2022

Code answers related to "SQL"

Browse Popular Code Answers by Language