mssql intro 2
mssql intro 2
SQL Server
Training
Data Storage
Indexing
Cover Monitoring
Security
• Memory
• 512 MB Express
• 1 GB others
• Recommended 1 GB express, 4 GB others
• OS
• Windows server 2016+
• Windows 10+ (dev, standard, express)
• Linux
• Docker
Storage
• File Types • File Growth
• .MDF – Main data file • For transaction log file, best practice is to limit
• .NDF – Secondary data File (optional) growth increment to 1GB Max
• .LDF – Transaction log file • You can specify a max size and a growth
increment for data files
• File Names • File Groups
• Logical • Used to manage data files based on location
• Used to refer to file in T-SQL statements • One primary (default) file group which contains
• Must obey SQL Server object name rules all objects no specifically designated to user-
• Must unique across database defined groups
• Physical
• Actual path of the file
• Locations
• When possible, separate the log file from
data files and system database files from
user database files
• Files can be FAT or NTFS systems
System Database
• Master
• List of user databases
• Model
• When create db, copy dari model
• Msdb
• indexing
• Tempdb
• Temporary database
• Temp table
• Drop and create db every time restart service