Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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
Comment

PREVIOUS NEXT
Code Example
Sql :: how to update the multiple rows in sql 
Sql :: How is the default tablespace determined when creating a table? 
Sql :: sql select students closest in score 
Sql :: how to write query to to display record having maximum value 
Sql :: yesql 
Sql :: hive batch drop table 
Sql :: oracle transaction rollback not working 
Sql :: what is the essence of SQL? 
Sql :: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement 
Sql :: flashback in bigquery 
Sql :: copy table structure from postgresql to mysql 
Sql :: compare two tables to find unmatched records 
Sql :: apache2 ssl error 
Sql :: sql datediff db2 
Sql :: insert data 
Sql :: Rows, INSERT INTO 
Sql :: group functions in sql 
Sql :: SQL sort on a calculation 
Sql :: Data type and their numeric form 
Sql :: postgresql get random data from table 
Sql :: insert into with 3 tables 
Csharp :: guid.empty 
Csharp :: read text file to string c# 
Csharp :: unity how to see what scen you are in 
Csharp :: unity gameobject teleporting 
Csharp :: how to change the color of an object in unity c# 
Csharp :: c# center text 
Csharp :: rigidbody2d freeze position 
Csharp :: linux command line exit with error message 
Csharp :: how to flip character in unity 2d 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =