Answers for "sql server create user and grant permission command line"

SQL
1

sql server user permissions and roles

-- SQL Server: list of users and roles
SELECT dp.NAME      AS principal_name,
       dp.TYPE_DESC AS principal_type_desc,
       o.NAME       AS object_name,
       p.PERMISSION_NAME,
       p.STATE_DESC AS permission_state_desc
FROM sys.database_permissions p
         LEFT OUTER JOIN sys.all_objects o
                         ON p.MAJOR_ID = o.OBJECT_ID
         INNER JOIN sys.database_principals dp
                    ON p.GRANTEE_PRINCIPAL_ID = dp.PRINCIPAL_ID;
Posted by: Guest on April-21-2021
1

create user sql

-- Creates the login AbolrousHazem with password '340$Uuxwp7Mcxo7Khy'.  
CREATE LOGIN username   
    WITH PASSWORD = 'password';  
GO  

-- Creates a database user for the login created above.  
CREATE USER AbolrousHazem FOR LOGIN AbolrousHazem;  
GO
Posted by: Guest on July-14-2020
0

sql create and grant user access to database

//oracle
sqlplus sys/<password> as sysdba
create user user1 identified by pass;
grant connect, resource to user1;
connect user1/pass;
Posted by: Guest on August-25-2021

Code answers related to "sql server create user and grant permission command line"

Code answers related to "SQL"

Browse Popular Code Answers by Language