SQL Server Data control language

          

Interview questions

SQL Server Data control language


SQL Server Data control language interview questions

<<Previous  Next>>

Define Data control language.
Explain the command Grant, Revoke and Deny with syntax.

SQL Server Server Data control - Nov 18, 2008 at 15:30 pm by Rajmeet Ghai

Define Data control language.

Answer
A data control language is a computer language used to control access data in a database. It is used to manipulate and control the data. Examples of commands that are a part of Data control language: SELECT, CONNECT, INSERT, UPDATE etc

Explain the command Grant, Revoke and Deny with syntax.

Answer
 a. Grant
: Grant is used to grant or give access permission to a user. These permissions can be given to a user or a role. Grant can be used to give system privileges or object privileges.

Syntax:
Grant ALL | system_privelege on object_name to user_name

Example:
Grant update on customer to steve

 b. Revoke: Removes or takes away a previously assigned or granted privilege.

Syntax:
Revoke ALL | privilege_name
On object_name
From user_name

Example:
Revoke update
On customer
From steve

 c. Deny: Used to deny permissions to a user.

Syntax:
Deny ALL | permission_name
On object_name
TO user_name

Example:
Deny update
On customer
To steve


<<Previous  Next>>
Also read
What are the advantages of using Stored Procedures?

Answer - Stored procedures provide performance benefits through local storage, precompiling the code, and caching......

What are the lock types?

Answer - Shared Lock allows simultaneous access of record by multiple Select statements. Shared Lock blocks record from updating and will remain in queue waiting while record is accessed for reading......  

Define Normalization and De- Normalization.

Answer - It is the process of organizing data into related table. To normalize database, we divide database into tables.....

Question: What is the purpose of SQL Profiler in SQL server?

Answer - SQL Profiler captures SQL Server events from a server. The events are saved..... 



Write your comment - Share Knowledge and Experience


 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring