Professional Documents
Culture Documents
SQL Server
SQL Server
Codd's rule - set of 13 rules that define relational databases based on set theory,
increased the rules to hundreds
DML - Data Manipulation language - commands to manipulate the data within data
objects like selecting data, inserting data, updating data, Deleting data
SELECT - Extract data from database
SELECT FIELD(S)
FROM TABLES
INSERT
UPDATE
DELETE
DCL - Data Control Language - control the permission that give access the data
objects that you created through DDL Commands
GRANT - Permitting access to a particular object
REVOKE - Revoking access to a particular object
-- File size and growth
---can specify the size of DB file (.mdf) in KB, MB, GB, TB where MB is default
---default size is the size of the primary file in model DB
-- File Location
- every Db has atleast 2 files - Primary file for data (.MDF) and transaction log
file (.LDF)
- Additional data files can be created with .NDF file extension
-Transaction log file should be located on a separate physical disk if possible
--File Groups
--
Create Database Databasename
Three basic options to understand when creating databases